[postgis-tickets] [PostGIS] #2726: [raster]: POSTGIS_GDAL_ENABLED_DRIVERS not picking up all drivers listed

PostGIS trac at osgeo.org
Fri May 9 00:45:28 PDT 2014


#2726: [raster]: POSTGIS_GDAL_ENABLED_DRIVERS not picking up all drivers listed
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  dustymugs    
     Type:  defect   |      Status:  new          
 Priority:  blocker  |   Milestone:  PostGIS 2.1.3
Component:  raster   |     Version:  2.1.x        
 Keywords:  windows  |  
---------------------+------------------------------------------------------

Comment(by robe):

 okay I was able to get past the crash by applying the cludge I described
 in #2729 and after that, this is what the debug notices look like after
 calling


 {{{
 SELECT short_name FROM ST_GDALDrivers();
 }}}
 When I have my env

 {{{
 @SET POSTGIS_GDAL_ENABLED_DRIVERS="EHdr GTiff PNG JPEG GIF XYZ"
 }}}

 Output looks like this:

 {{{
 GTiff
 PNG
 JPEG
 GIF

 }}}

 {{{
 NOTICE:  [rt_api.c:rt_raster_gdal_drivers:8997] rt_raster_gdal_driver:
 driver GTiff (0) supports CreateCopy() and VirtualIO()
 NOTICE:  [rt_api.c:rt_raster_gdal_drivers:8997] rt_raster_gdal_driver:
 driver PNG (1) supports CreateCopy() and VirtualIO()
 NOTICE:  [rt_api.c:rt_raster_gdal_drivers:8997] rt_raster_gdal_driver:
 driver JPEG (2) supports CreateCopy() and VirtualIO()
 NOTICE:  [rt_api.c:rt_raster_gdal_drivers:8997] rt_raster_gdal_driver:
 driver GIF (3) supports CreateCopy() and VirtualIO()
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11705] 4 drivers returned
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11745] Result 0
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11754] Result 0, Index 0
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11755] Result 0, Short Name GTiff
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11756] Result 0, Full Name GeoTIFF
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11745] Result 1
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11754] Result 1, Index 1
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11755] Result 1, Short Name PNG
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11756] Result 1, Full Name
 Portable Network Graphics
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11745] Result 2
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11754] Result 2, Index 2
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11755] Result 2, Short Name JPEG
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11756] Result 2, Full Name JPEG
 JFIF
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11745] Result 3
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11754] Result 3, Index 3
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11755] Result 3, Short Name GIF
 NOTICE:  [rt_pg.c:RASTER_getGDALDrivers:11756] Result 3, Full Name
 Graphics Interchange Format (.gif)

 }}}

 If I run

 {{{
 SELECT postgis_raster_lib_version();
 }}}

 I get:

 {{{
 2.1.3dev r12521
 }}}


 {{{
 NOTICE:  [rt_pg.c:rtpg_assignHookGDALEnabledDrivers:113] enabled_drivers =
 "EHdr GTiff PNG JPEG GIF XYZ"
 NOTICE:  [rt_pg.c:rtpg_assignHookGDALEnabledDrivers:161] driver count =
 102
 NOTICE:  [rt_pg.c:rtpg_assignHookGDALEnabledDrivers:216] gdal_skip = VRT
 NITF RPFTOC ECRGTOC HFA SAR_CEOS CEOS JAXAPALSAR GFF ELAS AIG AAIGrid
 GRASSASCIIGrid SDTS DTED MEM JDEM BIGGIF ESAT BSB XPM BMP DIMAP AirSAR RS2
 PCIDSK PCRaster ILWIS SGI SRTMHGT Leveller Terragen ISIS3 ISIS2 PDS TIL
 ERS L1B FIT GRIB RMF MSGN RST INGR GSAG GSBG GS7BG COSAR TSX COASP R MAP
 PNM DOQ1 DOQ2 ENVI EHdr GenBin PAux MFF MFF2 FujiBAS GSC FAST BT LAN CPG
 IDA NDF EIR DIPEx LCP GTX LOSLAS NTv2 CTable2 ACE2 SNODAS ARG RIK USGSDEM
 GXF NWT_GRD NWT_GRC ADRG SRP BLX SAGA KMLSUPEROVERLAY XYZ HF2 PDF OZI CTG
 E00GRID ZMap NGSGEOID IRIS
 NOTICE:  [rt_pg.c:rtpg_assignHookGDALEnabledDrivers:225] GDAL_SKIP = VRT
 NITF RPFTOC ECRGTOC HFA SAR_CEOS CEOS JAXAPALSAR GFF ELAS AIG AAIGrid
 GRASSASCIIGrid SDTS DTED MEM JDEM BIGGIF ESAT BSB XPM BMP DIMAP AirSAR RS2
 PCIDSK PCRaster ILWIS SGI SRTMHGT Leveller Terragen ISIS3 ISIS2 PDS TIL
 ERS L1B FIT GRIB RMF MSGN RST INGR GSAG GSBG GS7BG COSAR TSX COASP R MAP
 PNM DOQ1 DOQ2 ENVI EHdr GenBin PAux MFF MFF2 FujiBAS GSC FAST BT LAN CPG
 IDA NDF EIR DIPEx LCP GTX LOSLAS NTv2 CTable2 ACE2 SNODAS ARG RIK USGSDEM
 GXF NWT_GRD NWT_GRC ADRG SRP BLX SAGA KMLSUPEROVERLAY XYZ HF2 PDF OZI CTG
 E00GRID ZMap NGSGEOID IRIS

 }}}

 I see that XYZ and EHDr are in the GDAL_SKIP output.  How the heck did
 they get there?
 I presume that is why they are not coming out as my available drivers or
 is GDAL_SKIP + GDAL_ENABLED always = SUM(ALL drivers you have)

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2726#comment:6>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list