PostGIS SQL 💾

PostGIS SQL Dump

Open Beta
.sql · application/sql

PostGIS SQL is a text SQL script that creates a table with a geometry column and fills it with data, ready to load into any PostgreSQL database with the PostGIS extension. It is a convenient way to hand an OSM selection to a team already on the PostgreSQL stack: apply the script and you immediately have a geometry table for queries through ST_* functions. Our exporter generates a self-contained .sql: CREATE TABLE with a geom column and attributes, then one INSERT per feature where geometry is given via ST_GeomFromText(WKT, SRID) (SRID 4326 by default). Multiple layers become separate tables, and values are escaped (SQL-injection safe). Honestly: this is a simple human-readable dump via ST_GeomFromText, not a binary pg_dump archive and not the full osm2pgsql schema with planet_osm tables and spatial indexes.

Esporta PostGIS SQL ora ✨ Open Beta — gratis, senza limiti

Caratteristiche principali

Self-contained .sql: CREATE TABLE + INSERT, applied via psql -f
Geometry via ST_GeomFromText(WKT, SRID), SRID 4326 by default
Attribute types mapped to PostgreSQL types (TEXT, DOUBLE PRECISION, INTEGER)
Multiple layers — separate tables in one script
Values are escaped — SQL-injection safe

Quale programma apre i file PostGIS SQL

I seguenti programmi e applicazioni possono aprire, modificare ed elaborare i file PostGIS SQL Dump (.sql) esportati da OSM2CDR:

💻PostgreSQL + PostGIS 💻psql 🌎QGIS 💻GeoServer 💻DBeaver

Format specifications

Chi usa le mappe PostGIS SQL

🏗
Loading an OSM selection into your PostgreSQL/PostGIS database with one script
💻
Handing data to a GIS team already on the PostgreSQL stack
📊
Preparing a layer for GeoServer or QGIS via a PostGIS connection
🎨
Embedding geodata into a SQL pipeline or CI/CD through psql -f

Come esportare in PostGIS SQL

1
Seleziona l'area
Disegna un rettangolo o un poligono sulla mappa interattiva su osm2cdr.ru
2
Scegli PostGIS SQL
Seleziona PostGIS SQL Dump dall'elenco dei 127 formati di esportazione disponibili
3
Esporta
Fai clic su Esporta e ricevi il file .sql in 1-5 minuti
4
Scarica
Scarica il file PostGIS SQL pronto e aprilo in PostgreSQL + PostGIS

Mappe popolari in PostGIS SQL

Free

Ottieni esportazioni di mappe in PostGIS SQL Dump

Scarica mappe PostGIS SQL professionali da OpenStreetMap. Generazione istantanea, qualsiasi area.

Gratis / esportazione
Esporta PostGIS SQL ora →

Domande frequenti

Is this a pg_dump dump?
Will this be the osm2pgsql schema with planet_osm tables?
How do I apply the script?
Which coordinate system is the geometry in?

Formati correlati

Related Articles