shp2sqlserver 用法簡(jiǎn)析
官方說(shuō)明:
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:\data\xyz.shp"
作者 彭金華
相關(guān)文章
SQLServer 查詢當(dāng)前服務(wù)器有多少連接請(qǐng)求的語(yǔ)句
有時(shí)DBA需要檢查當(dāng)前服務(wù)器有多少連接請(qǐng)求,以及連接請(qǐng)求的登錄名,客戶端版本,主機(jī)名,程序名等等之類的信息,我們就可以對(duì)服務(wù)器的連接狀況有所了解,防止不明用戶使用。2011-08-08
SQL Server 2005恢復(fù)數(shù)據(jù)庫(kù)詳細(xì)圖文教程
這篇文章主要介紹了SQL Server 2005恢復(fù)數(shù)據(jù)庫(kù)詳細(xì)圖文教程,需要的朋友可以參考下2014-11-11
Microsoft Sql server2005的安裝步驟圖文詳解及常見(jiàn)問(wèn)題解決方案
這篇文章主要介紹了Microsoft Sql server2005的安裝步驟圖文詳解及常見(jiàn)問(wèn)題解決方案的相關(guān)資料,需要的朋友可以參考下2016-05-05
SQL Server 2005 中使用 Try Catch 處理異常
本文主要對(duì)比了Sql Server 2000和Sql Server 2005對(duì)異常處理的方法,Sql Server 2005 之后的TRY CATCH捕捉異常,更類似C#、JAVA等語(yǔ)言,更容易被程序員理解。2016-05-05
SQL Server 使用 SET FMTONLY ON 獲得表的元數(shù)據(jù)
本文介紹SQL Server2005以及之后的版本,通過(guò) SET FMTONLY ON 獲得表的元數(shù)據(jù)的方法,小伙伴們可以參考一下。2016-05-05
sql server2005實(shí)現(xiàn)數(shù)據(jù)庫(kù)讀寫(xiě)分離介紹
對(duì)于負(fù)載均衡,筆者經(jīng)常接觸的當(dāng)屬Oracle的負(fù)載均衡機(jī)制。下面我們重點(diǎn)介紹Sql Server 2005是如何實(shí)現(xiàn)負(fù)載均衡的,感興趣的朋友可以參考下哈2013-06-06
SQL Server 2005的cmd_shell組件的開(kāi)啟方法
這篇文章介紹了SQL Server 2005的cmd_shell組件的開(kāi)啟方法,有需要的朋友可以參考一下2013-09-09
SQLServer 2008中通過(guò)DBCC OPENTRAN和會(huì)話查詢事務(wù)
無(wú)論是有意無(wú)意,如果事務(wù)在數(shù)據(jù)庫(kù)中保持打開(kāi),則它會(huì)阻塞其他進(jìn)程對(duì)修改后的數(shù)據(jù)進(jìn)行操作。同樣,對(duì)事務(wù)日志進(jìn)行備份也只會(huì)截?cái)嗖换顒?dòng)事務(wù)的那部分事務(wù)日志,所以打開(kāi)的事務(wù)會(huì)導(dǎo)致日志變多(甚至達(dá)到物理限制),直到事務(wù)被提交或回滾。2011-05-05

