/** * Returns TRUE when this geometry has exactly same type, properties, and * coordinates as the other geometry. */ @Override public boolean equals(Object other) { if (other == null) return false; if (other == this) return true; if (other.getClass() != getClass()) return false; return m_impl.equals(((Polyline) other)._getImpl()); }
/** * Returns TRUE when this geometry has exactly same type, properties, and * coordinates as the other geometry. */ @Override public boolean equals(Object other) { if (other == null) return false; if (other == this) return true; if (other.getClass() != getClass()) return false; return m_impl.equals(((Polyline) other)._getImpl()); }
private static boolean polylineDisjointPolyline_(Polyline polyline_a, Polyline polyline_b, double tolerance, ProgressTracker progress_tracker) { // Quick rasterize test to see whether the the geometries are disjoint. if (tryRasterizedContainsOrDisjoint_(polyline_a, polyline_b, tolerance, false) == Relation.disjoint) return true; MultiPathImpl multi_path_impl_a = (MultiPathImpl)polyline_a._getImpl(); MultiPathImpl multi_path_impl_b = (MultiPathImpl)polyline_b._getImpl(); PairwiseIntersectorImpl intersector_paths = new PairwiseIntersectorImpl(multi_path_impl_a, multi_path_impl_b, tolerance, true); if (!intersector_paths.next()) return false; return !linearPathIntersectsLinearPath_(polyline_a, polyline_b, tolerance); }
private static boolean polylineDisjointPolyline_(Polyline polyline_a, Polyline polyline_b, double tolerance, ProgressTracker progress_tracker) { // Quick rasterize test to see whether the the geometries are disjoint. if (tryRasterizedContainsOrDisjoint_(polyline_a, polyline_b, tolerance, false) == Relation.disjoint) return true; MultiPathImpl multi_path_impl_a = (MultiPathImpl)polyline_a._getImpl(); MultiPathImpl multi_path_impl_b = (MultiPathImpl)polyline_b._getImpl(); PairwiseIntersectorImpl intersector_paths = new PairwiseIntersectorImpl(multi_path_impl_a, multi_path_impl_b, tolerance, true); if (!intersector_paths.next()) return false; return !linearPathIntersectsLinearPath_(polyline_a, polyline_b, tolerance); }
static void testPointsOnPolyline2D_(Polyline poly, Point2D[] input_points, int count, double tolerance, PolygonUtils.PiPResult[] test_results) { MultiPathImpl mp_impl = (MultiPathImpl) poly._getImpl(); GeometryAccelerators accel = mp_impl._getAccelerators(); RasterizedGeometry2D rgeom = null;
static void testPointsOnPolyline2D_(Polyline poly, Point2D[] input_points, int count, double tolerance, PolygonUtils.PiPResult[] test_results) { MultiPathImpl mp_impl = (MultiPathImpl) poly._getImpl(); GeometryAccelerators accel = mp_impl._getAccelerators(); RasterizedGeometry2D rgeom = null;
private static void exportPolylineToGeoJson_(int export_flags, Polyline polyline, JsonWriter json_writer) { MultiPathImpl polyline_impl = (MultiPathImpl) polyline._getImpl();
private static void exportPolylineToGeoJson_(int export_flags, Polyline polyline, JsonWriter json_writer) { MultiPathImpl polyline_impl = (MultiPathImpl) polyline._getImpl();
static void exportPolylineToWkt(int export_flags, Polyline polyline, StringBuilder string) { MultiPathImpl polyline_impl = (MultiPathImpl) polyline._getImpl();
static void exportPolylineToWkt(int export_flags, Polyline polyline, StringBuilder string) { MultiPathImpl polyline_impl = (MultiPathImpl) polyline._getImpl();
MultiPathImpl multi_path_impl = (MultiPathImpl) polyline._getImpl();
MultiPathImpl result_mp = (MultiPathImpl) result_polyline._getImpl(); boolean b_closed = mp_impl.isClosedPathInXYPlane(ipath); Polyline tmpPoly = new Polyline(input_multi_path.getDescription()); tmpPoly.addPath(input_multi_path, ipath, false); ((MultiPathImpl) tmpPoly._getImpl()).addSegmentsFromPath( (MultiPathImpl) input_multi_path._getImpl(), ipath, 0, input_multi_path.getSegmentCount(ipath), false);
MultiPathImpl multi_path_impl = (MultiPathImpl) polyline._getImpl();
MultiPathImpl result_mp = (MultiPathImpl) result_polyline._getImpl(); boolean b_closed = mp_impl.isClosedPathInXYPlane(ipath); Polyline tmpPoly = new Polyline(input_multi_path.getDescription()); tmpPoly.addPath(input_multi_path, ipath, false); ((MultiPathImpl) tmpPoly._getImpl()).addSegmentsFromPath( (MultiPathImpl) input_multi_path._getImpl(), ipath, 0, input_multi_path.getSegmentCount(ipath), false);
if (!geom.isEmpty()) { ((MultiPathImpl) geom._getImpl()) ._copyToUnsafe((MultiPathImpl) dst._getImpl());
if (!geom.isEmpty()) { ((MultiPathImpl) geom._getImpl()) ._copyToUnsafe((MultiPathImpl) dst._getImpl());
MultiPathImpl mpImpl = (MultiPathImpl) geomA._getImpl(); SegmentIteratorImpl iter = mpImpl.querySegmentIterator(); while (iter.nextPath()) {
MultiPathImpl mpImpl = (MultiPathImpl) geomA._getImpl(); SegmentIteratorImpl iter = mpImpl.querySegmentIterator(); while (iter.nextPath()) {
return null; MultiPathImpl mp = (MultiPathImpl) m_polyline._getImpl(); int npaths = mp.getPathCount(); if (m_current_path_index < npaths) {
return null; MultiPathImpl mp = (MultiPathImpl) m_polyline._getImpl(); int npaths = mp.getPathCount(); if (m_current_path_index < npaths) {