Available Methods
- getCoordinates ( )
- getNumGeometries ( )
- isEmpty ( )
- buffer ( )
- union ( )
- setSRID ( )
- apply ( )
- getDimension ( )
- getBoundary ( )
- geometryChanged ( )
- getCoordinate ( )
- getNumPoints ( )
- intersection ( )
- isValid ( )
- equalsExact ( )
- distance ( )
- setUserData ( )
- getSRID ( )
- intersects ( )
- convexHull ( )
- difference ( )
- getGeometryN ( )
- clone ( )
- getEnvelopeInternal ( )
- copy ( )
Related Classes
- java.io.File
- java.util.Iterator
- org.junit.Assert
- java.util.Optional
- java.io.Reader
- java.util.logging.Level
- org.xml.sax.SAXException
- javax.imageio.ImageIO
- javax.xml.parsers.ParserConfigurationException
- java.awt.Color
- org.joda.time.DateTime
- junit.framework.Assert
- java.awt.Graphics2D
- java.awt.Shape
- org.bson.Document
- com.vividsolutions.jts.geom.Coordinate
- com.vividsolutions.jts.geom.GeometryFactory
- com.vividsolutions.jts.geom.Point
- com.vividsolutions.jts.geom.Polygon
- com.vividsolutions.jts.geom.LineString
- org.opengis.feature.simple.SimpleFeature
- com.vividsolutions.jts.io.WKTReader
- org.opengis.referencing.crs.CoordinateReferenceSystem
- org.opengis.referencing.operation.TransformException
- org.opengis.referencing.operation.MathTransform
Java Code Examples for com.vividsolutions.jts.geom.Geometry#convexHull()
The following examples show how to use
com.vividsolutions.jts.geom.Geometry#convexHull() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NominatimGeocoder.java From DataHubSystem with GNU Affero General Public License v3.0 | 6 votes |
private static Geometry convexHullOneLevel(final Geometry geometry) { if (geometry.getNumGeometries() > 1) { Geometry [] convex_hulls = new Geometry [geometry.getNumGeometries()]; for (int igeom=0; igeom<geometry.getNumGeometries(); igeom++) { convex_hulls[igeom] = geometry.getGeometryN(igeom).convexHull(); } return geometry.getFactory().createGeometryCollection(convex_hulls); } else { return geometry.convexHull(); } }
Example 2
Source File: ConstructionFunctions.java From jts with GNU Lesser General Public License v2.1 | votes |
public static Geometry convexHull(Geometry g) { return g.convexHull(); }