shp2sqlserver 用法简析

2016-02-19 09:22 6 1 收藏

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

【 tulaoshi.com - 编程语言 】

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"

作者 彭金华

来源:https://www.tulaoshi.com/n/20160219/1590552.html

延伸阅读
1,空指针错误 Java.lang.NullPointerException    使用基本的JAVA数据类型,变量的值要么已经是默认值,假如没有对其正常赋值,程序便不能通过编译,因此使用基本的JAVA数据类型(double,float,boolean,char,int,long)一般不会引起空指针异常。由此可见,空指针异常主要跟与对象的操作相关。  下面先...
标签: 网络游戏
《QQ水浒》装备精炼方法简析 QQ水浒装备怎么精炼? 装备精炼功能,寨主40级开放。玩家们可以从装备强化页面新增【精炼】按钮,点击进入页面 可用玄铁石或者银票对装备进行精炼。 每次精炼都有机会获得暴击,用银票精炼暴击倍数更大。 装备精炼阶级与寨主等级挂钩,寨主等级越高,装备可精炼阶数越高。 寨主40级可提升至1阶,后续...
查询资料后知道有 sp_addlinkedserver 这个系统存储过程,可通过ODBC连接MySql,于是下载ODBC驱动,这个可通过MySql官网得到,地址:http://dev.mysql.com/downloads/。 安装驱动后配置数据源,这里注意,要用系统数据源,我在用户数据源中配置后数据源能连上MySql,但无法能过SqlServer连接,报错:Data source name not found and no defaul...
标签: word
Word2010中纵横混排技巧简析   纵横混排,是大家在Word中比较少用的排版技巧,不过却又是十分的实用。虽然Word中本身有自带纵横混排的功能,但是用户较多是用文本框来实现的。 纵横混排 步骤/方法: 打开你的的word,然后点击菜单栏上面的插入选项。 在插入选项中,我们点击 文本。也就是下面图示位置。 ...
正在看的ORACLE教程是:Oracle的数据字典技术简析。 数据字典是Oracle存放有关数据库信息的地方,其用途是用来描述数据的。比如一个表的创建者信息,创建时间信息,所属表空间信息,用户访问权限信息等。当用户在对数据库中的数据进行操作时遇到困难就可以访问数据字典来查看详细的信息。 Oracle中的数据字典有静态和动态之分。静态数据字...

经验教程

334

收藏

90
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部