• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase
您的位置:首页 > 数据库 >Mysql > shp2sqlserver 用法简析

shp2sqlserver 用法简析

作者:匿名 字体:[增加 减小] 来源:互联网 时间:2018-12-05

匿名通过本文主要向大家介绍了shp2sqlserver等相关知识,希望本文的分享对您有所帮助

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.



用法:
代码如下:
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"

作者 彭金华
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

相关文章

  • 2017-08-07使用 EXPLAIN 关键字 检查SQL语句效率
  • 2018-12-05MySQL数据库如何备份与恢复?
  • 2018-12-05一些文件未注册导致mssql表文件无法找开的解决方法
  • 2017-05-11mysql sql语句总结
  • 2018-12-05检查并修复mysql数据库表的具体方法
  • 2018-12-05Oracle数据库的备份与恢复
  • 2018-12-05使用innobackupex基于从库搭建mysql主从架构
  • 2017-05-11MYSQL5 masterslave数据同步配置方法第1/3页
  • 2017-05-11Mysql中的触发器简单介绍及使用案例
  • 2018-12-05关于数据库中架构的相关介绍

文章分类

  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase

最近更新的内容

    • php中反射如何获取一个类中的方法详解
    • SQL SERVER 2008 无法附加数据库的解决方法
    • sql数据库不能直接用instr函数
    • Mysql 数字类型转换函数
    • mysql删除表中某一字段重复的记录
    • asp.net 使用SqlBulkCopy极速插入数据到 SQL Server
    • mysql 服务意外停止1067错误解决办法小结
    • Moon一个无视Linq,无视实体类的设计思路.(不要错过,看了之后, 让我们从此以后不再羡慕linq to enti
    • mysql记录根据日期字段倒序输出_MySQL
    • 让数据库变快的建议

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有