![]() |
VR-Forces 5.0.3 Developer's Guide
|
Base OGR Reader class that will use GDAL and OGR to parse file.

Classes | |
| struct | FeatureStyle |
Public Member Functions | |
| DtOGRReader (makVrv::DtDe &de, const std::string &gdalDriver) | |
| virtual | ~DtOGRReader () |
| virtual std::vector < DtDataFileCreationData > | loadDataFile (const std::string &file, const std::string &defaultOverlay="") const |
Public Member Functions inherited from makVrf::DtDataFileReader | |
| DtDataFileReader (makVrv::DtDe &) | |
Protected Member Functions | |
| virtual bool | importLayer (GDALDataset *dataSource, OGRLayer *, const std::string &, const std::string &shapeFileName, std::vector< DtDataFileCreationData > &importedData) const |
| virtual DtDataFileCreationData | importFeature (GDALDataset *dataSource, OGRLayer *, OGRFeature *, const std::string &, const std::string &shapeFileName) const |
| virtual int | getForceFromFeature (GDALDataset *dataSource, OGRLayer *, OGRFeature *, const std::string &) const |
| virtual DtEntityType | getEntityTypeToCreateFromFeature (GDALDataset *dataSource, OGRLayer *layer, OGRFeature *, const std::string &shapeFileName) const |
| virtual int | geometryType (OGRGeometry *) const |
| virtual std::vector< DtVector > | getFeatureGeometry (OGRFeature *) const |
| virtual DtVector | convertPointToLocal (OGRPoint *) const |
| virtual std::string | nameFromFeature (OGRFeature *, const std::string &shapeFileName) const |
| virtual FeatureStyle | getStyleForFeature (GDALDataset *dataSource, OGRLayer *, OGRFeature *) const |
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 |
| 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 |
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 |