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

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 |
Container class for geospatial vector data, represented by an OGR datasource.
| 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.
| RelativePath | The path of the data, relative to the PrefixPath. |
Closes the opened OGR datasource.
| OGRDataSource* openfluid::core::GeoVectorValue::get | ( | ) |
Gets the associated opened OGR datasource.
If the datasource is not already opened, tries to open it first.
| openfluid::base::OFException | if OGR doesn't succeed to open the datasource. |
| std::string openfluid::core::GeoVectorValue::getAbsolutePath | ( | ) | [protected] |
| openfluid::core::UnstructuredValue::UnstructuredType openfluid::core::GeoVectorValue::getType | ( | ) | const [virtual] |
Implements openfluid::core::UnstructuredValue.
| void openfluid::core::GeoVectorValue::tryOpeningSource | ( | ) | [protected] |
OGRDataSource* openfluid::core::GeoVectorValue::m_Data [protected] |
Creative Commons By-NC-ND license