Constructor Detail

GeometryCollector

Method Detail

getMaxCoordinates

Returns the maximum number of coordinates this collector is allowed to keep in the resulting
geometry

Returns:

setMaxCoordinates

public void setMaxCoordinates(long maxCoordinates)

Sets the maximum number of coordinates to be collected. By default is -1, no limit

Parameters:

maxCoordinates -

getFactory

public GeometryFactory getFactory()

Returns the geometry factory used to deep clone the geometries while collecting them (if null
no cloning will happen)

Returns:

setFactory

public void setFactory(GeometryFactory factory)

Sets the geometry factory used to deep clone the geometries while collecting them. May be set
to null to avoid deep cloning. By default a geometry factory based on PackedCoordinateSequenceFactory is used to minimize the memory usage

Parameters:

factory -

collect

public GeometryCollection collect()

Returns a geometry collection containing all of the geometries collected in the process