|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGeometryCollector
public class GeometryCollector
A stateful geometry collector that will add all geometries into a single resulting geometry collection with the following properties:
PackedCoordinateSequence
is used by default to reduce memory usage)
Constructor Summary | |
---|---|
GeometryCollector()
|
Method Summary | |
---|---|
void |
add(Geometry g)
Adds a geometry to the collector |
GeometryCollection |
collect()
Returns a geometry collection containing all of the geometries collected in the process |
GeometryCollection |
collectInternal()
|
GeometryFactory |
getFactory()
Returns the geometry factory used to deep clone the geometries while collecting them (if null no cloning will happen) |
long |
getMaxCoordinates()
Returns the maximum number of coordinates this collector is allowed to keep in the resulting geometry |
void |
setFactory(GeometryFactory factory)
Sets the geometry factory used to deep clone the geometries while collecting them. |
void |
setMaxCoordinates(long maxCoordinates)
Sets the maximum number of coordinates to be collected. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryCollector()
Method Detail |
---|
public long getMaxCoordinates()
public void setMaxCoordinates(long maxCoordinates)
maxCoordinates
- public GeometryFactory getFactory()
public void setFactory(GeometryFactory factory)
PackedCoordinateSequenceFactory
is used to minimize the memory usage
factory
- public GeometryCollection collect()
public GeometryCollection collectInternal()
public void add(Geometry g)
g
- result
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |