spatial.importShapefileToLayer

Procedure

Imports the the provided shape-file from URI to the given layer, returns the count of data added

Signature

spatial.importShapefileToLayer(layerName :: STRING, uri :: STRING) :: (count :: INTEGER)

Input parameters

Name Type Default Description

layerName

STRING

null

The name of the layer

uri

STRING

null

The path of the file to import the data from

Output parameters

Name Type Description

count

INTEGER

Examples

Import a shape-file

CALL spatial.addWKTLayer('geom','wkt')
CALL spatial.importShapefileToLayer('geom', 'shp/highway.shp')
Table 1. Result
count
143
CALL spatial.layers()
Table 2. Result
name signature

geom

EditableLayer(name='geom', encoder=WKTGeometryEncoder(geom='wkt', bbox='bbox'))