采用开源软件搭建WebGIS系统(6)数据格式


[本文版权由xiaotie@vip.sina.com所有,转载需得到作者同意。]

在国家基础地理信息中心下载到的数据格式是Shape file数据。Shape file数据由3个文件构成,*.shp,*.dbf和*.shx,分别存储空间数据、属性数据和两者间的关系。*.shp得专门的软件浏览。*.dbf采用一般文本浏览器就可以浏览,Excel可以直接编辑dbf文件。

开源GIS软件支持的数据集一般还有WKT和GML。WKT是文本形式的GIS数据,PostGIS中空间数据的存储便是以WKT形式存储的。GML是XML格式的GIS数据。


PostGIS提供了shp2pgsql.exe工具,能够将shp文件转化为sql语句,执行这些sql命令就可以将相关内容导入PostgreSQL数据库中。导入后的表截图如下:
Image00007.jpg

前面几列都是属性数据,最后一列是空间数据。第一行最后一列的内容如下:

SRID=-1;MULTILINESTRING((121.48827 53.332596,121.48844 53.332649,121.49954 53.336006,121.51841 53.339191,121.53907 53.341721,121.57375 53.348175,121.58404 53.349644,121.59367 53.353237,121.60381 53.357811,121.61327 53.363365,121.62292 53.366798,121.635 53.371044,121.64644 53.373333,121.66065 53.377907,121.66735 53.382805,121.67487 53.385582,121.68401 53.389175,121.69724 53.389996,121.70394 53.390156,121.71096 53.388359,121.71848 53.386398,121.72583 53.385582,121.73253 53.385746,121.73727 53.386726,121.74249 53.387871,121.7536 53.3913,121.7652 53.394894,121.77647 53.397671,121.7848 53.399796,121.79182 53.402573,121.80359 53.407475,121.80996 53.410088,121.81829 53.413353,121.82303 53.414333,121.82874 53.414333,121.83773 53.415314,121.84541 53.416294,121.85259 53.420052,121.85978 53.422993,121.86632 53.424953,121.87318 53.425442,121.8784 53.424789,121.88968 53.422829,121.89866 53.421032,121.90503 53.420216,121.90977 53.420868,121.91386 53.421848,121.91924 53.422993,121.92382 53.423809,121.9297 53.424625,121.9426 53.426258,121.95355 53.428055,121.96482 53.428711,121.97299 53.429363,121.98164 53.429199,121.99308 53.428711,122.00533 53.428055,122.01791 53.426422,122.02951 53.424953,122.03963 53.422993,122.05009 53.420868,122.06202 53.419071,122.07313 53.418583,122.08946 53.42038,122.10302 53.423481,122.11527 53.429527,122.12458 53.438839,122.13504 53.448475,122.14239 53.456806,122.14729 53.462036,122.15203 53.46579,122.15791 53.468407,122.16183 53.469875,122.16656 53.470367,122.17588 53.470692,122.18453 53.469387,122.21181 53.462688,122.22129 53.460075,122.22619 53.459583,122.22995 53.460075,122.23828 53.460728,122.24596 53.462688,122.26475 53.470528,122.29145 53.479515,122.30191 53.487682,122.30877 53.493561,122.31824 53.49781,122.32968 53.500095,122.33948 53.500751,122.34765 53.499115,122.35124 53.495522,122.35451 53.491276,122.35712 53.486374,122.36105 53.483109,122.3666 53.476246,122.37019 53.47298,122.38849 53.461544,122.40548 53.451416,122.41659 53.44619,122.43129 53.442921,122.44599 53.442921,122.45644 53.44521,122.47082 53.453049,122.48258 53.454685,122.49369 53.454685,122.50676 53.452396,122.52048 53.451088,122.53649 53.451088,122.54596 53.453377,122.55805 53.45599,122.57308 53.457623,122.58647 53.461216,122.6002 53.462524,122.62372 53.461544,122.6394 53.460892,122.65018 53.460239,122.65836 53.459259,122.67273 53.457951,122.69495 53.458279,122.7188 53.458279,122.7384 53.460239,122.75343 53.460892,122.76878 53.459583,122.78152 53.458279,122.79852 53.45599,122.81158 53.455009,122.83412 53.455662,122.85144 53.455338,122.8668 53.457951,122.88607 53.460892,122.89522 53.463177,122.90502 53.464485,122.91221 53.467751,122.92168 53.473961,122.93704 53.481476,122.95338 53.48605,122.972 53.488007,122.98148 53.489967,122.99911 53.493561,123.01643 53.49683,123.02917 53.498463,123.03832 53.499115,123.04322 53.499443,123.0491 53.501732,123.05727 53.504669,123.06642 53.505325,123.07524 53.504997,123.10072 53.503036,123.11869 53.499443,123.13339 53.49585,123.14058 53.496502,123.16476 53.504017,123.17848 53.512184,123.19024 53.522312,123.20789 53.537342,123.22422 53.547142,123.24121 53.553352,123.2582 53.556618,123.27225 53.557926,123.28629 53.556618,123.30099 53.554657,123.31145 53.553677,123.32125 53.551392,123.32877 53.549431,123.33759 53.546818,123.34805 53.542568,123.36111 53.539955,123.38007 53.535381,123.39869 53.534077,123.41404 53.534401,123.42841 53.534077,123.43887 53.533096,123.44704 53.529827,123.45063 53.524601,123.45422 53.520679,123.45978 53.512184,123.46566 53.50761,123.47089 53.501732,123.47742 53.49781,123.48232 53.496178,123.4869 53.495522,123.49442 53.497158,123.49572 53.501076,123.49638 53.503689,123.49605 53.507286,123.49409 53.511204,123.49049 53.515778,123.48265 53.522968,123.47906 53.531136,123.47971 53.537994,123.48853 53.546162,123.49801 53.550735,123.50945 53.554333,123.51794 53.554657,123.52676 53.552044,123.53493 53.54845,123.5444 53.543549,123.54897 53.538651,123.54963 53.532768,123.54701 53.527866,123.53819 53.520027,123.5297 53.514473,123.52708 53.508919,123.52839 53.502384,123.53231 53.496178,123.53689 53.494541,123.5444 53.49585,123.55714 53.501732,123.564 53.508263,123.5676 53.516434,123.57119 53.529175,123.57446 53.53767,123.5774 53.542568,123.58197 53.54649,123.59047 53.54747,123.60484 53.546818,123.61269 53.544857,123.62314 53.542896,123.63261 53.540283,123.64176 53.535053,123.65483 53.527214,123.66757 53.516434,123.67247 53.51088,123.6777 53.504997,123.68456 53.499443,123.6875 53.49585,123.69044 53.493561,123.69501 53.491928,123.70187 53.490948,123.71135 53.490948,123.72376 53.49258,123.73063 53.493561,123.73912 53.494541,123.75382 53.493561,123.76395 53.492908,123.77375 53.490623,123.79532 53.487682,123.81067 53.486374,123.82505 53.487354,123.84367 53.48703,123.85838 53.485069,123.86556 53.483761,123.87275 53.48082,123.8868 53.474941,123.9028 53.467098,123.91849 53.458931,123.93025 53.454685,123.94201 53.448803,123.95247 53.443901,123.9603 53.438675,123.97076 53.432793,123.97828 53.427567,123.98351 53.421032,123.99102 53.412537,124.0018 53.404041,124.01225 53.398163,124.02402 53.394569,124.03186 53.392933,124.03905 53.392281,124.04688 53.390648,124.05538 53.388035,124.0629 53.385422,124.06878 53.379211,124.07237 53.369411,124.0776 53.363205,124.08348 53.360588,124.08871 53.358303,124.09328 53.354382,124.0985 53.35144,124.10439 53.348827,124.11517 53.345886,124.12366 53.344906,124.13445 53.345886,124.15241 53.353729,124.16451 53.358303,124.17496 53.363857,124.18378 53.368431,124.19228 53.371044,124.20469 53.374638,124.21416 53.374966,124.22266 53.373985,124.23376 53.372025,124.24357 53.368759,124.25565 53.361568,124.26643 53.355362,124.2829 53.350151,124.28312 53.349983))

