加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

shp2sqlserver用法

发布时间:2020-12-12 14:34:48 所属栏目:MsSql教程 来源:网络整理
导读:官方说明: http://code.google.com/p/cumberland/wiki/shp2sqlserver shp2sqlserver.exe -hUsage: shp2sqlserver.exe [OPTIONS]+ "connectionString" "path to shapefile"Loads a shapefile into Microsoft SQL Server 2008example: shp2sqlserver.exe "Data

官方说明:

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:dataxyz.shp"

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读