|
CartoType API
|
#include <cartotype_shp_layer.h>
Public Types | |
| enum | { ELabelFieldIndex, ERoadTypeFieldIndex, EFields } |
| enum | { ENullShape = 0, EPoint = 1, EPolyLine = 3, EPolygon = 5, EMultiPoint = 8 } |
Public Member Functions | |
| TResult | Construct () |
| const TRect & | Extent () const |
| TResult | First () |
| TResult | ReadObjectInfo (uint32 &aRecordNumber, int32 &aObjectType, TRect &aExtent, int32 &aLength) |
| CMapObject * | ReadMapObject (TResult &aError, uint32 aRecordNumber, int32 aObjectType) |
| TResult | SkipObject (int32 aLength) |
| TResult | AddFieldSpec (CDbfFieldSpec *aFieldSpec) |
| TResult | AddRoadTypeFieldSpec (CDbfFieldSpec *aFieldSpec) |
| int32 | RoadTypeFieldSpecs () const |
| TResult | AddLabelFieldSpec (CDbfFieldSpec *aFieldSpec) |
| TResult | AddStringFieldSpec (CDbfFieldSpec *aFieldSpec) |
Static Public Member Functions | |
| static CShpLayer * | New (TResult &aError, const MString &aPath, const MString &aFilename, TPointFormat aSourcePointFormat, TPointFormat aDestPointFormat, bool aMappedObjectsOnly, int32 aCodePage) |
Class that represents the data of a particular layer.
| anonymous enum |
Indexes into the field spec array.
| anonymous enum |
Object types used in the SHP file.
| TResult CShpLayer::Construct | ( | ) |
Complete the construction of a CShpLayer object by reading the layer file header and finding the desired fields in the DBF file.
| TResult CShpLayer::First | ( | ) |
Move to the start of the layer data.
| CShpLayer * CShpLayer::New | ( | TResult & | aError, |
| const MString & | aPath, | ||
| const MString & | aFilename, | ||
| TPointFormat | aSourcePointFormat, | ||
| TPointFormat | aDestPointFormat, | ||
| bool | aMappedObjectsOnly, | ||
| int32 | aCodePage | ||
| ) | [static] |
Create a new layer, given the path and file name of the layer file, and the point format.
| CMapObject * CShpLayer::ReadMapObject | ( | TResult & | aError, |
| uint32 | aRecordNumber, | ||
| int32 | aObjectType | ||
| ) |
Construct and read map object.
| TResult CShpLayer::ReadObjectInfo | ( | uint32 & | aRecordNumber, |
| int32 & | aObjectType, | ||
| TRect & | aExtent, | ||
| int32 & | aLength | ||
| ) |
Read object information from shp file. This information will be used to determine if the object must be constructed, and to construct it if necessary.
| TResult CShpLayer::SkipObject | ( | int32 | aLength | ) |
Skip remainder of current object data.
1.7.5.1