6 数据库中的 GIS#

6 GIS in the Database

本章探讨了将地理空间数据存储在数据库中的各种开源选项。更具体地说,我们将涵盖以下内容:

  • 空间支持数据库的概念

  • 空间索引及其工作原理

  • 主要开源空间数据库的概述

  • 在数据库中存储空间数据的推荐最佳实践

  • 使用 Python 与地理空间数据库进行交互

本章旨在介绍如何在地理空间应用程序中使用数据库;*第七章,使用空间数据*将在此基础上进行扩展,执行一些使用 shapefile 和其他地理空间数据文件无法实现的强大空间查询。

This chapter examines the various open source options for storing geospatial data in a database. More specifically, we will cover:

  • The concept of a spatially-enabled database

  • Spatial indexes and how they work

  • A summary of the major open-source spatial databases

  • Recommended best practices for storing spatial data in a database

  • Working with geospatial databases using Python

This chapter is intended to be an introduction to using databases in a geospatial application; Chapter 7, Working with Spatial Data, will build on this to perform powerful spatial queries that are not possible using shapefiles and other geospatial data files.