Base OGR Reader class that will use GDAL and OGR to parse file.
More...
|
| virtual bool | importLayer (GDALDataset *dataSource, OGRLayer *, const std::string &, const std::string &shapeFileName, std::vector< DtDataFileCreationData > &importedData) const |
| | Imports the given OGR layer onto the specified overlay layer. More...
|
| |
| virtual DtDataFileCreationData | importFeature (GDALDataset *dataSource, OGRLayer *, OGRFeature *, const std::string &, const std::string &shapeFileName) const |
| | Imports the given feture onto the specified overlay layer. More...
|
| |
| virtual int | getForceFromFeature (GDALDataset *dataSource, OGRLayer *, OGRFeature *, const std::string &) const |
| | Calls down to creator to get the force from the feature. More...
|
| |
| virtual DtEntityType | getEntityTypeToCreateFromFeature (GDALDataset *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. More...
|
| |
| virtual int | geometryType (OGRGeometry *) const |
| | Given the geometry, return the type. More...
|
| |
| virtual std::vector< DtVector > | getFeatureGeometry (OGRFeature *) const |
| | Gets feature geometry as local database coordinates. More...
|
| |
| 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. More...
|
| |
| virtual FeatureStyle | getStyleForFeature (GDALDataset *dataSource, OGRLayer *, OGRFeature *) const |
| | Gets the color (ARGB) of the feature for the pen (outline or line) More...
|
| |
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 makVrf::DtOGRReader::~DtOGRReader |
( |
| ) |
|
|
virtual |
| virtual std::vector<DtDataFileCreationData> makVrf::DtOGRReader::loadDataFile |
( |
const std::string & |
file, |
|
|
const std::string & |
defaultOverlay = "" |
|
) |
| const |
|
virtual |
| virtual bool makVrf::DtOGRReader::importLayer |
( |
GDALDataset * |
dataSource, |
|
|
OGRLayer * |
, |
|
|
const std::string & |
, |
|
|
const std::string & |
shapeFileName, |
|
|
std::vector< DtDataFileCreationData > & |
importedData |
|
) |
| const |
|
protectedvirtual |
Imports the given OGR layer onto the specified overlay layer.
| virtual DtDataFileCreationData makVrf::DtOGRReader::importFeature |
( |
GDALDataset * |
dataSource, |
|
|
OGRLayer * |
, |
|
|
OGRFeature * |
, |
|
|
const std::string & |
, |
|
|
const std::string & |
shapeFileName |
|
) |
| const |
|
protectedvirtual |
Imports the given feture onto the specified overlay layer.
| virtual int makVrf::DtOGRReader::getForceFromFeature |
( |
GDALDataset * |
dataSource, |
|
|
OGRLayer * |
, |
|
|
OGRFeature * |
, |
|
|
const std::string & |
|
|
) |
| const |
|
protectedvirtual |
Calls down to creator to get the force from the feature.
| virtual DtEntityType makVrf::DtOGRReader::getEntityTypeToCreateFromFeature |
( |
GDALDataset * |
dataSource, |
|
|
OGRLayer * |
layer, |
|
|
OGRFeature * |
, |
|
|
const std::string & |
shapeFileName |
|
) |
| const |
|
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
| virtual int makVrf::DtOGRReader::geometryType |
( |
OGRGeometry * |
| ) |
const |
|
protectedvirtual |
Given the geometry, return the type.
| virtual std::vector<DtVector> makVrf::DtOGRReader::getFeatureGeometry |
( |
OGRFeature * |
| ) |
const |
|
protectedvirtual |
Gets feature geometry as local database coordinates.
| virtual DtVector makVrf::DtOGRReader::convertPointToLocal |
( |
OGRPoint * |
| ) |
const |
|
protectedvirtual |
| virtual std::string makVrf::DtOGRReader::nameFromFeature |
( |
OGRFeature * |
, |
|
|
const std::string & |
shapeFileName |
|
) |
| const |
|
protectedvirtual |
If this has a NAME field in the first field, return that.
| virtual FeatureStyle makVrf::DtOGRReader::getStyleForFeature |
( |
GDALDataset * |
dataSource, |
|
|
OGRLayer * |
, |
|
|
OGRFeature * |
|
|
) |
| const |
|
protectedvirtual |
Gets the color (ARGB) of the feature for the pen (outline or line)
| static void makVrf::DtOGRReader::GDALErrorHandler |
( |
int |
eclass, |
|
|
int |
code, |
|
|
const char * |
msg |
|
) |
| |
|
staticprotected |
| std::string makVrf::DtOGRReader::myGDALDriver |
|
protected |
The documentation for this class was generated from the following file: