geo_partition v0.1.1 GeoPartition View Source

Documentation for GeoPartition.

Link to this section Summary

Functions

Decomposes a given polygon or multipolygon into a list of polygons all of which have an area less than area (measured in square miles)

Disallow polygons with overlapping holes

Link to this section Functions

Link to this function partition(shape, area, output \\ :list) View Source

Decomposes a given polygon or multipolygon into a list of polygons all of which have an area less than area (measured in square miles)

Input format can be

output specifies the output format of the decomposition

  • :list (default), a flat list of Geo.Polygon
  • :multipolygon, a single Geo.MultiPolygon
  • :multipolygon_json, a GeoJSON geometry object of type MultiPolygon
  • :multipolygon_feature, a GeoJSON feature with a MultiPolygon geometry
  • :feature_collection, a GeoJSON feature collection containing features with Polygon geometry
  • :feature_collection_multipolygon, a GeoJSON feature collection containing a single feature with multipolygon geometry

Disallow polygons with overlapping holes