Don't ignore "m" value when reading file

Description

It's possible to write the "measure" value for a PointZ into a shapefile using JTS' "CoordinateXYZM". To check that it was successfull, simply load the file with e.g. QGIS and you'll see all 4 values (x, y, z & m).

Reading the same file it's impossible to get the "m" value again because geotools is ignoring it, instead of passing it through e.g. JTS again.

Affected code: PointHandler.java:

1 2 3 if (shapeType == ShapeType.POINTM) { buffer.getDouble(); }

This should probably be instead:

1 cs.setOrdinate(0, CoordinateSequence.M, buffer.getDouble());

Some more code: Creating/Writing to the ".shp" file (see attached files) & reading the same file.

Environment

Win 10, Eclipse, Java 8, GeoTools (version "23-SNAPSHOT", downloaded through Maven)

Status

Assignee

Unassigned

Reporter

Neph

Triage

Components

Priority

Medium