国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 數(shù)據(jù)庫(kù) > SQL Server > 正文

shp2sqlserver 用法簡(jiǎn)析

2024-08-31 01:01:11
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
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.



用法:

復(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"

作者 彭金華
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 二手房| 小金县| 吴江市| 固阳县| 佛学| 得荣县| 榆社县| 乌兰县| 乐至县| 鄄城县| 巴林左旗| 历史| 封开县| 望江县| 科尔| 合江县| 新绛县| 读书| 台北市| 盐山县| 新竹市| 江华| 成都市| 宜都市| 漳州市| 建德市| 富裕县| 余姚市| 双江| 城口县| 保定市| 改则县| 绩溪县| 合江县| 白玉县| 泸西县| 乐昌市| 锡林浩特市| 盈江县| 漯河市| 两当县|