static public boolean isSimple(Geometry arg0) { if (arg0 == null) return false; Geometry _this = arg0; return _this.isSimple(); }
/** * @param geometry Geometry instance * @return True if the provided geometry has no points of self-tangency, self-intersection or other anomalous points. */ public static Boolean isSimple(Geometry geometry) { if(geometry==null) { return null; } return geometry.isSimple(); } }
static public boolean isSimple(Geometry arg0) { Geometry _this = arg0; return _this.isSimple(); }
/** * @param geometry Geometry instance * @return True if the provided geometry has no points of self-tangency, self-intersection or other anomalous points. */ public static Boolean isSimple(Geometry geometry) { if(geometry==null) { return null; } return geometry.isSimple(); } }
/** * @param geometry Geometry instance * @return True if the provided geometry has no points of self-tangency, self-intersection or other anomalous points. */ public static Boolean isSimple(Geometry geometry) { if(geometry==null) { return null; } return geometry.isSimple(); } }
public boolean isSimple() { return geometry.isSimple(); }
/** * Returns true if this object does not cross itself. */ public final boolean isSimple() { com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry(); return jtsGeom.isSimple(); }
public static Boolean isSimple(GeometryType geom) throws FunctionExecutionException { Geometry g = getGeometry(geom); return g.isSimple(); }
/** * Returns true if this object does not cross itself. */ public final boolean isSimple() { com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry(); return jtsGeom.isSimple(); }
public static Boolean isSimple(GeometryType geom) throws FunctionExecutionException { Geometry g = getGeometry(geom); return g.isSimple(); }
public static Boolean isSimple(GeometryType geom) throws FunctionExecutionException { Geometry g = getGeometry(geom); return g.isSimple(); }
@Override public Item item(final QueryContext qc, final InputInfo ii) throws QueryException { return Bln.get(checkGeo(0, qc).isSimple()); } }
/** * @param geometry Geometry instance * @return True if the provided geometry is a ring; null otherwise */ public static Boolean isRing(Geometry geometry) { if(geometry==null){ return null; } if (geometry instanceof MultiLineString) { MultiLineString mString = ((MultiLineString) geometry); return mString.isClosed() && mString.isSimple(); } else if (geometry instanceof LineString) { LineString line = (LineString) geometry; return line.isClosed() && geometry.isSimple(); } return null; } }
/** * @param geometry Geometry instance * @return True if the provided geometry is a ring; null otherwise */ public static Boolean isRing(Geometry geometry) { if(geometry==null){ return null; } if (geometry instanceof MultiLineString) { MultiLineString mString = ((MultiLineString) geometry); return mString.isClosed() && mString.isSimple(); } else if (geometry instanceof LineString) { LineString line = (LineString) geometry; return line.isClosed() && geometry.isSimple(); } return null; } }
/** * @param geometry Geometry instance * @return True if the provided geometry is a ring; null otherwise */ public static Boolean isRing(Geometry geometry) { if(geometry==null){ return null; } if (geometry instanceof MultiLineString) { MultiLineString mString = ((MultiLineString) geometry); return mString.isClosed() && mString.isSimple(); } else if (geometry instanceof LineString) { LineString line = (LineString) geometry; return line.isClosed() && geometry.isSimple(); } return null; } }
private Geometry validate(Geometry source) { if (source == null || source.isEmpty()) { return null; } if (source.isValid() && source.isSimple()) { return source; } // validate coordinates, remove empty shell/holes, duplicated points Geometry valid = validateEmptyAndDuplicate(source); if (valid == null || valid.isEmpty()) { return null; } if (valid.isValid() && valid.isSimple()) { return valid; } // reconstruct self-intersection geometry Class<?> geomBinding = valid.getClass(); if (geomBinding.isAssignableFrom(MultiPolygon.class)) { return validatePolygon(valid); } else if (geomBinding.isAssignableFrom(Polygon.class)) { return validatePolygon(valid); } else if (geomBinding.isAssignableFrom(MultiLineString.class)) { return validateLineString(valid); } else if (geomBinding.isAssignableFrom(LineString.class)) { return validateLineString(valid); } else { Assert.shouldNeverReachHere(source.toText()); } return null; }
if (geomBinding.isAssignableFrom(MultiPolygon.class) || geomBinding.isAssignableFrom(Polygon.class)) { if (!cropShape.isValid() || !cropShape.isSimple()) { cropShape = cropShape.buffer(0); cropShape.setUserData(cropShape.getUserData());