ngageoint / opensphere

OpenSphere
Apache License 2.0
185 stars 90 forks source link

feat(shp): add multipoint and multipolygon import/export support #1399

Closed schmidtk closed 2 years ago

schmidtk commented 2 years ago

The SHP exporter previously split both MultiPoint and MultiPolygon geometries into individual geometries. The SHP specification supports both of these via the MultiPoint/MultiPointZ shape and Polygon/PolygonZ with parts for each polygon/ring. This support was implemented in the exporter. I also consolidated and documented some of the logic that was duplicated between allocating space for a geometry and appending the geometry to the buffer.

The SHP parser did not implement support for MultiPoint shapes. This is now implemented so OpenSphere can import these geometries.

Resolves #433.