HuidaeCho / gdal-grass

GDAL-GRASS GIS driver (https://gdal.org/drivers/raster/grass.html and https://gdal.org/drivers/vector/grass.html)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Standalone GRASS Drivers for GDAL and OGR

This package contains standalone drivers for GRASS raster and vector files that can be built after GDAL has been built and installed as a GDAL "autoload" driver.

This approach avoids circular dependencies with GRASS depending on GDAL, but GDAL with GRASS support depending on GRASS. With this driver package you configure and install GDAL normally, then build and install GRASS normally and finally build and install this driver.

To build this driver it is necessary for it to find GDAL and GRASS support files. Typically the configure and build process would look something like:

./configure --with-gdal=/usr/bin/gdal-config \
            --with-grass=/usr/grass
make
sudo make install

Usage

Access GRASS GIS raster data from GDAL:

gdalinfo $HOME/grassdata/nc_spm_08_grass7/PERMANENT/cellhd/elevation

Access GRASS GIS vector data from GDAL-OGR:

ogrinfo -so -al $HOME/grassdata/nc_spm_08_grass7/PERMANENT/vector/zipcodes/head

About

GDAL-GRASS GIS driver (https://gdal.org/drivers/raster/grass.html and https://gdal.org/drivers/vector/grass.html)


Languages

Language:C++ 91.8%Language:M4 7.2%Language:Makefile 1.0%