| 190 | |
| 191 | == What is GDAL_DATA environment variable? == |
| 192 | |
| 193 | GDAL_DATA is an [http://en.wikipedia.org/wiki/Environment_variable environment variable] used to specify location of [source:trunk/gdal/data supporting files] used by GDAL library as well as GDAL and OGR utilities. For instance, in order for OGR and GDAL to properly evaluate EPSG codes you need to have the EPSG support files (so called dictionaries, mostly in CSV format), like [source:trunk/gdal/data/gcs.csv gcs.csv] and [source:trunk/gdal/data/pcs.csv pcs.csv], found in the directory pointed by GDAL_DATA variable. |
| 194 | |
| 195 | == How to set GDAL_DATA variable? == |
| 196 | |
| 197 | On Linux, assuming [source:trunk/gdal/data gdal/data] supporting files are installed under ''/usr/local/share/gdal/data'' and Bash-like shell, export the variable as follows: |
| 198 | {{{ |
| 199 | $ export GDAL_DATA=/usr/local/share/gdal/data |
| 200 | }}} |
| 201 | Refer to manual of your shell to learn how to set the GDAL_DATA variable permanently. |
| 202 | |
| 203 | On Windows, assuming supporting files are located under ''C:\GDAL\data'', in order to set the variable in current console session: |
| 204 | {{{ |
| 205 | C:\> set GDAL_DATA=C:\GDAL\data |
| 206 | }}} |
| 207 | It's also possible to set GDAL_DATA variable permanently, as system-wide variable, so it's always available. Follow the instructions of [http://support.microsoft.com/default.aspx/kb/310519 How To Manage Environment Variable] guide. |