![]() |
VR-Forces 4.0.4 Class Documentation
|
DtShapeFeatureFile reads in DtShapeRecords and their associated attributes. More...

Public Types | |
| enum | DtFeatureTypes { PointFeature, LinearFeature, ArealFeature } |
Public Member Functions | |
| DtShapeFeatureFile (const DtShapeVectorInitializer *i) | |
| Constructor. | |
| virtual | ~DtShapeFeatureFile () |
| Destructor. | |
| virtual DtGroup * | import (DtShapeReader *reader) |
| Override from DtShapeFile. Returns 0. | |
| virtual bool | importFeatures (DtShapeVectorReader *reader) |
| Reads the feature and associated attributes (if specified in the .map file) for each DtShapeRecord in myList. | |
Protected Member Functions | |
| virtual bool | initSpecification (int fccCode, DtSpecification &spec, DtSpecificationID &specID, DtFeatureTypes featureType) |
| Called by import features with a spec that contains a DtFidCode and DtFeatureType. | |
| virtual bool | createNewSpecification (int fccCode, DtSpecification &spec, DtSpecificationID &specID, DtFeatureTypes featureType) |
| virtual void | readMappedFeatureAttributes (DtSpecification &spec, DtSpecificationID &specID, int recordNumber, const DtShapeVectorInitializer::DtShapeAttributeMapContainer &attributeMap, std::list< DtString > &fieldNamesRead) |
| Attempts to add an attribute for each dBASE field specified in the supplied mapping. | |
| virtual bool | readSingleFeatureAttribute (DtSpecification &spec, int recordNumber, unsigned int attributeType, const DtString &fieldName, const DtString &attributeName) |
| virtual void | readAllFeatureAttributes (DtSpecification &spec, DtSpecificationID &specID, int recordNumber, const std::list< DtString > &fieldsToExclude) |
| Adds an attribute for every field specified in .dbf file. | |
| virtual int | findFccCodeFromFilename () |
| virtual bool | loadShapeAttributeAliasMap (DtShapeVectorInitializer::DtShapeAttributeMapContainer &attributeMap) |
DtShapeFeatureFile reads in DtShapeRecords and their associated attributes.
Constructor.
| virtual DtShapeFeatureFile::~DtShapeFeatureFile | ( | ) | [virtual] |
Destructor.
| virtual DtGroup* DtShapeFeatureFile::import | ( | DtShapeReader * | reader | ) | [virtual] |
Override from DtShapeFile. Returns 0.
Implements DtShapefile.
| virtual bool DtShapeFeatureFile::importFeatures | ( | DtShapeVectorReader * | reader | ) | [virtual] |
Reads the feature and associated attributes (if specified in the .map file) for each DtShapeRecord in myList.
Implements DtShapefile.
| virtual bool DtShapeFeatureFile::initSpecification | ( | int | fccCode, |
| DtSpecification & | spec, | ||
| DtSpecificationID & | specID, | ||
| DtFeatureTypes | featureType | ||
| ) | [protected, virtual] |
Called by import features with a spec that contains a DtFidCode and DtFeatureType.
If the spec is not already contained in myVectorReader's local specification list, it is created according to dfad_sedris_map.txt.
| virtual bool DtShapeFeatureFile::createNewSpecification | ( | int | fccCode, |
| DtSpecification & | spec, | ||
| DtSpecificationID & | specID, | ||
| DtFeatureTypes | featureType | ||
| ) | [protected, virtual] |
| virtual void DtShapeFeatureFile::readMappedFeatureAttributes | ( | DtSpecification & | spec, |
| DtSpecificationID & | specID, | ||
| int | recordNumber, | ||
| const DtShapeVectorInitializer::DtShapeAttributeMapContainer & | attributeMap, | ||
| std::list< DtString > & | fieldNamesRead | ||
| ) | [protected, virtual] |
Attempts to add an attribute for each dBASE field specified in the supplied mapping.
Any fields that are read by this function have their name added
| virtual bool DtShapeFeatureFile::readSingleFeatureAttribute | ( | DtSpecification & | spec, |
| int | recordNumber, | ||
| unsigned int | attributeType, | ||
| const DtString & | fieldName, | ||
| const DtString & | attributeName | ||
| ) | [protected, virtual] |
| virtual void DtShapeFeatureFile::readAllFeatureAttributes | ( | DtSpecification & | spec, |
| DtSpecificationID & | specID, | ||
| int | recordNumber, | ||
| const std::list< DtString > & | fieldsToExclude | ||
| ) | [protected, virtual] |
Adds an attribute for every field specified in .dbf file.
| virtual int DtShapeFeatureFile::findFccCodeFromFilename | ( | ) | [protected, virtual] |
| virtual bool DtShapeFeatureFile::loadShapeAttributeAliasMap | ( | DtShapeVectorInitializer::DtShapeAttributeMapContainer & | attributeMap | ) | [protected, virtual] |