PostgreSQL 3D City 应用

简介:

标签

PostgreSQL , CityJSON , CityGML , 3D City , 3D City Database , Geometrical Model , Semantic Model , COLLADA , VRML , X3D , IFC , gbXML , KML , OGC (Open Geospatial Consortium)开放地理空间协会


背景

空间应用在城市规划建设中,在发挥越来越重要的作用!

pic

pic

pic

PostGIS是一个开源的PostgreSQL空间数据库插件,遵循OGC的SQL协定设计,应用广泛。

PostGIS is an open source software program that adds support for geographic objects to the PostgreSQL object-relational database. PostGIS follows the Simple Features for SQL specification from the Open Geospatial Consortium (OGC).

http://www.opengeospatial.org/

  • Geometry types for Points, LineStrings, Polygons, MultiPoints, MultiLineStrings, MultiPolygons and GeometryCollections.
  • Spatial predicates for determining the interactions of geometries using the 3x3 DE-9IM (provided by the GEOS software library).
  • Spatial operators for determining geospatial measurements like area, distance, length and perimeter.
  • Spatial operators for determining geospatial set operations, like union, difference, symmetric difference and buffers (provided by GEOS).
  • R-tree-over-GiST (Generalized Search Tree) spatial indexes for high speed spatial querying.
  • Index selectivity support, to provide high performance query plans for mixed spatial/non-spatial queries.
  • For raster data, PostGIS WKT Raster (now integrated into PostGIS 2.0+ and renamed PostGIS Raster)
  • The PostGIS implementation is based on "light-weight" geometries and indexes optimized to reduce disk and memory footprint. Using light-weight geometries helps servers increase the amount of data migrated up from physical disk storage into RAM, improving query performance substantially.
  • PostGIS is registered as "implements the specified standard" for "Simple Features for SQL" by the OGC.[3] PostGIS has not been certified as compliant by the OGC.

PostGIS支持的空间构造接口如下,兼容各种geometry格式的导入。

http://postgis.net/docs/manual-2.4/reference.html

8.4. Geometry Constructors  
  
ST_GeogFromText — Return a specified geography value from Well-Known Text representation or extended (WKT).  
ST_GeographyFromText — Return a specified geography value from Well-Known Text representation or extended (WKT).  
ST_GeogFromWKB — Creates a geography instance from a Well-Known Binary geometry representation (WKB) or extended Well Known Binary (EWKB).  
ST_GeomFromTWKB — Creates a geometry instance from a TWKB ("Tiny Well-Known Binary") geometry representation.  
ST_GeomCollFromText — Makes a collection Geometry from collection WKT with the given SRID. If SRID is not given, it defaults to 0.  
ST_GeomFromEWKB — Return a specified ST_Geometry value from Extended Well-Known Binary representation (EWKB).  
ST_GeomFromEWKT — Return a specified ST_Geometry value from Extended Well-Known Text representation (EWKT).  
ST_GeometryFromText — Return a specified ST_Geometry value from Well-Known Text representation (WKT). This is an alias name for ST_GeomFromText  
ST_GeomFromGeoHash — Return a geometry from a GeoHash string.  
ST_GeomFromGML — Takes as input GML representation of geometry and outputs a PostGIS geometry object  
ST_GeomFromGeoJSON — Takes as input a geojson representation of a geometry and outputs a PostGIS geometry object  
ST_GeomFromKML — Takes as input KML representation of geometry and outputs a PostGIS geometry object  
ST_GMLToSQL — Return a specified ST_Geometry value from GML representation. This is an alias name for ST_GeomFromGML  
ST_GeomFromText — Return a specified ST_Geometry value from Well-Known Text representation (WKT).  
ST_GeomFromWKB — Creates a geometry instance from a Well-Known Binary geometry representation (WKB) and optional SRID.  

PostGIS支持的空间构造接口如下,兼容各种geometry格式的导出。

8.7. Geometry Outputs  
  
