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

首頁 > 數據庫 > SQL Server > 正文

shp2sqlserver 用法簡析

2024-08-31 00:47:10
字體:
來源:轉載
供稿:網友
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.



用法:
復制代碼 代碼如下:www.CuoXIn.com

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"

作者 彭金華

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 云龙县| 仁化县| 秦安县| 铜川市| 赤壁市| 石景山区| 盐源县| 喀什市| 山丹县| 平原县| 舒兰市| 瑞丽市| 汪清县| 徐水县| 肇州县| 桦川县| 准格尔旗| 新邵县| 依安县| 屏山县| 丰台区| 阿克苏市| 礼泉县| 镇原县| 华池县| 茌平县| 年辖:市辖区| 屏东县| 竹山县| 黄冈市| 钦州市| 习水县| 睢宁县| 哈尔滨市| 武夷山市| 兖州市| 龙井市| 高碑店市| 安康市| 南岸区| 开原市|