About
The gdal.go package provides a go wrapper for GDAL, the Geospatial Data Abstraction Library. More information about GDAL can be found at http://www.gdal.org
Installation
-
go get github.com/miccoh1994/gdal
-
Set the GDAL library and include directories to the appropriate locations.
### Windows
- Download the GDAL binaries from https://download.gisinternals.com/sdk/downloads/release-1930-x64-gdal-3-9-1-mapserver-8-2-0-libs.zip
- Extract the contents of the zip file to C:\gdal\gdal-3.9.1
- Download and install https://jmeubank.github.io/tdm-gcc/download/
go env -w "CC=gcc"
-
go build
Compatibility
This software has been tested most recently on Windows 10 and MacOS 15 with GDAL version 3.9.1.
Examples
Status (13/11/2024)
The majority of GDAL functionality exposed by the C API is available, as well as much of the OGR API.
Most functionality is not covered by tests or benchmarks.