![]() |
VR-Forces 4.6.1 Class Documentation
|
Base OGR Reader class that will use GDAL and OGR to parse file. More...

Classes | |
| struct | FeatureStyle |
Public Member Functions | |
| DtOGRReader (makVrv::DtDe &de, const std::string &gdalDriver) | |
| CTOR defines which GDAL driver to use. | |
| virtual | ~DtOGRReader () |
| virtual std::vector < DtDataFileCreationData > | loadDataFile (const std::string &file, const std::string &defaultOverlay="") const |
| Returns a list of environmental objects to create. | |
Public Member Functions inherited from makVrf::DtDataFileReader | |
| DtDataFileReader (makVrv::DtDe &) | |
Protected Member Functions | |
| virtual OGRSFDriver * | createOGRDriver (const char *driverName="ESRI Shapefile") const |
| Create a new driver based on ESRI. | |
| virtual bool | importLayer (OGRDataSource *dataSource, OGRLayer *, const std::string &, const std::string &shapeFileName, std::vector< DtDataFileCreationData > &importedData) const |
| Imports the given OGR layer onto the specified overlay layer. | |
| virtual DtDataFileCreationData | importFeature (OGRDataSource *dataSource, OGRLayer *, OGRFeature *, const std::string &, const std::string &shapeFileName) const |
| Imports the given feture onto the specified overlay layer. | |
| virtual int | getForceFromFeature (OGRDataSource *dataSource, OGRLayer *, OGRFeature *, const std::string &) const |
| Calls down to creator to get the force from the feature. | |
| virtual DtEntityType | getEntityTypeToCreateFromFeature (OGRDataSource *dataSource, OGRLayer *layer, OGRFeature *, const std::string &shapeFileName) const |
| Looks to see if there are at least 3 fields, and the third field is ENTITTYPE and a string. | |
| virtual int | geometryType (OGRGeometry *) const |
| Given the geometry, return the type. | |
| virtual std::vector< DtVector > | getFeatureGeometry (OGRFeature *) const |
| Gets feature geometry as local database coordinates. | |
| virtual DtVector | convertPointToLocal (OGRPoint *) const |
| virtual std::string | nameFromFeature (OGRFeature *, const std::string &shapeFileName) const |
| If this has a NAME field in the first field, return that. | |
| virtual FeatureStyle | getStyleForFeature (OGRDataSource *dataSource, OGRLayer *, OGRFeature *) const |
| Gets the color (ARGB) of the feature for the pen (outline or line) | |
Static Protected Member Functions | |
| static void | GDALErrorHandler (int eclass, int code, const char *msg) |
Protected Attributes | |
| std::string | myGDALDriver |
Protected Attributes inherited from makVrf::DtDataFileReader | |
| makVrv::DtDe & | myDe |
Base OGR Reader class that will use GDAL and OGR to parse file.
| makVrf::DtOGRReader::DtOGRReader | ( | makVrv::DtDe & | de, |
| const std::string & | gdalDriver | ||
| ) |
CTOR defines which GDAL driver to use.
|
virtual |
|
virtual |
Returns a list of environmental objects to create.
Implements makVrf::DtDataFileReader.
|
protectedvirtual |
Create a new driver based on ESRI.
|
protectedvirtual |
Imports the given OGR layer onto the specified overlay layer.
|
protectedvirtual |
Imports the given feture onto the specified overlay layer.
|
protectedvirtual |
Calls down to creator to get the force from the feature.
|
protectedvirtual |
Looks to see if there are at least 3 fields, and the third field is ENTITTYPE and a string.
If it is then gets the entity type to create from there. If not creates a waypoint if the feature is a point type, an area if a polygon type and route if line type. Calls down to creator to get the actual type
|
protectedvirtual |
Given the geometry, return the type.
|
protectedvirtual |
Gets feature geometry as local database coordinates.
|
protectedvirtual |
|
protectedvirtual |
If this has a NAME field in the first field, return that.
|
protectedvirtual |
Gets the color (ARGB) of the feature for the pen (outline or line)
|
staticprotected |
|
protected |