locationtech / jts

The JTS Topology Suite is a Java library for creating and manipulating vector geometry.
Other
1.95k stars 440 forks source link

GeoJsonReader does not have support for reading geojson with measures #1047

Open ctytgat opened 5 months ago

ctytgat commented 5 months ago

Reading geojson with coordinates of dimension 4 does not preserve the measure ordinate.

GeoJsonReader uses the default CoordinateArraySequence() constructor, which sets dimension = 3 and measures = 0.

The same goes for GeoJsonWriter. It would be nice if support for measures could be added...