shp2sqlserver 用法简析

时间:2024-01-17 10:37:23 

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
0
投稿

猜你喜欢

  • python实现贝叶斯推断的例子

    2022-05-06 02:14:55
  • Python使用lxml模块和Requests模块抓取HTML页面的教程

    2021-08-29 20:55:33
  • 倾斜的鼠标翻转导航制作上的烦恼

    2007-06-20 16:39:00
  • 过期软件破解办法实例详解

    2024-05-02 17:38:03
  • 在SQL Server 2005数据库中更改数据架构

    2009-01-19 13:06:00
  • 通过实例了解Python str()和repr()的区别

    2022-06-01 21:37:36
  • MySQL数据库优化经验详谈

    2009-12-15 10:34:00
  • Python随机生成彩票号码的方法

    2023-10-13 15:25:39
  • hmac模块生成加入了密钥的消息摘要详解

    2023-05-17 09:26:46
  • 如何使用ChatGPT搭建AI网站

    2023-09-27 15:45:17
  • ASP错误大全

    2009-05-26 15:45:00
  • SQL Server 远程更新目标表数据的存储过程

    2024-01-21 07:38:04
  • python3音乐播放器简单实现代码

    2022-06-12 04:43:14
  • python清除字符串前后空格函数的方法

    2023-10-14 07:12:57
  • 利用sys.sysprocesses检查SqlServer的阻塞和死锁

    2011-11-03 17:24:11
  • 如何解决AJAX中跨域访问出现'没有权限'的错误

    2008-09-11 17:20:00
  • Python3+Selenium+Chrome实现自动填写WPS表单

    2023-12-08 05:47:59
  • 通过索引优化含ORDER BY的MySQL语句

    2010-03-13 12:20:00
  • mysql 8.0.12安装配置方法图文教程(Windows版)

    2024-01-13 14:57:40
  • JS+HTML5实现上传图片预览效果完整实例【测试可用】

    2024-04-17 10:41:20
  • asp之家 网络编程 m.aspxhome.com