@Override public JtsPoint getCenter() { if (isEmpty()) //geom.getCentroid == null return new JtsPoint(ctx.getGeometryFactory().createPoint((Coordinate)null), ctx); return new JtsPoint(geom.getCentroid(), ctx); }
@Override public JtsPoint getCenter() { if (isEmpty()) //geom.getCentroid == null return new JtsPoint(ctx.getGeometryFactory().createPoint((Coordinate)null), ctx); return new JtsPoint(geom.getCentroid(), ctx); }