数据入库后,就可以开始应用开发了。:P

一切是这么的简单!

后续内容包括应用开发和索引、缓存机制的实现

过段时间再写

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/305889.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

java 按符号分割字符串_JAVA字符串按分隔符号字符串分割

在处理有规律的字符串的时候.有些字符串分割需要注意了..如下例子:public class Split {public static void main(String[] args) {String str1 "1,2,3,4,5";String str2 "1,2,3,4,";String str3 "1,,2,3,";String str4",,,,";System.…

.NET Core 使用Topshelf方式创建Windows服务

Topshelf是一个.NET Standard库,它消除了在.NET Framework和.NET Core中创建Windows服务的那些麻烦。安装Install-Package Topshelf代码using System; using System.Collections.Generic; using System.Text; using Topshelf;namespace ConsoleApp2222 {public clas…

用VC++修改注册表----让我们踏出第一步(适合初学者)

用VC修改注册表----让我们踏出第一步(适合初学者)转载自:www.csdn.net 开场白 你是不是非常期待通过自己的双手,写出一个有模有样的"系统修改(维护)工具软件"?我想答案应该是肯定的&…

Repeater分页

//ASP.NET中的DataList和Repeater提供了简单快速的方法來显示,其间&#xff0c;我们可以使用<ItemTemplate>更是使我们能随心所欲的控制数据的排放样式&#xff01;//.可惜的是它们不像Datagrid那样&#xff0c;有内置的分页功能。////如何解决呢&#xff1f;////其实我们…

单一职责在.NET中

单一职责是降低耦合度的指导思想&#xff0c;适用于一个微服务&#xff0c;一个类型&#xff0c;一个方法。微服务层&#xff1a;微服务一般按业务的领域来进行拆分&#xff1a;药房微服务就是药房的业务&#xff0c;护士站微服务就是护士站的业务&#xff0c;广义上没有什么问…

PDG转PDF的方法

下面是我在“小文论坛”发的关于PDG转PDF的办法转贴请注明出自“小文论坛”.点击链接访问小文论坛前些天在坛子里看到一位朋友发的通过代理登录教育网超星的办法,试了试,还不错,下下来了几本吉他方面和计算机方面的书。但下下来的书是加密保存的&#xff0c;当该用户过期后又怎…

Roslyn 使用 Directory.Build.props 管理多个项目配置

在一些大项目需要很多独立的仓库来做&#xff0c;每个仓库之间都会有很多相同的配置&#xff0c;本文告诉大家如何通过 Directory.Build.props 管理多个项目配置在我的 MVVM 框架需要三个不同的库&#xff0c;一个是 Framework 另外两个是 WPF 和 UWP 这三个库有很多重复的配置…

java 中符号_谁能告诉我java中符号的用法,见代码

展开全部大家都知道Vector以及其他的容器可以不加任何修饰地e68a8462616964757a686964616f31333236373765存储任何类型的对象,这给我们带来了极大的方便&#xff0c;也使得容器很容易被复用&#xff0c;但是大多数时候我们可能需要只能存储某一类型对象的Vector&#xff0c;这是…

彻底堕落了一回——大三篇

转载于:https://www.cnblogs.com/wuwa/archive/2005/06/21/6191772.html

在.NET Core中使用Channel(一)

我最近一直在熟悉.net Core中引入的新Channel<T>类型。我想在它第一次发布的时候我了解过它&#xff0c;但是有关文章非常非常少&#xff0c;我不能理解它们与其他队列有什么不同。在使用了一段时间后&#xff0c;我终于看到了它们的吸引力和真正的力量。最值得注意的是大…

java控制系统音量_Java 控制 Windows 系统音量-Go语言中文社区

目录1、使用 Java 来控制 Windows 系统音量&#xff0c;使用 JNA 调用 windows 底层 API 因为有点麻烦&#xff0c;所以这里采用纯 Java API结合 VBS 脚本的方式进行控制。2、可以参考《VBS 控制 Windos 系统音量 及视频播放》&#xff0c;本文同样是利用 VBS 来控制&#xff0…

无题

今天开会&#xff0c;其实不开都知道要讲啥&#xff0c;教代会上就是讨论关于薪金的问题&#xff0c;钱拿的越来越少&#xff0c;所以要想拿钱的话只有写论文&#xff0c;带比赛&#xff0c;或参加比赛&#xff0c;获奖后才能有钱发&#xff0c;哎~~~昨天晚上xz说她确定要ky&am…

【Hook】postman工具的代码生成工具让它锦上添花

修改postman工具的代码生成工具加入response自动生成POJO代码如上图可以快速把请求这个动作转成code&#xff0c;减少重复性劳动。但是有一点我觉得可以优化下 就是返回的json如果也能自动转成代码就好了。不然在需要把json序列化成java或者csharp的POJO对象时还得自己coding转…

2005/7/15[随便写写]

通过面试开始在公司正式上班了&#xff0c;去的很早&#xff0c;呵呵&#xff0c;以为里面的员工都需要敲卡的&#xff0c;不想给大家一个坏印象。环境么给我的感觉氛围很不错&#xff0c;没有传统IT行业那种被项目赶得焦头烂额的样子&#xff0c;可是我的性格决定了我不是那种…

java nature_Java Nature.nsf方法代码示例

import com.hankcs.hanlp.corpus.tag.Nature; //导入方法依赖的package包/类/*** 执行识别* param segResult 粗分结果* param wordNetOptimum 粗分结果对应的词图* param wordNetAll 全词图*/public static void Recognition(List segResult, WordNet wordNetOptimum, WordNet…

使用BeetleX.ESDoc构建文档搜索功能

BeetleX.ESDoc组件是基于ElasticSearch服务的文档搜索扩展组件。它在BeetleX.Elasticsearch的基础上包装一些基于文档检索的功能和方法&#xff0c;可以让你在不了解ElasticSearch API的情况下直接存储&#xff0c;删除和搜索相关信息。信息结构BeetleX.ESDoc定义了一个基础的文…

java在文件的后面添加_java 在file的尾部添加数据的两种方法总结

java 在file的尾部添加数据的两种方法总结问题描述:在文件的末尾追加内容方法1:利用RandomAccessFile类1.将randomAccessFile模式设置为rw2将randomAccessFile移动(seek)到文件末尾3追加数据4关闭流方法2:利用FileWriter类1.将FileWriter构造方法第二个参数置为true.表示在尾部…

日产汽车源码遭泄露

喜欢就关注我们吧&#xff01;日产北美公司开发和使用的移动应用及内部工具的源代码于近日在网上泄露&#xff0c;原因是该公司错误配置了其中一台 Git 服务器。瑞士软件工程师 Tillie Kottmann 向 ZDNet 透露&#xff0c;此次泄露源于一台配置错误的 Bitbucket Git 服务器的信…

开源纯C#轻量级数据库引擎:SharpHSQL 1.0.3.0版本

开源纯C#轻量级数据库引擎&#xff1a;SharpHSQL 1.0.3.0版本出了&#xff12;个多月了&#xff0c;我一直没有给大家报道&#xff0c;这是目前唯一发现的用纯C#开发的稳定的轻量级数据库引擎&#xff0c;在我的建议下&#xff0c;已经支持Unicode&#xff0c;包括简体中文了。…

mysql约束深入了解_MySQL 的约束

约束是添加在列上, 用来约束列的!1. 主键约束(表中的某行的唯一标识)主键的特点:非空唯一被引用创建表时, 指定主键的两种方式&#xff1a;// 需求: 指定 sid 列为主键列, 即为 sid 列添加主键约束// 第一种方式:CREATE TABLE stu(sid CHAR(6) PRIMARY KEY,sname VARCHAR(20),a…