Manuale di PostGIS 3.4.5dev

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

Il gruppo di sviluppo di PostGIS

Abstract

PostGIS è un'estensione del database object-relational PostgreSQL che consente l'archiviazione di oggetti GIS (Geographic Information Systems). PostGIS comprende il supporto per gli indici spaziali R-Tree basati su GiST, e funzioni per l'analisi e l'elaborazione di oggetti GIS.

Questo è il manuale per la versione 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. Introduzione
1.1. Comitato di Coordinamento del Progetto
1.2. Principali collaboratori attuali
1.3. Principali collaboratori passati
1.4. Altri collaboratori
2. Installazione PostGIS
2.1. Versione sintetica
2.2. Compiling and Install from Source
2.2.1. Reperire il codice sorgente
2.2.2. Install Requirements
2.2.3. Configurazione
2.2.4. Compilazione
2.2.5. Compilazione e installazione delle estensioni PostGIS
2.2.6. Testing
2.2.7. Installazione
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. Amministrazione di PostGIS
3.1. Performance Tuning
3.1.1. Startup
3.1.2. Runtime
3.2. Configurare il supporto raster
3.3. Creazione di database spaziali
3.3.1. Abilitazione spaziale di database usando il metodo 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. Geography Advanced FAQ
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. Creating a Spatial Table
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. GiST Indexes
4.9.2. BRIN Indexes
4.9.3. SP-GiST Indexes
4.9.4. Tuning Index Usage
5. Spatial Queries
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. Consigli per migliori prestazioni
6.1. Piccole tabelle contenenti geometrie di grandi dimensioni
6.1.1. Descrizione del problema
6.1.2. Possibili soluzioni
6.2. CLUSTERing di indici geometrici
6.3. Evitare la conversione della dimensione
7. Guida a PostGIS
7.1. PostgreSQL PostGIS tipi Geometry/Geography/Box
7.2. Funzioni per la gestione del database
7.3. Costruttori geometrici.
7.4. Geometry Accessors
7.5. Geometry Editors
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. Operatori
7.10.1. Bounding Box Operators
7.10.2. Operatori
7.11. Spatial Relationships
7.11.1. Topological Relationships
7.11.2. Distance Relationships
7.12. Measurement Functions
7.13. Overlay Functions
7.14. Geometry Processing
7.15. Coverages
7.16. Affine Transformations
7.17. Clustering Functions
7.18. Bounding Box Functions
7.19. Sistemi di riferimento lineare
7.20. Trajectory Functions
7.21. SFCGAL Functions
7.22. Long Transaction Support
7.23. Version Functions
7.24. Grand Unified Custom Variables (GUCs)
7.25. Troubleshooting Functions
8. Topologia
8.1. Tipi di dato topologici
8.2. Domini Topologici
8.3. Gestione di topologie e TopoGeometry
8.4. Topology Statistics Management
8.5. Topology Constructors
8.6. Topology Editors
8.7. Topology Accessors
8.8. Topology Processing
8.9. TopoGeometry Constructors
8.10. TopoGeometry Editors
8.11. TopoGeometry Accessors
8.12. TopoGeometry Outputs
8.13. Topology Spatial Relationships
8.14. Importing and exporting Topologies
8.14.1. Using the Topology exporter
8.14.2. Using the Topology importer
9. Dati raster: gestione, interrogazione e applicazioni
9.1. Caricare e creare raster
9.1.1. Usare raster2pgsql per caricare i raster
9.1.2. Creazione di raster tramite le funzioni raster di PostGIS
9.1.3. Using "out db" cloud rasters
9.2. Cataloghi raster
9.2.1. Catalogo delle colonne raster
9.2.2. Raster Overviews
9.3. Costruire applicazioni personalizzate con PostGIS Raster
9.3.1. Esempio di output in PHP, utilizzando ST_AsPNG assieme ad altre funzioni raster
9.3.2. Esempio ASP.NET C# di output con ST_AsPNG, assieme ad altre funzioni raster
9.3.3. app per Java console per esportare una query raster come file immagine
9.3.4. Utilizzare PLPython per esportare immagini tramite SQL
9.3.5. Produrre 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. PostGIS Extras
11.1. Address Standardizer
11.1.1. How the Parser Works
11.1.2. Address Standardizer Types
11.1.3. Address Standardizer Tables
11.1.4. Address Standardizer Functions
11.2. Tiger Geocoder
12. Indice delle funzioni speciali di PostGIS
12.1. Funzioni Aggregate PostGIS
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. Funzioni PostGIS aggiunto o migliorate nella versione 3.4
12.12.2. Funzioni PostGIS aggiunto o migliorate nella versione 3.3
12.12.3. Funzioni PostGIS aggiunto o migliorate nella versione 3.2
12.12.4. Funzioni PostGIS aggiunto o migliorate nella versione 3.1
12.12.5. Funzioni PostGIS aggiunto o migliorate nella versione 3.0
12.12.6. Funzioni PostGIS aggiunto o migliorate nella versione 2.5
12.12.7. Funzioni PostGIS aggiunto o migliorate nella versione 2.4
12.12.8. Funzioni PostGIS aggiunto o migliorate nella versione 2.3
12.12.9. Funzioni PostGIS aggiunto o migliorate nella versione 2.2
12.12.10. Funzioni PostGIS aggiunto o migliorate nella versione 2.1
12.12.11. Funzioni PostGIS aggiunto o migliorate nella versione 2.0
12.12.12. Funzioni PostGIS aggiunto o migliorate nella versione 1.5
12.12.13. Funzioni PostGIS aggiunto o migliorate nella versione 1.4
12.12.14. Funzioni PostGIS aggiunto o migliorate nella versione 1.3
13. Segnalare Problemi
13.1. Segnalare Bug del Software
13.2. Segnalare Problemi nella Documentazione
A. Appendix
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