raster2pgsql

Geographic objects support for PostgreSQL

Install

All systems
curl cmd.cat/raster2pgsql.sh
Debian Debian
apt-get install postgis
Ubuntu
apt-get install postgis
Arch Arch Linux
pacman -S postgis
image/svg+xml Kali Linux
apt-get install postgis
Fedora
dnf install postgis
Windows (WSL2)
sudo apt-get update sudo apt-get install postgis
OS X
brew install postgis
Raspbian
apt-get install postgis

postgis

Geographic objects support for PostgreSQL

PostGIS adds support for geographic objects to the PostgreSQL object-relational database. In effect, PostGIS "spatially enables" the PostgreSQL server, allowing it to be used as a backend spatial database for geographic information systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS follows the OpenGIS "Simple Features Specification for SQL". This package contains the PostGIS userland binaries for importing and exporting shape and raster files: pgsql2shp, raster2pgsql, and shp2pgsql.