Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#2765 closed defect (worksforme)

[raster] Unable to find driver ESRI to unload from GDAL_SKIP environment variable

Reported by: strk Owned by: Bborie Park
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 strk, 10 years ago

It sounds like long names are used rather than short names.

comment:2 by Bborie Park, 10 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 strk, 10 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 Bborie Park, 10 years ago

Owner: changed from pramsey to Bborie Park

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 strk, 10 years ago

Cc: even.rouault@… 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:6 by Bborie Park, 10 years ago

Interesting. I'll try to reproduce once I update my GDAL.

comment:7 by rouault, 10 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 Bborie Park, 9 years ago

Resolution: worksforme
Status: newclosed

Closing as I can't reproduce this on GDAL 2.0 with r13487.

comment:9 by Bborie Park, 9 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
Note: See TracTickets for help on using tickets.