Package com.vividsolutions.jts.geom

Examples of com.vividsolutions.jts.geom.CoordinateSequenceFilter


  }


  protected void checkCoordinates(Geometry geom) {
    // note: JTS WKTReader has already normalized coords with the JTS PrecisionModel.
    geom.apply(new CoordinateSequenceFilter() {
      boolean changed = false;
      @Override
      public void filter(CoordinateSequence seq, int i) {
        double x = seq.getX(i);
        double y = seq.getY(i);
View Full Code Here


     * @return
     */
    public static List<Polygon> makeValid(Polygon polygon, boolean removeHoles) {
        // add all segments into the polygonizer
        final Polygonizer p = new Polygonizer();
        polygon.apply(new CoordinateSequenceFilter() {

            public boolean isGeometryChanged() {
                return false;
            }

View Full Code Here

                this.crs = crs;
            }
           
            List<PointDistance> gatherElevationPointCloud(Geometry geom) {
                final List<PointDistance> results = new ArrayList<PointDistance>();
                geom.apply(new CoordinateSequenceFilter() {
                   
                    @Override
                    public boolean isGeometryChanged() {
                        return false;
                    }
View Full Code Here

     * by #toArray and #getCoordinate are live -- modifications to them are
     * actually changing the CoordinateSequence's underlying data."
     * @param fnG
     */
    public static void flipFeatureYX(Geometry fnG) {
        fnG.apply(new CoordinateSequenceFilter() {
           
            public boolean isGeometryChanged() {
                return true;
            }
           
View Full Code Here

    height = h;
    zOffset = z;
    g = geometry;
    lot = l;
   
    g.apply(new CoordinateSequenceFilter() {
            boolean done = false;

            public boolean isGeometryChanged() {
                return true;
            }
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.geom.CoordinateSequenceFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.