Examples of buildGeometry()


Examples of com.vividsolutions.jts.geom.GeometryFactory.buildGeometry()

            geoms.add(geometry.reverse());

        }

        GeometryFactory factory = new GeometryFactory();
        Geometry combined = factory.buildGeometry(geoms);

        return combined.union();
    }

    private void updateAOIService( ILayer layer, Geometry newAOI )
View Full Code Here

Examples of com.vividsolutions.jts.geom.GeometryFactory.buildGeometry()

  // if mergedCoordinate contains any item, create the resultant geometry.
  if (mergedCoordinates.size() != 0) {
      resultGeoms = addMergedGeometry(mergedCoordinates, resultGeoms, gf);
  }

  return gf.buildGeometry(resultGeoms);
    }

    /**
     * Get the coordinates and convert CCW if needed, then create the geometry,
     * add to the list and return it.
View Full Code Here

Examples of com.vividsolutions.jts.geom.GeometryFactory.buildGeometry()

        // Couldn't create a ring from this geometry,so continue.
        continue;
      }
    }

    Geometry combined = factory.buildGeometry(ringsList);
    // combined.union();

    return combined;
  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.GeometryFactory.buildGeometry()

        Class<?> clazz = geom.getClass();
        if (MultiPoint.class.equals(clazz) || Point.class.equals(clazz)) {
          geomList.add(geom);
        }
      }
      return gf.buildGeometry(geomList);
    }

    // Adapt a geometry collection that contains lines, to LineString or
    // MultiLineString.
    if (GeometryCollection.class.equals(geomClass)
View Full Code Here

Examples of com.vividsolutions.jts.geom.GeometryFactory.buildGeometry()

        Class<?> clazz = geom.getClass();
        if (MultiLineString.class.equals(clazz) || LineString.class.equals(clazz)) {
          geomList.add(geom);
        }
      }
      return gf.buildGeometry(geomList);
    }

    // Adapt a geometry collection that contains polygons, to Polyong or
    // MultiPolygon.
    if (GeometryCollection.class.equals(geomClass)
View Full Code Here

Examples of com.vividsolutions.jts.geom.GeometryFactory.buildGeometry()

        Class<?> clazz = geom.getClass();
        if (MultiPolygon.class.equals(clazz) || Polygon.class.equals(clazz)) {
          geomList.add(geom);
        }
      }
      return gf.buildGeometry(geomList);
    }

    final String msg = MessageFormat.format(Messages.GeometryUtil_DonotKnowHowAdapt, geomClass.getSimpleName(),
          adaptTo.getSimpleName());
View Full Code Here

Examples of com.vividsolutions.jts.geom.GeometryFactory.buildGeometry()

      Class<? extends GeometryCollection> geomCollectionClass = (Class<? extends GeometryCollection>) requiredGeom;
      result = adaptToGeomCollection(sourceGeomArray, geomCollectionClass);

    } else {// simple geometry is required

      result = geomFactory.buildGeometry(sourceGeomArray);
    }

    return result;
  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.GeometryFactory.buildGeometry()

     */
    static Geometry combineIntoOneGeometry( Collection<Geometry> geometryCollection ){
        //GeometryFactory factory = FactoryFinder.getGeometryFactory( null );
        GeometryFactory factory = new GeometryFactory();
       
      Geometry combined = factory.buildGeometry( geometryCollection );
        return combined.union();
    }
   
    /**
     * @param iter
View Full Code Here

Examples of com.vividsolutions.jts.geom.GeometryFactory.buildGeometry()

    }
      }
  }
  GeometryFactory gf = geometry.getFactory();

  return gf.buildGeometry(filteredLines);
    }

    /**
     * hole segments oriented CCW means interior at the left, exterior at the
     * right
 
View Full Code Here

Examples of com.vividsolutions.jts.geom.GeometryFactory.buildGeometry()

    }
   
    private LineString[] getSeparators(Geometry[] polys, Geometry infillArea) throws TopologyException{
        GeometryFactory gf = JTSUtils.getFactory();
        // create empty geometry
        Geometry union = gf.buildGeometry(new ArrayList(0));
       
        // get separators for each polygon
        for (Geometry poly : polys) {
           
            LineString[] lines = JTSUtils.getLineStrings(poly);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.