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

