官术网_书友最值得收藏!

  • Mastering PostGIS
  • Dominik Mikiewicz Michal Mackiewicz Tomasz Nycz
  • 188字
  • 2021-07-02 22:52:24

Spatial Data Analysis

So far, we have learned how to store geospatial data in a PostGIS database. In fact, any database management system can do that; spatial information can be encoded and stored in an ordinary DBMS-friendly format, be it blob, byte array, or text-based exchange format. What makes the spatial database special (and the PostGIS extension worth installing) is the rich toolset designed for analyzing, transforming, validating, querying, and extracting metrics from spatial information. In this chapter, we will learn how to harness the power of PostGIS spatial functions to gain meaningful insights from geodata. We will focus on the following topics:

  • Composing and decomposing geometries
  • Spatial measurement
  • Geometry bounding boxes
  • Geometry simplification
  • Geometry validation
  • Intersecting geometries
  • Nearest feature queries

The example queries used in this chapter mostly use geometries created by hand, using geometry composition functions. For a few examples, the OSM data in osm2pgsql schema and Natural Earth data imported in Chapter 1, Importing Spatial Data, are used, but only the column and table names are specific; the queries can be adjusted to any other dataset, provided that the geometry type is the same.

主站蜘蛛池模板: 新田县| 五寨县| 科技| 和政县| 喀什市| 泰宁县| 个旧市| 象山县| 武冈市| 金乡县| 民乐县| 八宿县| 祁东县| 如东县| 鸡西市| 博乐市| 襄樊市| 卢龙县| 儋州市| 根河市| 临沂市| 青铜峡市| 会泽县| 凌海市| 东乡县| 金坛市| 离岛区| 万州区| 灌云县| 广州市| 伊吾县| 抚顺县| 广德县| 卓尼县| 沙湾县| 株洲市| 禄丰县| 霍州市| 鹿邑县| 台湾省| 乌什县|