|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaitools.jts.Utils
public class Utils
A helper class with methods to work with JTS geometry objects.
| Method Summary | |
|---|---|
static com.vividsolutions.jts.geom.GeometryFactory |
getGeometryFactory()
Gets the cached GeometryFactory instance. |
static com.vividsolutions.jts.geom.Geometry |
removeCollinearVertices(com.vividsolutions.jts.geom.Geometry g)
Removes collinear vertices from the provided Geometry. |
static com.vividsolutions.jts.geom.LineString |
removeCollinearVertices(com.vividsolutions.jts.geom.LineString ls)
Removes collinear points from the provided linestring. |
static com.vividsolutions.jts.geom.Polygon |
removeCollinearVertices(com.vividsolutions.jts.geom.Polygon polygon)
Removes collinear vertices from the provided Polygon. |
static com.vividsolutions.jts.geom.GeometryFactory |
setPrecision(double scale)
Sets the precision to be used by the cached GeometryFactory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static com.vividsolutions.jts.geom.GeometryFactory getGeometryFactory()
GeometryFactory instance.
public static com.vividsolutions.jts.geom.GeometryFactory setPrecision(double scale)
GeometryFactory.
For an explanation of the scale factor see PrecisionModel.
scale - the desired precision expressed as a scale factor
GeometryFactory instancepublic static com.vividsolutions.jts.geom.LineString removeCollinearVertices(com.vividsolutions.jts.geom.LineString ls)
ls - the LineString to be simplified.
LineString with collinear points removed.public static com.vividsolutions.jts.geom.Polygon removeCollinearVertices(com.vividsolutions.jts.geom.Polygon polygon)
Polygon.
polygon - the instance of a Polygon to remove collinear vertices from.
Polygon without collinear vertices.public static com.vividsolutions.jts.geom.Geometry removeCollinearVertices(com.vividsolutions.jts.geom.Geometry g)
Geometry.
For the moment this implementation only accepts, Polygon, LinearRing and LineString.
It return null in case the geometry is not of these types.
g - the instance of a Geometry to remove collinear vertices from.
Geometry without collinear vertices.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||