mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
More details
This commit is contained in:
parent
ac715ee853
commit
9f128bc0da
20
docs/faq.rst
20
docs/faq.rst
@ -25,14 +25,22 @@ your shell and running a command like ogrinfo:
|
|||||||
ERROR 4: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.
|
ERROR 4: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.
|
||||||
|
|
||||||
If you're using GDAL software installed by a package management system like apt
|
If you're using GDAL software installed by a package management system like apt
|
||||||
or yum, or Homebrew, you don't need to set the GDAL_DATA environment variable.
|
or yum, or Homebrew, or if you've built and installed it using ``configure;
|
||||||
|
make; make install``, you don't need to set the GDAL_DATA environment variable.
|
||||||
That software has the right directory path built in. If you see this error,
|
That software has the right directory path built in. If you see this error,
|
||||||
it's likely a sign that GDAL_DATA is set to a bogus value. Unset GDAL_DATA if
|
it's likely a sign that GDAL_DATA is set to a bogus value. Unset GDAL_DATA if
|
||||||
it exists and see if that eliminates the error condition and the message.
|
it exists and see if that eliminates the error condition and the message.
|
||||||
|
|
||||||
If you're installing GDAL into a Conda environment or into a Python virtual
|
If you're installing GDAL into a Conda environment or into a Python virtual
|
||||||
environment by running `pip install rasterio` (remember that the Rasterio
|
environment (remember that the Rasterio wheels on the Python Package Index
|
||||||
wheels on the Python Package Index include a GDAL library and its data files)
|
include a GDAL library and its data files) the situation is different. The
|
||||||
the situation is different. The proper data directory path is not built in and
|
proper data directory path is not built in and GDAL_DATA must be set.
|
||||||
GDAL_DATA must be set. Rasterio 1.0.18, whether from PyPI or Conda, will set
|
|
||||||
the GDAL_DATA environment variable to the correct location when it is imported.
|
Rasterio 1.0.18, whether from PyPI or Conda, will set the GDAL_DATA environment
|
||||||
|
variable to the correct location when it is imported, but only if it has not
|
||||||
|
already been set. Previous versions of Rasterio tried to avoid patching the
|
||||||
|
environment of the process, but there's really no better option.
|
||||||
|
|
||||||
|
Get the latest version of Rasterio, 1.0.18, and use it without setting
|
||||||
|
GDAL_DATA. You shouldn't experience the error condition or the message about
|
||||||
|
it.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user