ST_AsBinary — Return the Well-Known Binary (WKB) representation of the geometry/geography without SRID meta data.  
ST_AsEncodedPolyline — Returns an Encoded Polyline from a LineString geometry.  
ST_AsEWKB — Return the Well-Known Binary (WKB) representation of the geometry with SRID meta data.  
ST_AsEWKT — Return the Well-Known Text (WKT) representation of the geometry with SRID meta data.  
ST_AsGeoJSON — Return the geometry as a GeoJSON element.  
ST_AsGML — Return the geometry as a GML version 2 or 3 element.  
ST_AsHEXEWKB — Returns a Geometry in HEXEWKB format (as text) using either little-endian (NDR) or big-endian (XDR) encoding.  
ST_AsKML — Return the geometry as a KML element. Several variants. Default version=2, default precision=15  
ST_AsLatLonText — Return the Degrees, Minutes, Seconds representation of the given point.  
ST_AsSVG — Returns a Geometry in SVG path data given a geometry or geography object.  
ST_AsText — Return the Well-Known Text (WKT) representation of the geometry/geography without SRID metadata.  
ST_AsTWKB — Returns the geometry as TWKB, aka "Tiny Well-Known Binary"  
ST_AsX3D — Returns a Geometry in X3D xml node element format: ISO-IEC-19776-1.2-X3DEncodings-XML  
ST_GeoHash — Return a GeoHash representation of the geometry.  
ST_AsGeobuf — Return a Geobuf representation of a set of rows.  
ST_AsMVTGeom — Transform a geometry into the coordinate space of a Mapbox Vector Tile.  
ST_AsMVT — Return a Mapbox Vector Tile representation of a set of rows.  

结合PostGIS与空间应用软件,可以推动城市规划建设的空间应用。

物料

一些相关物料

1、3D GIS and Application

2、3D City Database for CityGML

3、DATABASE DEVELOPMENT WITH “3D-CITYGML”AND “ENERGYADE”- SCHEMA FOR CITY-DISTRICT-SIMULATION MODELLING

4、环境监控

http://www.openforis.org/home.html

5、Collect_Earth_User_Manual

6、可视化城市

7、3D 城市 数据库

8、虚拟城市 database

9、虚拟城市 数据格式兼容

标准

一些标准

1、The OGC (Open Geospatial Consortium) is an international not for profit organization committed to making quality open standards for the global geospatial community.

http://www.opengeospatial.org/

2、CityGML - City Geography Markup Language

http://www.citygmlwiki.org/index.php?title=Citygml_Wiki

3、CityJSON is a format for encoding a subset of the CityGML data model using JavaScript Object Notation (JSON)

http://www.cityjson.org

PPT转载

http://rchr.github.io/slides_ghg_gfz/#/data-modelling

pic

pic
pic
pic
pic
pic
pic
pic
pic
pic
pic
pic
pic
pic
pic

pic

实际上已经支持到SQL:2011标准

pic
pic
pic
pic
pic
pic
pic
pic
pic
pic
pic

pic
pic
pic
pic
pic

pic
pic

pic
pic

pic

pic
pic

pic
pic

pic

pic

pic
pic
pic
pic
pic
pic

pic
pic

pic
pic
pic
pic
pic
pic
pic
pic
pic
pic

pic
pic
pic
pic
pic
pic
pic
pic
pic
pic

pic
pic
pic
pic
pic
pic
pic
pic
pic
pic

pic
pic
pic

pic

https://gist.github.com/sluedtke/c69b545a0937f560245f

参考

1、https://en.wikipedia.org/wiki/PostGIS

2、https://goldsaucer.co.uk/projects/#content

3、https://github.com/TerriaJS/terriajs/issues/673

4、http://www.bluemarblegeo.com/about-us/index.php

5、https://github.com/3dcitydb

6、https://www.3dcitydb.org/3dcitydb/3dcitydb-in-action/

7、https://www.citygml.org/

8、http://www.virtualcitysystems.de/en/

9、利用 OpenScales+MapServer+PostGIS 快速构建 GIS 应用

https://www.ibm.com/developerworks/cn/opensource/os-cn-gis-dev/index.html

10、WebGIS(PostgreSQL+GeoServer+OpenLayers)之二 GeoServer安装与数据配置(转)

http://hbluojiahui.blog.163.com/blog/static/31064767200911179523287/

11、使用Geoserver和Google Earth打造三维GIS展示系统

http://blog.csdn.net/iwillsw/article/details/4733300

12、ST_AsCollada / ST_GeomFromCollada

https://trac.osgeo.org/postgis/ticket/873#no1

http://postgis3d.blogspot.com/

