if (geom == null) {
if (geom.isEmpty()) {
    public static final int getCoordDim(Geometry geom) {        // TODO: Fix geometries with more dimensions        // geom.getFactory().getCoordinateSequenceFactory()        if (geom == null) {            return 0;        } else {            return 2;        }    }