官方说明:
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"
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。