You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static final int getCoordSequenceDim(CoordinateSequence coords) {
if (coords == null || coords.size() == 0)
return 0;
// JTS has a really strange way to handle dimensions!
// Just have a look at PackedCoordinateSequence and
// CoordinateArraySequence
int dimensions = coords.getDimension();
if (dimensions == 3) {
// CoordinateArraySequence will always return 3, so we have to
// check, if
// the third ordinate contains NaN, then the geom is actually
// 2-dimensional
return Double.isNaN(coords.getOrdinate(0, CoordinateSequence.Z)) ? 2 : 3;
} else {
return dimensions;
}
}
will check for a Z dimension but not the M dimension which is used, for example, in pgMapMatching
Nothing in here has changed inyears. What's the status if i do a pull request?
The text was updated successfully, but these errors were encountered:
Hi @TimPigden, it's definitely been awhile since there were features/fixes in the code beyond dependency version updates. PRs are always welcome and appreciated.
This method:
will check for a Z dimension but not the M dimension which is used, for example, in pgMapMatching
Nothing in here has changed inyears. What's the status if i do a pull request?
The text was updated successfully, but these errors were encountered: