GDAL_DATA is evaluated as the argument of fopen(), so if it is relative,
you need to be a current directory consistent with the relative path for
it to work. You'd generally want ot use an absolute path for GDAL_DATA
I see that in pytest.ini a commented line with #GDAL_DATA =
../gdal/data.
On Mon, Apr 26, 2021 at 10:44 AM Even Rouault
wrote:
> DGN writing indeeds need GDAL_DATA to be set and point to the directory
> that contains seed_2d.dgn
>
Is it the case that GDAL_DATA is relative to the directory containing the
test rather than the test driver directory (autotest)? Changing a
DGN writing indeeds need GDAL_DATA to be set and point to the directory
that contains seed_2d.dgn
You can source scripts/setdevenv.sh to set the appropriate environment
variables for a dev env.
Le 26/04/2021 à 16:38, Andrew Bell a écrit :
On Mon, Apr 26, 2021 at 10:18 AM Even Rouault
On Mon, Apr 26, 2021 at 10:18 AM Even Rouault
wrote:
> Andrew,
>
> you don't need to add autotest/ogr to GDAL_DATA.
>
> Normally this is done in autotest/pytest.ini
>
Thanks. I missed that.
> I suspect you don't have the pytest-env python module installed.
>
> You should probably just run:
>
>
Andrew,
you don't need to add autotest/ogr to GDAL_DATA.
ARCGEN is now a deprecated driver and must be explictly enabled with
GDAL_ENABLE_DEPRECATED_DRIVER_ARCGEN=YES env variable.
Normally this is done in autotest/pytest.ini
I suspect you don't have the pytest-env python module installed.
Hi,
I'm trying to run autotests and am failing to find data. For instance, I
get the error:
def test_ogr_arcgen_points():
ds = ogr.Open('data/arcgen/points.gen')
> assert ds is not None, 'cannot open dataset'
E AssertionError: cannot open dataset
E assert None is