MultiPath clipMultiPath2_(MultiPath multi_path_in, double tolerance, double densify_dist) { boolean b_is_polygon = multi_path_in.getType() == Geometry.Type.Polygon; if (b_is_polygon) return clipPolygon2_((Polygon) multi_path_in, tolerance, densify_dist); else return clipPolyline_((Polyline) multi_path_in, tolerance); }
MultiPath clipMultiPath2_(MultiPath multi_path_in, double tolerance, double densify_dist) { boolean b_is_polygon = multi_path_in.getType() == Geometry.Type.Polygon; if (b_is_polygon) return clipPolygon2_((Polygon) multi_path_in, tolerance, densify_dist); else return clipPolyline_((Polyline) multi_path_in, tolerance); }
@Override public void copyTo(Geometry dst) { if (getType() != dst.getType()) throw new IllegalArgumentException(); m_impl.copyTo((Geometry) dst._getImpl()); }
@Override public void copyTo(Geometry dst) { if (getType() != dst.getType()) throw new IllegalArgumentException(); m_impl.copyTo((Geometry) dst._getImpl()); }
int pointCountB = multiPointImplB.getPointCount(); boolean bDoPiPTest = !geometriesAreDisjoint && (geometryA.getType() == Geometry.Type.Polygon);
int pointCountB = multiPointImplB.getPointCount(); boolean bDoPiPTest = !geometriesAreDisjoint && (geometryA.getType() == Geometry.Type.Polygon);
Proximity2DResult multiPathGetNearestCoordinate(MultiPath geom, Point2D inputPoint, boolean bTestPolygonInterior, boolean bCalculateLeftRightSide) { if (geom.getType() == Geometry.Type.Polygon && bTestPolygonInterior) { Envelope2D env = new Envelope2D(); geom.queryEnvelope2D(env);
Proximity2DResult multiPathGetNearestCoordinate(MultiPath geom, Point2D inputPoint, boolean bTestPolygonInterior, boolean bCalculateLeftRightSide) { if (geom.getType() == Geometry.Type.Polygon && bTestPolygonInterior) { Envelope2D env = new Envelope2D(); geom.queryEnvelope2D(env);
if (polygon_a.getPathCount() == 1 || multi_path_b.getType().value() == Geometry.GeometryType.Polyline) return true; //boundaries do not intersect. all paths of b are inside of a
if (polygon_a.getPathCount() == 1 || multi_path_b.getType().value() == Geometry.GeometryType.Polyline) return true; //boundaries do not intersect. all paths of b are inside of a