Class TShapeObject

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TShapeObject = class(TObject)

Description

TShapeObject represents a shape in an ESRI Shapefile. See TShapefileGeometryReader.Items.

Hierarchy

Overview

Fields

Private FBoundingBox: TBoundingBox;
Private FMMax: double;
Private FMMin: double;
Private FZMax: double;
Private FZMin: double;
Public FMArray: TDoubleDynArray;
Public FNumParts: integer;
Public FNumPoints: integer;
Public FParts: array of integer;
Public FPartTypes: array of integer;
Public FPoints: array of TShapePoint;
Public FShapeType: longint;
Public FZArray: TDoubleDynArray;

Methods

Private procedure GetMinMax(var MaxValue, MinValue: Double; const AnArray: TDoubleDynArray);
Private procedure UpdateBoundingBox;
Private procedure UpdateZMinMax;
Private procedure UpdateMMinMax;
Public constructor Create;

Description

Fields

Private FBoundingBox: TBoundingBox;

FBoundingBox represents the bounding box of the shape.

Private FMMax: double;

The maximum measure for the shape. FMMax is optional

Private FMMin: double;

The minimum measure for the shape. FMMin is optional

Private FZMax: double;

The maximum Z value for the arc.

Private FZMin: double;

The minimum Z value for the arc.

Public FMArray: TDoubleDynArray;

FMArray is an array of length FNumPoints. The measures for each part in the MultiPatch are stored end to end. The measures for Part 2 follow the measures for Part 1, and so on. The parts array holds the array index of the starting measure for each part. There is no delimiter in the measure array between parts. FMArray is optional

Public FNumParts: integer;

FNumParts is the number of parts in the Shape.

Public FNumPoints: integer;

FNumPoints is the number of points in the Shape.

Public FParts: array of integer;

FParts is an array of length FNumParts. It stores the index of its first point in the points array for each Polyline. Array indexes are with respect to 0.

Public FPartTypes: array of integer;

FPartTypes is an array of length FNumParts. It stores the type of each part. Each part can be one of the following

ptTriangleStrip = 0;

ptTriangleFan = 1;

ptOuterRing = 2;

ptInnerRing = 3;

ptFirstRing = 4;

ptRing = 5;

Public FPoints: array of TShapePoint;

FPoints is an array of length FNumPoints. The points for each part in the MultiPatch are stored end to end. The points for Part 2 follow the points for Part 1, and so on. The FParts array holds the array index of the starting point for each part. There is no delimiter in the points array between parts.

Public FShapeType: longint;

FShapeType indicates the type of shape stored in the Shapefile. It can be any of the following 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;

Public FZArray: TDoubleDynArray;

FZArray is an array of length FNumPoints. The Z values for each point in the shape are stored end to end. The Z values for Part 2 follow the Z values for Part 1, and so on. The parts array holds the array index of the starting Z value for each part. There is no delimiter in the Z value array between parts.

Methods

Private procedure GetMinMax(var MaxValue, MinValue: Double; const AnArray: TDoubleDynArray);
 
Private procedure UpdateBoundingBox;
 
Private procedure UpdateZMinMax;
 
Private procedure UpdateMMinMax;
 
Public constructor Create;

Create creates an instance of TShapeObject.


Generated by PasDoc 0.12.1 on 2013-05-13 15:42:03