shp2sqlserver 用法简析

in_小怪兽

in_小怪兽

2016-02-19 09:22

想要天天向上,就要懂得享受学习。图老师为大家推荐shp2sqlserver 用法简析,精彩的内容需要你们用心的阅读。还在等什么快点来看看吧!
shp2sqlserver用法简析

官方说明:
shp2sqlserver is a command line tool for loading shapefiles into Microsoft SQL Server 2008. It is modeled after PostGIS's shp2pgsql, except that it loads directly into the database instead of writing sql to stdout.

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"

作者 彭金华
展开更多 50%)
分享

猜你喜欢

shp2sqlserver 用法简析

编程语言 网络编程
shp2sqlserver 用法简析

《罗马2 全面战争》AI行动规则简析

电脑网络
《罗马2 全面战争》AI行动规则简析

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

《巫师2:刺客之王》任务系统简析 写给新手

电脑网络
《巫师2:刺客之王》任务系统简析 写给新手

风光摄影拍摄思路简析

摄影 人像摄影 静物摄影
风光摄影拍摄思路简析

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

简析Chrome和Webkit的渊源

浏览器
简析Chrome和Webkit的渊源

java匿名内部类实例简析

编程语言 网络编程
java匿名内部类实例简析

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

我有一个梦想╰一张试卷 - QQ非主流分组

我有一个梦想╰一张试卷 - QQ非主流分组

使用SQLSERVER 2005/2008 递归CTE查询树型结构的方法

使用SQLSERVER 2005/2008 递归CTE查询树型结构的方法
下拉加载更多内容 ↓