shp2sqlserver用法

来源:互联网 发布:最新的社交软件 编辑:程序博客网 时间:2024/06/01 20:23

官方说明:

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 Source=.\SQLExpress2008;Initial Catalog=spatialtest;Integrated Security=true" myshape.shpOptions:  -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"

原创粉丝点击