spatial.importShapefileToLayer

过程

从 URI 导入提供的 shapefile 到指定图层,返回新增数据的数量

签名

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

输入参数

名称 类型 默认 描述

图层名称

STRING

null

层的名称

uri

STRING

null

要导入数据的文件路径

输出参数

名称 类型 描述

count

INTEGER(整数)

示例

导入 shapefile

CALL spatial.addWKTLayer('geom','wkt')
CALL spatial.importShapefileToLayer('geom', 'example-data/shp/highway.shp')
表 1. 结果
count
143
CALL spatial.layers()
表 2. 结果
名称 (name) 签名

geom

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

© . This site is unofficial and not affiliated with Neo4j, Inc.