shp2sqlserver用法

shp2sqlserver是一款用于将Shapefile文件导入到Microsoft SQL Server 2008的工具。该工具支持指定空间参考ID (SRID)、几何列名、表名等选项,并能创建空间索引及地理坐标数据。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

官方说明:

http://code.google.com/p/cumberland/wiki/shp2sqlserver

shp2sqlserver.exe -h
Usage: shp2sqlserver.exe [OPTIONS]+ "connectionString" "path to shapefile"
Loads a shapefile into Microsoft SQL Server 2008

example: shp2sqlserver.exe "Data Source=.\SQLExpress2008;Initial Catalog=spatialtest;Integrated Security=true" myshape.shp

Options:
  -s, --srid=VALUE           The Spatial Reference ID (SRID).  If not specified it defaults to -1.
  -g, --geometry_column=VALUE       The name of the geometry column
  -t, --table_name=VALUE     The table name to use
  -k, --key_column=VALUE     The name of the identity column to create for a primary key
  -i, --index                Create a spatial index
  -l, --latlong              Add spatial data as geography type
  -a, --append               Append data.  If not specified, table will be created
  -h, --help                 show this message and exit


示例:

shp2sqlserver -g="SHAPE" -s="4326" -i "Data Source=.;Initial Catalog=largesite;Integrated Security=false;user id=sa;password=123456;" "D:\data\xyz.shp"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值