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.

PostGIS SQL ஐ இப்போதே ஏற்றுமதி செய்யுங்கள் ✨ திறந்த பீட்டா — இலவசம், வரம்புகள் இல்லை

முக்கிய அம்சங்கள்

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

PostGIS SQL வடிவம் பற்றி

PostGIS SQL is not a binary dump but an ordinary text script: create a table with a geometry column and fill it with rows. It can be read by eye, put into version control and applied with a single psql command on any PostgreSQL database with the PostGIS extension.

The format is convenient when data is handed to a team already living on PostgreSQL: analytics, backend, portal developers. Apply the script — and you immediately have a table that ST functions work on: intersections, buffers, distances, aggregates over the area.

The script is self-contained: it enables the PostGIS extension if it is not there yet, creates a table for each layer with a geom column and attributes, inserts objects through ST_GeomFromText with the coordinate system specified (EPSG:4326 by default) and at the end creates a GiST spatial index on geom. Values are escaped and field types are mapped onto PostgreSQL types.

Two details it is better to know in advance. Before creating a table the script runs DROP TABLE IF EXISTS with a cascade — if the schema already contains a table with the same name, it will be deleted along with the dependent objects, so apply the script into a separate schema or check the names. And the volume: up to 500,000 objects are carried over per table, beyond that the export is truncated — for large territories take GeoPackage or FlatGeobuf and load them through ogr2ogr.

PostGIS SQL கோப்புகளை எந்த நிரல் திறக்கிறது

OSM2CDR இலிருந்து ஏற்றுமதி செய்யப்பட்ட PostGIS SQL Dump (.sql) கோப்புகளைப் பின்வரும் நிரல்களும் பயன்பாடுகளும் திறக்கலாம், திருத்தலாம் மற்றும் அவற்றுடன் வேலை செய்யலாம்:

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

Format specifications

PostGIS SQL வரைபடங்களை யார் பயன்படுத்துகிறார்கள்

🏗
Loading an OSM selection into your PostgreSQL/PostGIS database with one script
The selection is deployed into your database with one command — and the data is ready for ST queries right away.
💻
Handing data to a GIS team already on the PostgreSQL stack
A convenient way to hand data to a team already working on PostgreSQL: the script is readable by eye and stored in a repository.
📊
Preparing a layer for GeoServer or QGIS via a PostGIS connection
A layer for publishing in GeoServer or connecting to QGIS through the database, with no file exchange.
🎨
Embedding geodata into a SQL pipeline or CI/CD through psql -f
A pipeline or build step: the script is applied automatically through psql -f along with the rest of the migrations.

PostGIS SQL ஐ எவ்வாறு ஏற்றுமதி செய்வது

1
பகுதியைத் தேர்ந்தெடுங்கள்
osm2cdr.ru இல் உள்ள ஊடாடும் வரைபடத்தில் ஒரு செவ்வகம் அல்லது பலகோணத்தை வரையுங்கள்
2
PostGIS SQL ஐத் தேர்வுசெய்யுங்கள்
கிடைக்கும் 127 ஏற்றுமதி வடிவங்களின் பட்டியலிலிருந்து PostGIS SQL Dump ஐத் தேர்ந்தெடுங்கள்
3
ஏற்றுமதி
ஏற்றுமதி என்பதைக் கிளிக் செய்து 1-5 நிமிடங்களில் உங்கள் .sql கோப்பைப் பெறுங்கள்
4
பதிவிறக்கம்
தயாரான PostGIS SQL கோப்பைப் பதிவிறக்கம் செய்து அதை PostgreSQL + PostGIS இல் திறக்கவும்

ஏற்றுமதிக்குப் பிறகு எப்படித் திறப்பது

PostGIS SQL இல் பிரபலமான வரைபடங்கள்

இலவசம்

PostGIS SQL Dump வரைபட ஏற்றுமதிகளைப் பெறுங்கள்

OpenStreetMap இலிருந்து தொழில்முறை PostGIS SQL வரைபடங்களைப் பதிவிறக்கம் செய்யுங்கள். உடனடி உருவாக்கம், எந்தப் பகுதியும்.

இலவசம் / ஏற்றுமதி
PostGIS SQL ஐ இப்போதே ஏற்றுமதி செய்யுங்கள் →

அடிக்கடி கேட்கப்படும் கேள்விகள்

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?
Are indexes created?
Will the script delete my existing tables?

தொடர்புடைய வடிவங்கள்

அடிக்கடி ஒன்றாக ஏற்றுமதி செய்யப்படுகிறது

Related Articles