public class JTSGeometryBuilder extends Object
| Constructor and Description |
|---|
JTSGeometryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
com.vividsolutions.jts.geom.LinearRing |
buildLinearRing(Element ring)
Builds a LinearRing geometry from a kml:LinearRing element.
|
com.vividsolutions.jts.geom.LineString |
buildLineString(Element line)
Builds a LineString geometry from a kml:LineString element.
|
com.vividsolutions.jts.geom.Point |
buildPoint(Element point)
Builds a Point geometry from a kml:Point element.
|
com.vividsolutions.jts.geom.Point |
buildPointFromLocation(Element location)
Builds a Point geometry from a kml:Location element.
|
com.vividsolutions.jts.geom.Polygon |
buildPolygon(Element polygon)
Builds a Polygon geometry from a kml:Polygon element.
|
com.vividsolutions.jts.geom.Polygon |
buildPolygon(com.vividsolutions.jts.geom.Envelope env)
Builds a Polygon from the given envelope.
|
com.vividsolutions.jts.geom.Polygon |
buildPolygonFromCoordinates(Node coords)
Builds a Polygon with an exterior boundary delimited by the given
sequence of coordinates.
|
(package private) List<com.vividsolutions.jts.geom.Coordinate> |
createCoordinateList(Node coords)
Creates a Coordinate sequence from the content of a kml:coordinates
element.
|
public com.vividsolutions.jts.geom.Point buildPoint(Element point)
point - An Element node (kml:Point).public com.vividsolutions.jts.geom.Point buildPointFromLocation(Element location)
location - An Element node (kml:Location).public com.vividsolutions.jts.geom.LineString buildLineString(Element line)
line - An Element node (kml:LineString).public com.vividsolutions.jts.geom.LinearRing buildLinearRing(Element ring)
ring - An Element node (kml:LinearRing).public com.vividsolutions.jts.geom.Polygon buildPolygon(Element polygon)
polygon - An Element node (kml:Polygon).IllegalArgumentException - If a boundary element (ring) is not closed or an inner
boundary is not inside the outer boundary.public com.vividsolutions.jts.geom.Polygon buildPolygon(com.vividsolutions.jts.geom.Envelope env)
env - A JTS envelope defining some spatial extent.public com.vividsolutions.jts.geom.Polygon buildPolygonFromCoordinates(Node coords)
coords - A node containing a list of coordinates (kml:coordinates).List<com.vividsolutions.jts.geom.Coordinate> createCoordinateList(Node coords)
coords - A node containing a coordinate sequence (kml:coordinates).Copyright © 2016 Open Geospatial Consortium. All rights reserved.