shp2sqlserver 用法簡析
更新時間: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)文章
SQL Server 2005恢復(fù)數(shù)據(jù)庫詳細圖文教程
這篇文章主要介紹了SQL Server 2005恢復(fù)數(shù)據(jù)庫詳細圖文教程,需要的朋友可以參考下2014-11-11SQL2008中SQL應(yīng)用之-阻塞(Blocking)應(yīng)用分析
當(dāng)一個數(shù)據(jù)庫會話中的事務(wù)正鎖定一個或多個其他會話事務(wù)想要讀取或修改的資源時,會產(chǎn)生阻塞(Blocking)。2011-06-06sql server 2005用戶權(quán)限設(shè)置深入分析
關(guān)于什么是用戶權(quán)限,最簡單的定義可能是,用戶能做什么和不能做什么,本文將詳細介紹sql server 2005用戶權(quán)限設(shè)置,需要了解的朋友可以參考下2012-11-11SQL2005CLR函數(shù)擴展-解析天氣服務(wù)的實現(xiàn)
其實我們可以用CLR獲取網(wǎng)絡(luò)服務(wù),來顯示到數(shù)據(jù)庫自定函數(shù)的結(jié)果集中,比如163的天氣預(yù)報。需要的朋友參考下2013-06-06sqlserver2005利用臨時表和@@RowCount提高分頁查詢存儲過程性能示例分享
最近發(fā)現(xiàn)現(xiàn)有框架的通用查詢存儲過程的性能慢,經(jīng)過使用臨時表的確提高了性能,現(xiàn)把方法分享如下2014-01-01