[Gdal-dev] GRIB Driver status

Andrea Battisti battisti at actgate.com
Mon May 7 10:14:56 EDT 2007


> Find file gridtemplates.h (in folder g2clib-1.0.4) and replace it with 
> the one attached to this e-mail. Then rebuild GDAL.
>
> According to Arthur Taylor, the problem is that in some of the 
> templates defined in this file, the decoder was instructed to decode 
> an unsigned integer, while in fact it should decode it as a signed 
> integer.
>
> Please confirm that this solves the problem. Then I will upload this 
> to the GDAL/GRIB SVN repository.
>
Bas,

I tried replacing gridtemplates.h with the new one you provided and then 
I recompiled GDAL, but the error I was having is the same as before.

Just to speak about the same data... If I run gdalinfo on this file: 
http://weather.noaa.gov/pub/SL.us008001/ST.opnl/DF.gr2/DC.ndfd/AR.neast/VP.001-003/ds.wspd.bin

I get the following:

ERROR 6: Failed to initialize PROJ.4 with `+proj=lcc +lat_1=0 +lat_2=0 
+lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +a=6371200 +b=6371200 +units=m +no_defs '.
Driver: GRIB/GRIdded Binary (.grb)
Size is 187, 229
Coordinate System is:
PROJCS["unnamed",
    GEOGCS["Coordinate System imported from GRIB file",
        DATUM["unknown",
            SPHEROID["Sphere",6371200,0]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["Lambert_Conformal_Conic_2SP"],
    PARAMETER["standard_parallel_1",0],
    PARAMETER["standard_parallel_2",0],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",0],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0]]
Origin = (0.000000000000000,0.000000000000000)
Pixel Size = (5079.405999999999900,-5079.405999999999900)
Corner Coordinates:
Upper Left  (   0.0000000,   0.0000000)
Lower Left  (       0.000,-1163183.974)
Upper Right (  949848.922,       0.000)
Lower Right (  949848.922,-1163183.974)
Center      (  474924.461, -581591.987)
Band 1 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 2 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 3 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 4 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 5 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 6 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 7 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 8 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 9 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 10 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 11 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 12 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 13 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 14 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 15 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 16 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 17 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 18 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 19 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
Band 20 Block=187x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"


As a side note I just noticed that when building GDAL I got the 
following linker warnings:

Creating library gdal_i.lib and object gdal_i.exp
weather.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
tdlpack.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
specunpack.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
specpack.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
simunpack.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
simpack.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
seekgb.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
scan.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
reduce.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
rdieee.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
pdstemplates.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
pack_gp.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
myutil.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
myerror.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
myassert.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
mkieee.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
misspack.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
metaprint.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
metaparse.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
metaname.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
memorydatasource.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
memendian.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
inventory.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
int_power.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
gridtemplates.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
grib2api.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
grib1tab.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
getpoly.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
getdim.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
gbits.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_unpack7.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_unpack6.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_unpack5.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_unpack4.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_unpack3.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_unpack2.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_unpack1.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_miss.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_info.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_gribend.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_getfld.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_free.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_create.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_addlocal.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_addgrid.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
g2_addfield.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
fileendian.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
filedatasource.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
engribapi.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
drstemplates.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
degrib2.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
degrib1.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
comunpack.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
compack.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
cmplxpack.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info
clock.obj : warning LNK4204: 
'E:\act_libs\gdal-svn\src\gdal-svn-20070502\gdal.pdb' is missing 
debugging information for referencing module; linking object as if no 
debug info

They seem to be related to the grib driver, could this be related to the 
error I have?


Thanks in advance...
Best regards,

-- 
Andrea Battisti, ACT Corp.




More information about the Gdal-dev mailing list