OGR
Public Member Functions | List of all members
OGRLineString Class Reference

#include <ogr_geometry.h>

Inheritance diagram for OGRLineString:
OGRCurve OGRGeometry OGRLinearRing

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 OGRGeometryclone () 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.
OGRSpatialReferencegetSpatialReference (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 OGRGeometryBoundary () const
 Compute boundary.
virtual double Distance (const OGRGeometry *) const
 Compute distance between two geometries.
virtual OGRGeometryConvexHull () const
 Compute convex hull.
virtual OGRGeometryBuffer (double dfDist, int nQuadSegs=30) const
 Compute buffer of geometry.
virtual OGRGeometryIntersection (const OGRGeometry *) const
 Compute intersection.
virtual OGRGeometryUnion (const OGRGeometry *) const
 Compute union.
virtual OGRGeometryUnionCascaded () const
 Compute union using cascading.
virtual OGRGeometryDifference (const OGRGeometry *) const
 Compute difference.
virtual OGRGeometrySymDifference (const OGRGeometry *) const
 Compute symmetric difference.
virtual OGRErr Centroid (OGRPoint *poPoint) const
 Compute the geometry centroid.
virtual OGRGeometrySimplify (double dTolerance) const
 Simplify the geometry.
OGRGeometrySimplifyPreserveTopology (double dTolerance) const
 Simplify the geometry while preserving topology.
virtual OGRGeometryPolygonize () const
 Polygonizes a set of sparse edges.
virtual OGRGeometrySymmetricDifference (const OGRGeometry *) const
 Compute symmetric difference (deprecated)
virtual OGRGeometrygetBoundary () const
 Compute boundary (deprecated)

Detailed Description

Concrete representation of a multi-vertex line.

Member Function Documentation

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.

Parameters
poPointthe 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.

Parameters
xthe X coordinate to assign to the new point.
ythe Y coordinate to assign to the new point.
zthe 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.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const
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().

Returns
a new object instance with the same geometry, and spatial reference system as the 6e nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.

Parameters
poOtherLinethe other OGRLineString.
nStartVertexthe first vertex to copy, defaults to 0 to start with the first vertex in the other linestring.
nEndVertexthe last vertex to copy, defaults to -1 indicating the last vertex of the other line string.

References getNumPoints(), and setNumPoints().

Referenced by OGRGeometryFactory::forceToMultiLineString().

OGRGeometry * OGRLineString::clone ( ) const