DK11 for Delphi | GisLayerVector.TGIS_Shape.ExportToWKB | Constructors | Fields | Methods | Properties
Export the Shape geometry into a Well Known Binary (see www.opengis.org). See TGIS_ShapePolygon.ExportToWKB for example.
// Delphi public procedure ExportToWKB( var _wkb : OleVariant ); virtual; abstract;
// C++ Builder public: virtual void ExportToWKB( OleVariant* &_wkb ) = 0;
Name | Type | Description |
---|---|---|
_wkb | OleVariant | exported WKB array |
var // some declarations s : OleVariant; ll : TGIS_LayerVector ; begin // use a sample data GIS.Open( GisSamplesDataDir + 'topology.shp' ) ; // to get a layer with shapes ll := TGIS_LayerVector (GIS.Items[0]) ; if not assigned( ll ) then exit ; // there are two shapes, let's use second one // first export shape to an array TGIS_ShapePolygon( ll.GetShape( 2 )).ExportToWKB(s); // second, let's see WKT definition ShowMessage(TGIS_ShapePolygon( ll.GetShape( 2 )).ExportToWKT()); GIS.FullExtent ;