国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 江城| 南木林县| 商城县| 兴海县| 金溪县| 平顶山市| 左云县| 浏阳市| 汉中市| 曲沃县| 蒙城县| 长丰县| 高密市| 怀集县| 延津县| 长宁区| 和田市| 六盘水市| 华安县| 同德县| 佳木斯市| 新竹市| 浦江县| 和静县| 财经| 高要市| 鄂州市| 奉贤区| 承德市| 克山县| 偏关县| 邢台市| 灵寿县| 西畴县| 鱼台县| 昌平区| 台安县| 龙海市| 台安县| 乐都县| 南木林县|