|
OGR
|
#include <ogr_geometry.h>
Public Member Functions | |
| OGRLineString () | |
| Create an empty line string. | |
| virtual int | WkbSize () const |
| Returns size of related binary representation. | |
| virtual OGRErr | importFromWkb (unsigned char *, int=-1) |
| Assign geometry from well known binary data. | |
| virtual OGRErr | exportToWkb (OGRwkbByteOrder, unsigned char *) const |
| Convert a geometry into well known binary format. | |
| virtual OGRErr | importFromWkt (char **) |
| Assign geometry from well known text data. | |
| virtual OGRErr | exportToWkt (char **ppszDstText) const |
| Convert a geometry into well known text format. | |
| virtual int | getDimension () const |
| Get the dimension of this object. | |
| virtual OGRGeometry * | clone () const |
| Make a copy of this object. | |
| virtual void | empty () |
| Clear geometry information. This restores the geometry to it's initial state after construction, and before assignment of actual geometry. | |
| virtual void | getEnvelope (OGREnvelope *psEnvelope) const |
| Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure. | |
| virtual void | getEnvelope (OGREnvelope3D *psEnvelope) const |
| Computes and returns the bounding envelope (3D) for this geometry in the passed psEnvelope structure. | |
| virtual OGRBoolean | IsEmpty () const |
| Returns TRUE (non-zero) if the object has no points. | |
| virtual double | get_Length () const |
| Returns the length of the curve. | |
| virtual void | StartPoint (OGRPoint *) const |
| Return the curve start point. | |
| virtual void | EndPoint (OGRPoint *) const |
| Return the curve end point. | |
| virtual void | Value (double, OGRPoint *) const |
| Fetch point at given distance along curve. | |
| int | getNumPoints () const |
| Fetch vertex count. | |
| void | getPoint (int, OGRPoint *) const |
| Fetch a point in line string. | |
| double | getX (int i) const |
| Get X at vertex. | |
| double | getY (int i) const |
| Get Y at vertex. | |
| double | getZ (int i) const |
| Get Z at vertex. | |
| virtual OGRBoolean | Equals (OGRGeometry *) const |
| Returns TRUE if two geometries are equivalent. | |
| virtual void | setCoordinateDimension (int nDimension) |
| Set the coordinate dimension. | |
| void | setNumPoints (int) |
| Set number of points in geometry. | |
| void | setPoint (int, OGRPoint *) |
| Set the location of a vertex in line string. | |
| void | setPoint (int, double, double, double) |
| Set the location of a vertex in line string. | |
| void | setPoints (int, OGRRawPoint *, double *=NULL) |
| Assign all points in a line string. | |
| void | setPoints (int, double *padfX, double *padfY, double *padfZ=NULL) |
| Assign all points in a line string. | |
| void | addPoint (OGRPoint *) |
| Add a point to a line string. | |
| void | addPoint (double, double, double) |
| Add a point to a line string. | |
| void | getPoints (OGRRawPoint *, double *=NULL) const |
| Returns all points of line string. | |
| void | getPoints (void *pabyX, int nXStride, void *pabyY, int nYStride, void *pabyZ=NULL, int nZStride=0) const |
| Returns all points of line string. | |
| void | addSubLineString (const OGRLineString *, int nStartVertex=0, int nEndVertex=-1) |
| Add a segment of another linestring to this one. | |
| virtual OGRwkbGeometryType | getGeometryType () const |
| Fetch geometry type. | |
| virtual const char * | getGeometryName () const |
| Fetch WKT name for geometry type. | |
| virtual OGRErr | transform (OGRCoordinateTransformation *poCT) |
| Apply arbitrary coordinate transformation to geometry. | |
| virtual void | flattenTo2D () |
| Convert geometry to strictly 2D. In a sense this converts all Z coordinates to 0.0. | |
| virtual void | segmentize (double dfMaxLength) |
| Modify the geometry such it has no segment longer then the given distance. | |
| virtual void | swapXY () |
| Swap x and y coordinates. | |
Public Member Functions inherited from OGRCurve | |
| virtual int | get_IsClosed () const |
| Return TRUE if curve is closed. | |
Public Member Functions inherited from OGRGeometry | |
| virtual int | getCoordinateDimension () const |
| Get the dimension of the coordinates in this object. | |
| virtual OGRBoolean | IsValid () const |
| Test if the geometry is valid. | |
| virtual OGRBoolean | IsSimple () const |
| Test if the geometry is simple. | |
| virtual OGRBoolean | IsRing () const |
| Test if the geometry is a ring. | |
| virtual void | dumpReadable (FILE *, const char *=NULL, char **papszOptions=NULL) const |
| Dump geometry in well known text format to indicated output file. | |
| virtual char * | exportToGML (const char *const *papszOptions=NULL) const |
| Convert a geometry into GML format. | |
| virtual char * | exportToKML () const |
| Convert a geometry into KML format. | |
| virtual char * | exportToJson () const |
| Convert a geometry into GeoJSON format. | |
| virtual void | closeRings () |
| Force rings to be closed. | |
| void | assignSpatialReference (OGRSpatialReference *poSR) |
| Assign spatial reference to this object. | |
| OGRSpatialReference * | getSpatialReference (void) const |
| Returns spatial reference system for object. | |
| OGRErr | transformTo (OGRSpatialReference *poSR) |
| Transform geometry to new spatial reference system. | |
| virtual OGRBoolean | Intersects (OGRGeometry *) const |
| Do these features intersect? | |
| virtual OGRBoolean | Disjoint (const OGRGeometry *) const |
| Test for disjointness. | |
| virtual OGRBoolean | Touches (const OGRGeometry *) const |
| Test for touching. | |
| virtual OGRBoolean | Crosses (const OGRGeometry *) const |
| Test for crossing. | |
| virtual OGRBoolean | Within (const OGRGeometry *) const |
| Test for containment. | |
| virtual OGRBoolean | Contains (const OGRGeometry *) const |
| Test for containment. | |
| virtual OGRBoolean | Overlaps (const OGRGeometry *) const |
| Test for overlap. | |
| virtual OGRGeometry * | Boundary () const |
| Compute boundary. | |
| virtual double | Distance (const OGRGeometry *) const |
| Compute distance between two geometries. | |
| virtual OGRGeometry * | ConvexHull () const |
| Compute convex hull. | |
| virtual OGRGeometry * | Buffer (double dfDist, int nQuadSegs=30) const |
| Compute buffer of geometry. | |
| virtual OGRGeometry * | Intersection (const OGRGeometry *) const |
| Compute intersection. | |
| virtual OGRGeometry * | Union (const OGRGeometry *) const |
| Compute union. | |
| virtual OGRGeometry * | UnionCascaded () const |
| Compute union using cascading. | |
| virtual OGRGeometry * | Difference (const OGRGeometry *) const |
| Compute difference. | |
| virtual OGRGeometry * | SymDifference (const OGRGeometry *) const |
| Compute symmetric difference. | |
| virtual OGRErr | Centroid (OGRPoint *poPoint) const |
| Compute the geometry centroid. | |
| virtual OGRGeometry * | Simplify (double dTolerance) const |
| Simplify the geometry. | |
| OGRGeometry * | SimplifyPreserveTopology (double dTolerance) const |
| Simplify the geometry while preserving topology. | |
| virtual OGRGeometry * | Polygonize () const |
| Polygonizes a set of sparse edges. | |
| virtual OGRGeometry * | SymmetricDifference (const OGRGeometry *) const |
| Compute symmetric difference (deprecated) | |
| virtual OGRGeometry * | getBoundary () const |
| Compute boundary (deprecated) | |
Concrete representation of a multi-vertex line.
| void OGRLineString::addPoint | ( | OGRPoint * | poPoint | ) |
Add a point to a line string.
The vertex count of the line string is increased by one, and assigned from the passed location value.
There is no SFCOM analog to this method.
| poPoint | the point to assign to the new vertex. |
References OGRGeometry::getCoordinateDimension(), OGRPoint::getX(), OGRPoint::getY(), OGRPoint::getZ(), and setPoint().
Referenced by OGRLinearRing::closeRings(), OGRBuildPolygonFromEdges(), and OGRLayer::SetSpatialFilterRect().
| void OGRLineString::addPoint | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Add a point to a line string.
The vertex count of the line string is increased by one, and assigned from the passed location value.
There is no SFCOM analog to this method.
| x | the X coordinate to assign to the new point. |
| y | the Y coordinate to assign to the new point. |
| z | the Z coordinate to assign to the new point (defaults to zero). |
References setPoint().
| void OGRLineString::addSubLineString | ( | const OGRLineString * | poOtherLine, |
| int | nStartVertex = 0, |
||
| int | nEndVertex = -1 |
||
| ) |
Add a segment of another linestring to this one.
Adds the request range of vertices to the end of this line string in an efficient manner. If the nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|
virtual |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
| poOtherLine | the other OGRLineString. |
| nStartVertex | the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. |
| nEndVertex | the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. |
References getNumPoints(), and setNumPoints().
Referenced by OGRGeometryFactory::forceToMultiLineString().
|