Skip to main content

TdxMapItemFileLayer.LoadShapeFileFromStream(TStream,TStream) Method

Loads Esri shapefile vector data (shapes and their attributes) from the 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 the SHP and DBF file streams passed as the AShpStream and ADbfStream 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 that are created based on the loaded data.

  • Sets the Active property to True if data loading succeeds.

See Also