Skip to content

Conversation

@JoelJaeschke
Copy link

This commit addresses #583 and adds ST_Subdivide, similar to how PostGIS does it. The algorithm does not reproduce PostGIS exactly, however. Every type of input geometry is accepted, except for GeometryCollections. The result is a GeometryCollection of subdivided geometry parts. The user can specify the maximum number of vertices that every part should have.

Slight additions to GeosGeometry were necessary, namely:

  • Initialize new geometry from bounding rectangle
  • Expose some more of the GEOS geometry's attributes
  • Add a function that counts number of vertices of a geometry

---
This commit adds ST_Subdivide, similar to how PostGIS does it. The
algorithm does not reproduce PostGIS exactly, however. Every type
of input geometry is accepted, except for GeometryCollections. The
result is a GeometryCollection of subdivided geometry parts. The
user can specify the maximum number of vertices that every part
should have.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant