Manual PostGIS 3.4.5dev

DEV (Wed 27 Aug 2025 10:18:05 AM UTC rev. 304ba2d )

The PostGIS Development Group

Abstract

PostGIS es una extension del sistema de base de datos relacional PostgreSQL que permite almacenar objetos SIG (Sistemas de Información Geografica) en la base de datos. PostGIS incluye soporte de indices de tipos basados en GiST R-Tree, y funciones de análisis y procesado de objetos SIG.

Este es el manual de la version 3.4.5dev

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License. Feel free to use this material any way you like, but we ask that you attribute credit to the PostGIS Project and wherever possible, a link back to https://postgis.net.


Table of Contents
1. Introducción
1.1. Comité de Dirección del Proyecto (Project Steering Committee)
1.2. Core Contributors Present
1.3. Core Contributors Past
1.4. Other Contributors
2. Instalación de PostGIS
2.1. Versión corta
2.2. Compilación e instalación desde el código fuente
2.2.1. Obteniendo el código fuente
2.2.2. Install Requirements
2.2.3. Configuración
2.2.4. Compilando
2.2.5. Compilando e Instalando Extensiones de PostGIS
2.2.6. Tests
2.2.7. Instalación
2.3. Installing and Using the address standardizer
2.4. Installing, Upgrading Tiger Geocoder, and loading data
2.4.1. Tiger Geocoder Enabling your PostGIS database
2.4.2. Using Address Standardizer Extension with Tiger geocoder
2.4.3. Required tools for tiger data loading
2.4.4. Upgrading your Tiger Geocoder Install and Data
2.5. Common Problems during installation
3. Administración de PostGIS
3.1. Performance Tuning
3.1.1. Startup
3.1.2. Runtime
3.2. Configuring raster support
3.3. Creating spatial databases
3.3.1. Spatially enable database using EXTENSION
3.3.2. Spatially enable database without using EXTENSION (discouraged)
3.4. Upgrading spatial databases
3.4.1. Soft upgrade
3.4.2. Hard upgrade
4. Data Management
4.1. Spatial Data Model
4.1.1. OGC Geometry
4.1.2. SQL/MM Part 3 - Curves
4.1.3. WKT and WKB
4.2. Geometry Data Type
4.2.1. PostGIS EWKB and EWKT
4.3. Geography Data Type
4.3.1. Creating Geography Tables
4.3.2. Using Geography Tables
4.3.3. When to use the Geography data type
4.3.4. Preguntas frecuentes Avanzadas de Geography
4.4. Geometry Validation
4.4.1. Simple Geometry
4.4.2. Valid Geometry
4.4.3. Managing Validity
4.5. Spatial Reference Systems
4.5.1. SPATIAL_REF_SYS Table
4.5.2. User-Defined Spatial Reference Systems
4.6. Spatial Tables
4.6.1. Crear una tabla espacial
4.6.2. GEOMETRY_COLUMNS View
4.6.3. Manually Registering Geometry Columns
4.7. Loading Spatial Data
4.7.1. Using SQL to Load Data
4.7.2. Using the Shapefile Loader
4.8. Extracting Spatial Data
4.8.1. Using SQL to Extract Data
4.8.2. Using the Shapefile Dumper
4.9. Spatial Indexes
4.9.1. Indices GiST
4.9.2. BRIN Indexes
4.9.3. SP-GiST Indexes
4.9.4. Tuning Index Usage
5. Consulta Espacial
5.1. Determining Spatial Relationships
5.1.1. Dimensionally Extended 9-Intersection Model
5.1.2. Named Spatial Relationships
5.1.3. General Spatial Relationships
5.2. Using Spatial Indexes
5.3. Examples of Spatial SQL
6. Consejos de rendimiento
6.1. Tablas pequeñas de geometrías grandes
6.1.1. Descripcion del problema
6.1.2. Soluciones provisionales
6.2. CLUSTERing o indices geométricos
6.3. Evitar la conversión de dimensión
7. Manual de Referencia PostGIS
7.1. Tipos Geometry/Geography/Box en PostgreSQL PostGIS
7.2. Funciones de Gestión
7.3. Contructores Geométricos
7.4. Métodos de Acceso a Geometrías
7.5. Editores de Geometría
7.6. Geometry Validation
7.7. Spatial Reference System Functions
7.8. Geometry Input
7.8.1. Well-Known Text (WKT)
7.8.2. Well-Known Binary (WKB)
7.8.3. Other Formats
7.9. Geometry Output
7.9.1. Well-Known Text (WKT)
7.9.2. Well-Known Binary (WKB)
7.9.3. Other Formats
7.10. Operadores
7.10.1. Bounding Box Operators
7.10.2. Operadores
7.11. Spatial Relationships
7.11.1. Topological Relationships
7.11.2. Distance Relationships
7.12. Measurement Functions
7.13. Overlay Functions
7.14. Procesamiento de geometría
7.15. Coverages
7.16. Affine Transformations
7.17. Clustering Functions
7.18. Bounding Box Functions
7.19. Referencia Lineal 
7.20. Trajectory Functions
7.21. SFCGAL Functions
7.22. Soporte para transacciones grandes
7.23. Version Functions
7.24. Grand Unified Custom Variables (GUCs)
7.25. Troubleshooting Functions
8. Topology
8.1. Tipos en Topology
8.2. Dominios de Topology
8.3. Topología y Gestión de TopoGeometría
8.4. Topology Statistics Management
8.5. Constructores de Topología
8.6. Editores de Topología
8.7. Accesores de Topología
8.8. Procesamiento de Topología
8.9. Constructores de Geometría Topográfica
8.10. Editores TopoGeometry
8.11. Descriptores de Geometría Topográfica
8.12. Salidas de Geometría Topográfica
8.13. Relaciones espaciales de topología
8.14. Importing and exporting Topologies
8.14.1. Using the Topology exporter
8.14.2. Using the Topology importer
9. Gestión, Consulta y Aplicaciones de Datos Raster
9.1. Cargando y Creando Rasters
9.1.1. Utilizar el paquete raster2pgsql para cargar rasters
9.1.2. Crear rastrees utilizando las funciones raster de PostGIS
9.1.3. Using "out db" cloud rasters
9.2. Catalogos raster
9.2.1. Catalogo de columnas raster
9.2.2. Previsualizaciones raster
9.3. Contruyendo aplicaciones personalizadas con PostGIS Raster
9.3.1. Ejemplo de salida utilizando ST_AsPNG junto con otras opciones raster en PHP
9.3.2. Ejemplo de salida utilizando ST_AsPNG junto con otras opciones raster en ASP.NET C#
9.3.3. Aplicación de consola Java que extrae un raster como un fichero de imagen
9.3.4. Utilizar PLPython para extraer imágenes vía SQL
9.3.5. Extraer un raster con PSQL
10. Raster Reference
10.1. Raster Support Data types
10.2. Raster Management
10.3. Raster Constructors
10.4. Raster Accessors
10.5. Raster Band Accessors
10.6. Raster Pixel Accessors and Setters
10.7. Raster Editors
10.8. Raster Band Editors
10.9. Raster Band Statistics and Analytics
10.10. Raster Inputs
10.11. Raster Outputs
10.12. Raster Processing: Map Algebra
10.13. Built-in Map Algebra Callback Functions
10.14. Raster Processing: DEM (Elevation)
10.15. Raster Processing: Raster to Geometry
10.16. Raster Operators
10.17. Raster and Raster Band Spatial Relationships
10.18. Raster Tips
10.18.1. Out-DB Rasters
11. Extras de PostGIS
11.1. Normalizador de Direcciones
11.1.1. Cómo funciona el analizador
11.1.2. Tipos de Address Standardizer
11.1.3. Tipos de Address Standardizer
11.1.4. Funciones de Address Standardizer
11.2. Geocodificador Tiger
12. PostGIS Special Functions Index
12.1. PostGIS Aggregate Functions
12.2. PostGIS Window Functions
12.3. PostGIS SQL-MM Compliant Functions
12.4. PostGIS Geography Support Functions
12.5. PostGIS Raster Support Functions
12.6. PostGIS Geometry / Geography / Raster Dump Functions
12.7. PostGIS Box Functions
12.8. PostGIS Functions that support 3D
12.9. PostGIS Curved Geometry Support Functions
12.10. PostGIS Polyhedral Surface Support Functions
12.11. PostGIS Function Support Matrix
12.12. New, Enhanced or changed PostGIS Functions
12.12.1. PostGIS Functions new or enhanced in 3.4
12.12.2. PostGIS Functions new or enhanced in 3.3
12.12.3. PostGIS Functions new or enhanced in 3.2
12.12.4. PostGIS Functions new or enhanced in 3.1
12.12.5. PostGIS Functions new or enhanced in 3.0
12.12.6. PostGIS Functions new or enhanced in 2.5
12.12.7. PostGIS Functions new or enhanced in 2.4
12.12.8. PostGIS Functions new or enhanced in 2.3
12.12.9. PostGIS Functions new or enhanced in 2.2
12.12.10. PostGIS Functions new or enhanced in 2.1
12.12.11. PostGIS Functions new or enhanced in 2.0
12.12.12. PostGIS Functions new or enhanced in 1.5
12.12.13. PostGIS Functions new or enhanced in 1.4
12.12.14. PostGIS Functions new or enhanced in 1.3
13. Informar de problemas
13.1. Informar sobre errores de software
13.2. Informando sobre problemas de documentación
A. Apéndice
A.1. PostGIS 3.4.4
A.2. PostGIS 3.4.3
A.3. PostGIS 3.4.2
A.4. PostGIS 3.4.1
A.5. PostGIS 3.4.0