#2765 closed defect (worksforme)
[raster] Unable to find driver ESRI to unload from GDAL_SKIP environment variable
Reported by: | strk | Owned by: | dustymugs |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.2.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: | even.rouault@… |
Description
Traces from the first time raster library loads (PostGIS trunk):
2014-06-19 16:40:14.968 CEST psql 8784 strk strk LOG: statement: select st_asraster(st_point(0,0),1.0,-1.0); Warning 1: Unable to find driver ESRI to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver Shapefile to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver MapInfo to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver File to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver UK to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver .NTF to unload from GDAL_SKIP environment variable
This is with GDAL 2.0.0dev, released 2014/04/16
Change History (9)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
We only use short names. The ESRI is really "ESRI Shapefile" which IS the short name for the OGR shapefile driver. Are you specifying "ESRI Shapefile" in postgis.gdal_enabled_drivers GUC? For 2.0, we only look at those drivers with a raster component so no vector drivers are possible.
comment:3 by , 11 years ago
strk=# show postgis.gdal_enabled_drivers; ERROR: unrecognized configuration parameter "postgis.gdal_enabled_drivers"
There's no GUC so I think the code that lists all drivers and disables all is being used. In turn, that code is likely getting "ESRI Shapefile" as the name of one driver. How can I check with a commandline ?
comment:4 by , 11 years ago
Owner: | changed from | to
---|
A quick way to check is to call raster2pgsql -G
on that machine and see if ESRI Shapefile is being emitted. It shouldn't.
comment:5 by , 11 years ago
Cc: | added |
---|
[strk@cdb:~] raster2pgsql -G | grep ESRI ESRI .hdr Labelled ESRI Shapefile ESRI Personal GeoDatabase ESRI FileGDB
Full output: http://strk.keybit.net/tmp/raster2pgsql-G.stdout.txt
comment:7 by , 11 years ago
With 2.0, as GDAL_SKIP can now handle vector driver names as well, and that a few vector driver names include space, the separator for driver names should be comma (but still space in GDAL 1.X).
But as underlined by dustymugs, if you only iterate on drivers with a raster capability, those vector drivers shouldn't be listed at all
comment:8 by , 10 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Closing as I can't reproduce this on GDAL 2.0 with r13487.
comment:9 by , 10 years ago
Summary: | Unable to find driver ESRI to unload from GDAL_SKIP environment variable → [raster] Unable to find driver ESRI to unload from GDAL_SKIP environment variable |
---|
It sounds like long names are used rather than short names.