- PostGIS Cookbook
- Paolo Corti Thomas J. Kraft Stephen Vincent Mather Bborie Park
- 241字
- 2021-07-19 18:29:45
Introduction
In this chapter, you will work with a set of PostGIS functions and vector datasets. You will first take a look at how to use PostGIS with GPS data—you will import such datasets using ogr2ogr
, and then compose polylines from point geometries using the ST_MakeLine
function.
Then, you will see how PostGIS manages and helps you find and fix invalid geometries with functions such as ST_MakeValid
, ST_IsValid
, ST_IsValidReason
, and ST_IsValidDetails
.
We will then learn about one of the most powerful elements of a spatial database—spatial joins. PostGIS provides you with a rich set of operators, such as ST_Intersects
, ST_Contains
, ST_Covers
, ST_Crosses
, and ST_DWithin
, for this purpose.
After that, you will use the ST_Simplify
and ST_SimplifyPreverveTopology
functions to simplify (generalize) geometries when you don't need too many details. While this function works well on linear geometries, topological anomalies may be introduced for polygonal ones. In such cases, you should consider using an external GIS tool such as GRASS
.
You will then have a tour of PostGIS functions to make distance measurements—ST_Distance
, ST_DistanceSphere
, ST_DistanceSpheroid
are on the way.
One of the recipes explained in this chapter will guide you through the typical GIS workflow to merge polygons based on a common attribute; you will use the ST_Union
function for this purpose.
You will then learn how to clip geometries using the ST_Intersection
function, before deep diving into the new PostGIS topology support in the last recipe.
- C#程序設計實訓指導書
- Maven Build Customization
- 微服務與事件驅動架構
- Python程序設計(第3版)
- PySide 6/PyQt 6快速開發與實戰
- Swift 4從零到精通iOS開發
- Getting Started with Nano Server
- Building Serverless Architectures
- Python網絡爬蟲技術與應用
- Application Development with Parse using iOS SDK
- 軟件工程與UML案例解析(第三版)
- 交互設計師成長手冊:從零開始學交互
- 計算機組裝與維護(第二版)
- Access 2016數據庫應用與開發:實戰從入門到精通(視頻教學版)
- Learning RSLogix 5000 Programming