OGRMultiLineString Class Reference

#include <ogr_geometry.h>

Inheritance diagram for OGRMultiLineString:

OGRGeometryCollection OGRGeometry List of all members.

Public Member Functions

virtual OGRErr importFromWkt (char **)
virtual OGRErr addGeometryDirectly (OGRGeometry *)

Detailed Description

A collection of OGRLineStrings.


Member Function Documentation

OGRErr OGRMultiLineString::addGeometryDirectly OGRGeometry poNewGeom  )  [virtual]
 

Add a geometry directly to the container.

Some subclasses of OGRGeometryCollection restrict the types of geometry that can be added, and may return an error. Ownership of the passed geometry is taken by the container rather than cloning as addGeometry() does.

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

There is no SFCOM analog to this method.

Parameters:
poNewGeom geometry to add to the container.
Returns:
OGRERR_NONE if successful, or OGRERR_UNSUPPORTED_GEOMETRY_TYPE if the geometry type is illegal for the type of geometry container.

Reimplemented from OGRGeometryCollection.

OGRErr OGRMultiLineString::importFromWkt char **  ppszInput  )  [virtual]
 

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().

Parameters:
ppszInput pointer to a pointer to the source text. The pointer is updated to pointer after the consumed text.
Returns:
OGRERR_NONE if all goes well, otherwise any of OGRERR_NOT_ENOUGH_DATA, OGRERR_UNSUPPORTED_GEOMETRY_TYPE, or OGRERR_CORRUPT_DATA may be returned.

Reimplemented from OGRGeometryCollection.


The documentation for this class was generated from the following files:
Generated on Mon Jan 9 18:03:32 2006 for OGR by  doxygen 1.4.6