#include <geos.h>
Public Member Functions | |
GeometryFactory () | |
Constructs a GeometryFactory that generates Geometries having a floating PrecisionModel and a spatial-reference ID of 0. | |
GeometryFactory (const PrecisionModel *pm, int newSRID, CoordinateSequenceFactory *nCoordinateSequenceFactory) | |
Constructs a GeometryFactory that generates Geometries having the given PrecisionModel, spatial-reference ID, and CoordinateSequence implementation. | |
GeometryFactory (CoordinateSequenceFactory *nCoordinateSequenceFactory) | |
Constructs a GeometryFactory that generates Geometries having the given CoordinateSequence implementation, a double-precision floating PrecisionModel and a spatial-reference ID of 0. | |
GeometryFactory (const PrecisionModel *pm) | |
Constructs a GeometryFactory that generates Geometries having the given PrecisionModel and the default CoordinateSequence implementation. | |
GeometryFactory (const PrecisionModel *pm, int newSRID) | |
Constructs a GeometryFactory that generates Geometries having the given PrecisionModel and spatial-reference ID, and the default CoordinateSequence implementation. | |
GeometryFactory (const GeometryFactory &gf) | |
Copy constructor. | |
virtual | ~GeometryFactory () |
Destructor. | |
Geometry * | toGeometry (const Envelope *envelope) const |
Envelope to Geometry converter. | |
const PrecisionModel * | getPrecisionModel () const |
Returns the PrecisionModel that Geometries created by this factory will be associated with. | |
Point * | createPoint () const |
Creates an EMPTY Point. | |
Point * | createPoint (const Coordinate &coordinate) const |
Creates a Point using the given Coordinate. | |
Point * | createPoint (CoordinateSequence *coordinates) const |
Creates a Point taking ownership of the given CoordinateSequence. | |
Point * | createPoint (const CoordinateSequence &coordinates) const |
Creates a Point with a deep-copy of the given CoordinateSequence. | |
GeometryCollection * | createGeometryCollection () const |
Construct an EMPTY GeometryCollection. | |
GeometryCollection * | createGeometryCollection (vector< Geometry * > *newGeoms) const |
Construct a GeometryCollection taking ownership of given arguments. | |
GeometryCollection * | createGeometryCollection (const vector< Geometry * > &newGeoms) const |
Constructs a GeometryCollection with a deep-copy of args. | |
MultiLineString * | createMultiLineString () const |
Construct an EMPTY MultiLineString. | |
MultiLineString * | createMultiLineString (vector< Geometry * > *newLines) const |
Construct a MultiLineString taking ownership of given arguments. | |
MultiLineString * | createMultiLineString (const vector< Geometry * > &fromLines) const |
Construct a MultiLineString with a deep-copy of given arguments. | |
MultiPolygon * | createMultiPolygon () const |
Construct an EMPTY MultiPolygon. | |
MultiPolygon * | createMultiPolygon (vector< Geometry * > *newPolys) const |
Construct a MultiPolygon taking ownership of given arguments. | |
MultiPolygon * | createMultiPolygon (const vector< Geometry * > &fromPolys) const |
Construct a MultiPolygon with a deep-copy of given arguments. | |
LinearRing * | createLinearRing () const |
Construct an EMPTY LinearRing. | |
LinearRing * | createLinearRing (CoordinateSequence *newCoords) const |
Construct a LinearRing taking ownership of given arguments. | |
LinearRing * | createLinearRing (const CoordinateSequence &coordinates) const |
Construct a LinearRing with a deep-copy of given arguments. | |
MultiPoint * | createMultiPoint () const |
Constructs an EMPTY MultiPoint . | |
MultiPoint * | createMultiPoint (vector< Geometry * > *newPoints) const |
Construct a MultiPoint taking ownership of given arguments. | |
MultiPoint * | createMultiPoint (const vector< Geometry * > &fromPoints) const |
Construct a MultiPoint with a deep-copy of given arguments. | |
MultiPoint * | createMultiPoint (const CoordinateSequence &fromCoords) const |
Construct a MultiPoint containing a Point geometry for each Coordinate in the given list. | |
Polygon * | createPolygon () const |
Construct an EMPTY Polygon. | |
Polygon * | createPolygon (LinearRing *shell, vector< Geometry * > *holes) const |
Construct a Polygon taking ownership of given arguments. | |
Polygon * | createPolygon (const LinearRing &shell, const vector< Geometry * > &holes) const |
Construct a Polygon with a deep-copy of given arguments. | |
LineString * | createLineString () const |
Construct an EMPTY LineString. | |
LineString * | createLineString (CoordinateSequence *coordinates) const |
Construct a LineString taking ownership of given argument. | |
LineString * | createLineString (const CoordinateSequence &coordinates) const |
Construct a LineString with a deep-copy of given argument. | |
Geometry * | buildGeometry (vector< Geometry * > *geoms) const |
Construct the most suitable Geometry using the given Geometries; will take ownership of arguments. | |
Geometry * | buildGeometry (const vector< Geometry * > &geoms) const |
Construct the most suitable Geometry using the given Geometries; will use a deep-copy of arguments. | |
Geometry * | createGeometry (const Geometry *g) const |
Returns a clone of given Geometry. | |
void | destroyGeometry (Geometry *g) const |
Destroy a Geometry, or release it. |
|
Constructs a GeometryFactory that generates Geometries having a floating PrecisionModel and a spatial-reference ID of 0. Constructs a GeometryFactory that generates Geometries having a floating PrecisionModel and a spatial-reference ID of 0. |
|
Constructs a GeometryFactory that generates Geometries having the given PrecisionModel, spatial-reference ID, and CoordinateSequence implementation. Constructs a GeometryFactory that generates Geometries having the given PrecisionModel, spatial-reference ID, and CoordinateSequence implementation. |
|
Constructs a GeometryFactory that generates Geometries having the given CoordinateSequence implementation, a double-precision floating PrecisionModel and a spatial-reference ID of 0. Constructs a GeometryFactory that generates Geometries having the given CoordinateSequence implementation, a double-precision floating PrecisionModel and a spatial-reference ID of 0. |
|
Constructs a GeometryFactory that generates Geometries having the given PrecisionModel and the default CoordinateSequence implementation.
|
|
Constructs a GeometryFactory that generates Geometries having the given PrecisionModel and spatial-reference ID, and the default CoordinateSequence implementation.
|
|
Copy constructor.
|
|
Construct the most suitable Geometry using the given Geometries; will use a deep-copy of arguments. This function does the same thing of the omonimouse function taking vector pointer instead of reference. The difference is that this version will copy needed data leaving ownership to the caller. |
|
Construct the most suitable Geometry using the given Geometries; will take ownership of arguments.
Build an appropriate For example:
|
|
Returns a clone of given Geometry.
|
|
Constructs a GeometryCollection with a deep-copy of args.
|
|
Construct a GeometryCollection taking ownership of given arguments. Constructs a GeometryCollection.
If construction fails "IllegalArgumentException *" is thrown and it is your responsibility to delete newGeoms vector and content. |
|
Construct an EMPTY GeometryCollection.
Constructs an EMPTY |
|
Construct a LinearRing taking ownership of given arguments. Creates a LinearRing using the given CoordinateSequence; a null or empty CoordinateSequence will create an empty LinearRing. The points must form a closed and simple linestring. Consecutive points must not be equal.
|
|
Construct an EMPTY LinearRing. Creates an EMPTY LinearRing |
|
Construct a LineString with a deep-copy of given argument.
Constructs a
|
|
Construct a LineString taking ownership of given argument.
Constructs a
|
|
Construct an EMPTY LineString. Constructs an EMPTY LineString |
|
Construct a MultiLineString with a deep-copy of given arguments.
Constructs a
|
|
Construct a MultiLineString taking ownership of given arguments.
Constructs a
|
|
Construct an EMPTY MultiLineString. Construct an EMPTY MultiLineString |
|
Construct a MultiPoint containing a Point geometry for each Coordinate in the given list. Creates a MultiPoint using the given CoordinateSequence.
|
|
Construct a MultiPoint with a deep-copy of given arguments.
Constructs a
|
|
Construct a MultiPoint taking ownership of given arguments.
Constructs a
|
|
Constructs an EMPTY Creates an EMPTY MultiPoint |
|
Construct a MultiPolygon with a deep-copy of given arguments.
|
|
Construct a MultiPolygon taking ownership of given arguments.
|
|
Creates a Point with a deep-copy of the given CoordinateSequence. Creates a Point using the given CoordinateSequence (must have 1 element)
|
|
Creates a Point taking ownership of the given CoordinateSequence. Creates a Point using the given CoordinateSequence (must have 1 element)
|
|
Creates a Point using the given Coordinate. Creates a Point using the given Coordinate; a null Coordinate will create an empty Geometry. |
|
Creates an EMPTY Point. Creates the EMPTY Point |
|
Construct a Polygon with a deep-copy of given arguments.
Constructs a
|
|
Construct a Polygon taking ownership of given arguments.
Constructs a
|
|
Construct an EMPTY Polygon. Constructs an EMPTY Polygon |
|
Destroy a Geometry, or release it. Destroy a Geometry, or release it. |
|
Returns the PrecisionModel that Geometries created by this factory will be associated with. Returns the PrecisionModel that Geometries created by this factory will be associated with. |
|
Envelope to Geometry converter. Converts an Envelope to a Geometry. Returned Geometry can be a Point, a Polygon or an EMPTY geom. |