OGRMultiLineString Class Reference

#include <ogr_geometry.h>

Inheritance diagram for OGRMultiLineString:
OGRMultiCurve OGRGeometryCollection OGRGeometry

List of all members.

Public Member Functions

 OGRMultiLineString ()
 Create an empty multi line string collection.
 OGRMultiLineString (const OGRMultiLineString &other)
 Copy constructor.
OGRMultiLineString & operator= (const OGRMultiLineString &other)
 Assignment operator.
virtual const char * getGeometryName () const
 Fetch WKT name for geometry type.
virtual OGRwkbGeometryType getGeometryType () const
 Fetch geometry type.
virtual OGRErr exportToWkt (char **, OGRwkbVariant=wkbVariantOldOgc) const
 Convert a geometry into well known text format.

Static Public Member Functions

static OGRMultiCurve * CastToMultiCurve (OGRMultiLineString *poMLS)
 Cast to multicurve.

Detailed Description

A collection of OGRLineString.


Constructor & Destructor Documentation

OGRMultiLineString::OGRMultiLineString ( const OGRMultiLineString &  other  ) 

Copy constructor.

Note: before GDAL 2.1, only the default implementation of the constructor existed, which could be unsafe to use.

Since:
GDAL 2.1

Member Function Documentation

OGRMultiCurve * OGRMultiLineString::CastToMultiCurve ( OGRMultiLineString *  poMLS  )  [static]

Cast to multicurve.

The passed in geometry is consumed and a new one returned .

Parameters:
poMLS the input geometry - ownership is passed to the method.
Returns:
new geometry.

References OGRMultiCurve::OGRMultiCurve().

Referenced by OGRGeometryFactory::forceTo().

OGRErr OGRMultiLineString::exportToWkt ( char **  ppszDstText,
OGRwkbVariant  eWkbVariant = wkbVariantOldOgc 
) const [virtual]

Convert a geometry into well known text format.

This method relates to the SFCOM IWks::ExportToWKT() method.

This method is the same as the C function OGR_G_ExportToWkt().

Parameters:
ppszDstText a text buffer is allocated by the program, and assigned to the passed pointer. After use, *ppszDstText should be freed with OGRFree().
eWkbVariant the specification that must be conformed too :

  • wbkVariantOgc for old-style 99-402 extended dimension (Z) WKB types
  • wbkVariantIso for SFSQL 1.2 and ISO SQL/MM Part 3
Returns:
Currently OGRERR_NONE is always returned.

Reimplemented from OGRMultiCurve.

const char * OGRMultiLineString::getGeometryName (  )  const [virtual]

Fetch WKT name for geometry type.

There is no SFCOM analog to this method.

This method is the same as the C function OGR_G_GetGeometryName().

Returns:
name used for this geometry type in well known text format. The returned pointer is to a static internal string and should not be modified or freed.

Reimplemented from OGRMultiCurve.

OGRwkbGeometryType OGRMultiLineString::getGeometryType (  )  const [virtual]

Fetch geometry type.

Note that the geometry type may include the 2.5D flag. To get a 2D flattened version of the geometry type apply the wkbFlatten() macro to the return result.

This method is the same as the C function OGR_G_GetGeometryType().

Returns:
the geometry type code.

Reimplemented from OGRMultiCurve.

References wkbMultiLineString, wkbMultiLineString25D, wkbMultiLineStringM, and wkbMultiLineStringZM.

OGRMultiLineString & OGRMultiLineString::operator= ( const OGRMultiLineString &  other  ) 

Assignment operator.

Note: before GDAL 2.1, only the default implementation of the operator existed, which could be unsafe to use.

Since:
GDAL 2.1

Reimplemented from OGRMultiCurve.


The documentation for this class was generated from the following files:

Generated for GDAL by doxygen 1.6.1.