灯火互联
管理员
管理员
  • 注册日期2011-07-27
  • 发帖数41778
  • QQ
  • 火币41290枚
  • 粉丝1086
  • 关注100
  • 终身成就奖
  • 最爱沙发
  • 忠实会员
  • 灌水天才奖
  • 贴图大师奖
  • 原创先锋奖
  • 特殊贡献奖
  • 宣传大使奖
  • 优秀斑竹奖
  • 社区明星
阅读:2720回复:0

[SQL Server]shp2sqlserver用法简析

楼主#
更多 发布于:2012-09-04 18:08



官方说明:

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

[plain]
shp2sqlserver.exe -h  
Usage: shp2sqlserver.exe [OPTIONS]+ "connectionString" "path to shapefile"  
Loads a shapefile into Microsoft SQL Server 2008  
    www.atcpu.com  
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  
  www.atcpu.com  
示例:

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

喜欢0 评分0
游客

返回顶部