|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.algorithm.CentroidLine
Computes the centroid of a linear geometry.
| Constructor Summary | |
CentroidLine()
|
|
| Method Summary | |
void |
add(Coordinate[] pts)
Adds the length defined by an array of coordinates. |
void |
add(Geometry geom)
Adds the linestring(s) defined by a Geometry to the centroid total. |
Coordinate |
getCentroid()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CentroidLine()
| Method Detail |
public void add(Geometry geom)
geom - the geometry to addpublic Coordinate getCentroid()
public void add(Coordinate[] pts)
pts - an array of Coordinates
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||