Description | Hierarchy | Fields | Methods | Properties |
type TShapefileGeometryReader = class(TObject)
TShapefileGeometryReader
provides a method of reading the geometry part of ESRI Shapefiles. Each shape in the Shapefile is stored in a TShapeObject which can be accessed through the Items property.
FFileHeader: TShapefileHeader; |
|
FShapeObjects: TList; |
|
FOnProgress: TProgressProcedure; |
function GetCount: integer; |
|
function GetItems(const Index: integer): TShapeObject; |
|
constructor Create; |
|
destructor Destroy; override; |
|
procedure ReadFromFile(const MainFileName, IndexFileName: string); |
property Count: integer read GetCount; |
|
property FileHeader: TShapefileHeader read FFileHeader; |
|
property Items[constIndex:integer]: TShapeObject read GetItems; |
|
property OnProgress: TProgressProcedure read FOnProgress write FOnProgress; |
FFileHeader: TShapefileHeader; |
|
See FileHeader. |
FShapeObjects: TList; |
|
|
FOnProgress: TProgressProcedure; |
|
See OnProgress. |
function GetCount: integer; |
|
See Count. |
function GetItems(const Index: integer): TShapeObject; |
|
See Items. |
constructor Create; |
|
|
destructor Destroy; override; |
|
|
procedure ReadFromFile(const MainFileName, IndexFileName: string); |
|
Parameters
See also
|
property Count: integer read GetCount; |
|
Count is the number of TShapeObjects that have been read. See ReadFromFile. |
property FileHeader: TShapefileHeader read FFileHeader; |
|
FileHeader is the TShapefileHeader at the beginning of the file. The most useful thing about FileHeader is ShapeType which should be one of: stNull = 0; stPoint = 1; stPolyLine = 3; stPolygon = 5; stMultiPoint = 8; stPointZ = 11; stPolyLineZ = 13; stPolygonZ = 15; stMultiPointZ = 18; stPointM = 21; stPolyLineM = 23; stPolygonM = 25; stMultipointM = 28; stMultiPatch = 31; |
property Items[constIndex:integer]: TShapeObject read GetItems; |
|
|
property OnProgress: TProgressProcedure read FOnProgress write FOnProgress; |
|
|