#include <ogr_geometry.h>
Inheritance diagram for OGRLineString:
Public Member Functions | |
OGRLineString () | |
virtual OGRErr | importFromWkb (unsigned char *, int=-1) |
virtual OGRErr | importFromWkt (char **) |
virtual void | empty () |
void | getPoint (int, OGRPoint *) const |
virtual OGRBoolean | Equals (OGRGeometry *) const |
void | setNumPoints (int) |
void | setPoint (int, OGRPoint *) |
void | setPoint (int, double, double, double=0.0) |
void | setPoints (int, OGRRawPoint *, double *=NULL) |
void | setPoints (int, double *padfX, double *padfY, double *padfZ=NULL) |
void | addPoint (OGRPoint *) |
void | addPoint (double, double, double=0.0) |
virtual OGRErr | transform (OGRCoordinateTransformation *poCT) |
virtual void | flattenTo2D () |
|
Create an empty line string. |
|
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.
|
|
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.
|
|
Clear geometry information. This restores the geometry to it's initial state after construction, and before assignment of actual geometry. This method relates to the SFCOM IGeometry::Empty() method. This method is the same as the C function OGR_G_Empty(). Implements OGRGeometry. |
|
Returns two if two geometries are equivalent. This method is the same as the C function OGR_G_Equal().
Implements OGRGeometry. |
|
Convert geometry to strictly 2D. In a sense this converts all Z coordinates to 0.0. This method is the same as the C function OGR_G_FlattenTo2D(). Implements OGRGeometry. |
|
Fetch a point in line string. This method relates to the SFCOM ILineString::get_Point() method.
|
|
Assign geometry from well known binary data. The object must have already been instantiated as the correct derived type of geometry object to match the binaries type. This method is used by the OGRGeometryFactory class, but not normally called by application code. This method relates to the SFCOM IWks::ImportFromWKB() method. This method is the same as the C function OGR_G_ImportFromWkb().
Implements OGRGeometry. Reimplemented in OGRLinearRing. |
|
Assign geometry from well known text data. The object must have already been instantiated as the correct derived type of geometry object to match the text type. This method is used by the OGRGeometryFactory class, but not normally called by application code. This method relates to the SFCOM IWks::ImportFromWKT() method. This method is the same as the C function OGR_G_ImportFromWkt().
Implements OGRGeometry. |
|
Set number of points in geometry. This method primary exists to preset the number of points in a linestring geometry before setPoint() is used to assign them to avoid reallocating the array larger with each call to addPoint(). This method has no SFCOM analog.
|
|
Set the location of a vertex in line string. If iPoint is larger than the number of necessary the number of existing points in the line string, the point count will be increased to accomodate the request. There is no SFCOM analog to this method.
|
|
Set the location of a vertex in line string. If iPoint is larger than the number of necessary the number of existing points in the line string, the point count will be increased to accomodate the request. There is no SFCOM analog to this method.
|
|
Assign all points in a line string. This method clear any existing points assigned to this line string, and assigns a whole new set. There is no SFCOM analog to this method.
|
|
Assign all points in a line string. This method clears any existing points assigned to this line string, and assigns a whole new set. It is the most efficient way of assigning the value of a line string. There is no SFCOM analog to this method.
|
|
Apply arbitrary coordinate transformation to geometry. This method will transform the coordinates of a geometry from their current spatial reference system to a new target spatial reference system. Normally this means reprojecting the vectors, but it could include datum shifts, and changes of units. Note that this method does not require that the geometry already have a spatial reference system. It will be assumed that they can be treated as having the source spatial reference system of the OGRCoordinateTransformation object, and the actual SRS of the geometry will be ignored. On successful completion the output OGRSpatialReference of the OGRCoordinateTransformation will be assigned to the geometry. This method is the same as the C function OGR_G_Transform().
Implements OGRGeometry. |