Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does PostgreSQL implement Geospatial relationship queries?

My company is looking at different database providers, and how they implement Geospatial queries to get distances from a Lat/Long for a number of records.

We are going to investigate PostgreSQL as a potential database platform.

  • I've heard that PostGRE implements Geospatial queries. Is this correct?
  • Is there a good reference somewhere that gives info on the implementation?
like image 535
pearcewg Avatar asked Mar 24 '09 11:03

pearcewg


People also ask

Does Postgres support geospatial data?

PostgreSQL has several extensions so spatial and geometry data can be treated as first-class objects within your PostgreSQL database. PostgreSQL has several extensions so spatial and geometry data can be treated as first-class objects within your PostgreSQL database.

How does Postgres store spatial data?

In order to support spatial data in PostgreSQL, we need to perform the following steps: Install the PostgreSQL database on your local. Install PGAdmin or a GUI to manage the local PostgreSQL database server. Install the PostGIS extension to provide support for the spatial data types like points, lines, geometry etc.

What type of relational database is PostgreSQL?

Robust, reliable open source relational database PostgreSQL is an advanced, enterprise class open source relational database that supports both SQL (relational) and JSON (non-relational) querying.

Which command is used in PostgreSQL to use spatial functions?

PostGIS adds spatial capabilities to the PostgreSQL relational database. It extends PostgreSQL so it can store, query, and manipulate spatial data.


2 Answers

It's PostGIS. For reference you have manual, wiki and more...

like image 71
vartec Avatar answered Sep 28 '22 00:09

vartec


If you want to spatially enable a PostgreSQL database you can do so with PostGIS, it's compliant with the Open Geospatial Consortium's Simple Features Interface Standard for SQL too.

like image 35
ninesided Avatar answered Sep 28 '22 00:09

ninesided