相关实践学习
使用PolarDB和ECS搭建门户网站
本场景主要介绍如何基于PolarDB和ECS实现搭建门户网站。
阿里云数据库产品家族及特性
阿里云智能数据库产品团队一直致力于不断健全产品体系,提升产品性能,打磨产品功能,从而帮助客户实现更加极致的弹性能力、具备更强的扩展能力、并利用云设施进一步降低企业成本。以云原生+分布式为核心技术抓手,打造以自研的在线事务型(OLTP)数据库Polar DB和在线分析型(OLAP)数据库Analytic DB为代表的新一代企业级云原生数据库产品体系, 结合NoSQL数据库、数据库生态工具、云原生智能化数据库管控平台,为阿里巴巴经济体以及各个行业的企业客户和开发者提供从公共云到混合云再到私有云的完整解决方案,提供基于云基础设施进行数据从处理、到存储、再到计算与分析的一体化解决方案。本节课带你了解阿里云数据库产品家族及特性。
目录
相关文章
|
关系型数据库 物联网 PostgreSQL
沉浸式学习PostgreSQL|PolarDB 11: 物联网(IoT)、监控系统、应用日志、用户行为记录等场景 - 时序数据高吞吐存取分析
物联网场景, 通常有大量的传感器(例如水质监控、气象监测、新能源汽车上的大量传感器)不断探测最新数据并上报到数据库. 监控系统, 通常也会有采集程序不断的读取被监控指标(例如CPU、网络数据包转发、磁盘的IOPS和BW占用情况、内存的使用率等等), 同时将监控数据上报到数据库. 应用日志、用户行为日志, 也就有同样的特征, 不断产生并上报到数据库. 以上数据具有时序特征, 对数据库的关键能力要求如下: 数据高速写入 高速按时间区间读取和分析, 目的是发现异常, 分析规律. 尽量节省存储空间
1058 1
|
存储 JSON 关系型数据库
PostgreSQL Json应用场景介绍和Shared Detoast优化
PostgreSQL Json应用场景介绍和Shared Detoast优化
|
关系型数据库 数据库 PostgreSQL
Docker【应用 03】给Docker部署的PostgreSQL数据库安装PostGIS插件(安装流程及问题说明)
Docker【应用 03】给Docker部署的PostgreSQL数据库安装PostGIS插件(安装流程及问题说明)
1395 0
|
关系型数据库 数据库 PostgreSQL
PostgreSQL【应用 01】使用Vector插件实现向量相似度查询(Docker部署的PostgreSQL安装pgvector插件说明)和Milvus向量库对比
PostgreSQL【应用 01】使用Vector插件实现向量相似度查询(Docker部署的PostgreSQL安装pgvector插件说明)和Milvus向量库对比
1874 1
|
SQL 关系型数据库 C语言
PostgreSQL【应用 03】Docker部署的PostgreSQL扩展SQL之C语言函数(编写、编译、载入)计算向量余弦距离实例分享
PostgreSQL【应用 03】Docker部署的PostgreSQL扩展SQL之C语言函数(编写、编译、载入)计算向量余弦距离实例分享
190 0
|
SQL 关系型数据库 数据库
PostgreSQL【应用 02】扩展SQL之C语言函数(编写、编译、载入)实例分享
PostgreSQL【应用 02】扩展SQL之C语言函数(编写、编译、载入)实例分享
511 0
|
存储 关系型数据库 数据库
《PostgreSQL物化视图:创建、维护与应用》
《PostgreSQL物化视图:创建、维护与应用》
236 0
|
存储 JSON 关系型数据库
《PostgreSQL中的JSON处理:技巧与应用》
《PostgreSQL中的JSON处理:技巧与应用》
277 0
|
人工智能 关系型数据库 Serverless
探索AI知识库问答应用:函数计算与RDS PostgreSQL的奇妙融合
随着技术的飞速发展,AI大语言模型成为了当今科技界的一颗璀璨明星。我有幸跟随老陈的引导,踏入了基于函数计算(FC)和RDS PostgreSQL的AI知识库问答应用的世界。这次的探索让我深切感受到了云计算和人工智能的结合,以及它们如何塑造着未来的技术格局。
424 0
|
关系型数据库 分布式数据库 数据库
沉浸式学习PostgreSQL|PolarDB 8: 电商|短视频|新闻|内容推荐业务(根据用户行为推荐相似内容)、监控预测报警系统(基于相似指标预判告警)、音视图文多媒体相似搜索、人脸|指纹识别|比对 - 向量搜索应用
1、在电商业务中, 用户浏览商品的行为会构成一组用户在某个时间段的特征, 这个特征可以用向量来表达(多维浮点数组), 同时商品、店铺也可以用向量来表达它的特征. 那么为了提升用户的浏览体验(快速找到用户想要购买的商品), 可以根据用户向量在商品和店铺向量中进行相似度匹配搜索. 按相似度来推荐商品和店铺给用户. 2、在短视频业务中, 用户浏览视频的行为, 构成了这个用户在某个时间段的兴趣特征, 这个特征可以用向量来表达(多维浮点数组), 同时短视频也可以用向量来表达它的特征. 那么为了提升用户的观感体验(推荐他想看的视频), 可以在短视频向量中进行与用户特征向量的相似度搜索.
491 0

相关产品

  • 云原生数据库 PolarDB
  • 云数据库 RDS PostgreSQL 版
  • 推荐镜像

    更多