TdxMapItemFileLayer.LoadShapeFileFromStream(TStream,TStream) Method
Loads Esri shapefile vector data (shapes and their attributes) from specified file streams.
Declaration
procedure LoadShapeFileFromStream(ASHPStream: TStream; ADBFStream: TStream); overload;
Parameters
Name | Type | Description |
---|---|---|
ASHPStream | TStream | The file stream with SHP file content. |
ADBFStream | TStream | The file stream with DBF file content. |
Remarks
This method does the following:
Sets the FileType property to
miftShape
.Loads shapes and their attributes from SHP and DBF file streams passed as
AShpStream
andADbfStream
parameters. If an exception occurs during this operation, the layer’s MapItems collection is cleared.Populates the layer’s MapItems collection and map item Attributes collections with map items and attributes created from loaded data.
Sets the Active property to True if data loading succeeds.
See Also