Public Member Functions | Protected Member Functions | Protected Attributes
openfluid::core::GeoVectorValue Class Reference

Container class for geospatial vector data, represented by an OGR datasource. More...

Inheritance diagram for openfluid::core::GeoVectorValue:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GeoVectorValue (std::string PrefixPath, std::string RelativePath)
 Creates a new value.
 ~GeoVectorValue ()
 Closes the opened OGR datasource.
openfluid::core::UnstructuredValue::UnstructuredType getType () const
OGRDataSource * get ()
 Gets the associated opened OGR datasource.

Protected Member Functions

void tryOpeningSource ()
std::string getAbsolutePath ()

Protected Attributes

OGRDataSource * m_Data

Detailed Description

Container class for geospatial vector data, represented by an OGR datasource.


Constructor & Destructor Documentation

openfluid::core::GeoVectorValue::GeoVectorValue ( std::string  PrefixPath,
std::string  RelativePath 
)

Creates a new value.

The RelativePath may be path to a .shp, .shx or .dbf file, or a path to a directory containing proper shape files.

It doesn't open the associated OGR datasource.

Parameters:
RelativePathThe path of the data, relative to the PrefixPath.

Closes the opened OGR datasource.


Member Function Documentation

Gets the associated opened OGR datasource.

If the datasource is not already opened, tries to open it first.

Returns:
The opened OGR datasource.
Exceptions:
openfluid::base::OFExceptionif OGR doesn't succeed to open the datasource.

Member Data Documentation

OGRDataSource* openfluid::core::GeoVectorValue::m_Data [protected]

Generated using Doxygen 1.7.6.1
Creative Commons License Creative Commons By-NC-ND license