|
Public Member Functions |
| bool | SaveToSHP (const char *filename, bool progress_callback(int)=0) const |
|
bool | LoadFromOGR (OGRLayer *pLayer, bool progress_callback(int)=0) |
|
virtual void | LoadGeomFromSHP (SHPHandle hSHP, bool progress_callback(int)=0)=0 |
| bool | LoadFromSHP (const char *fname, bool progress_callback(int)=0) |
| bool | LoadDataFromDBF (const char *filename, bool progress_callback(int)=0) |
| bool | LoadFieldInfoFromDBF (const char *filename) |
| bool | LoadDataFromCSV (const char *filename, bool progress_callback(int)=0) |
|
void | SetFilename (const vtString &str) |
|
vtString | GetFilename () const |
|
virtual unsigned int | GetNumEntities () const =0 |
| void | SetNumEntities (int iNum) |
| OGRwkbGeometryType | GetGeomType () const |
| void | SetGeomType (OGRwkbGeometryType eGeomType) |
| bool | AppendDataFrom (vtFeatureSet *pFromSet) |
| virtual void | Reserve (int iNum)=0 |
|
virtual bool | ComputeExtent (DRECT &rect) const =0 |
|
virtual void | Offset (const DPoint2 &p, bool bSelectedOnly=false)=0 |
|
virtual bool | TransformCoords (OCT *pTransform, bool progress_callback(int)=0)=0 |
|
virtual bool | AppendGeometryFrom (vtFeatureSet *pFromSet)=0 |
|
virtual int | NumTotalVertices () const |
|
void | SetToDelete (int iFeature) |
|
void | ApplyDeletion () |
|
void | Select (unsigned int iEnt, bool set=true) |
|
bool | IsSelected (unsigned int iEnt) |
|
unsigned int | NumSelected () const |
|
void | DeselectAll () |
|
void | InvertSelection () |
|
int | SelectByCondition (int iField, int iCondition, const char *szValue) |
|
void | DeleteSelected () |
|
bool | IsDeleted (unsigned int iEnt) |
|
int | DoBoxSelect (const DRECT &rect, SelectionType st) |
|
void | Pick (unsigned int iEnt, bool set=true) |
|
bool | IsPicked (unsigned int iEnt) |
|
void | DePickAll () |
|
unsigned int | GetNumFields () const |
|
Field * | GetField (int i) |
|
const Field * | GetField (int i) const |
|
Field * | GetField (const char *name) |
| int | GetFieldIndex (const char *name) const |
| int | AddField (const char *name, FieldType ftype, int string_length=40) |
|
int | AddRecord () |
|
void | DeleteFields () |
|
void | SetValue (unsigned int record, unsigned int field, const char *string) |
|
void | SetValue (unsigned int record, unsigned int field, int value) |
|
void | SetValue (unsigned int record, unsigned int field, double value) |
|
void | SetValue (unsigned int record, unsigned int field, bool value) |
|
void | GetValueAsString (unsigned int record, unsigned int field, vtString &str) const |
|
void | SetValueFromString (unsigned int iRecord, unsigned int iField, const vtString &str) |
|
void | SetValueFromString (unsigned int iRecord, unsigned int iField, const char *str) |
|
int | GetIntegerValue (unsigned int iRecord, unsigned int iField) const |
|
short | GetShortValue (unsigned int iRecord, unsigned int iField) const |
|
float | GetFloatValue (unsigned int iRecord, unsigned int iField) const |
|
double | GetDoubleValue (unsigned int iRecord, unsigned int iField) const |
|
bool | GetBoolValue (unsigned int iRecord, unsigned int iField) const |
|
void | SetProjection (const vtProjection &proj) |
|
vtProjection & | GetAtProjection () |
|
vtFeature * | GetFeature (unsigned int iIndex) const |
Protected Member Functions |
|
virtual bool | IsInsideRect (int iElem, const DRECT &rect)=0 |
|
virtual void | CopyGeometry (unsigned int from, unsigned int to)=0 |
|
virtual void | SaveGeomToSHP (SHPHandle hSHP, bool progress_callback(int)=0) const =0 |
|
virtual void | SetNumGeometries (int iNum)=0 |
|
void | CopyEntity (unsigned int from, unsigned int to) |
|
void | ParseDBFFields (DBFHandle db) |
|
void | ParseDBFRecords (DBFHandle db, bool progress_callback(int)=0) |
Protected Attributes |
|
OGRwkbGeometryType | m_eGeomType |
|
std::vector< vtFeature * > | m_Features |
|
vtArray< Field * > | m_fields |
|
vtProjection | m_proj |
|
vtString | m_strFilename |
Examples: political and property boundaries, geocoded addresses, flight paths, place names.