[Gdal-dev] Modis L1B and gdal_translate 1.1.9

Brent Fraser bfraser at geoanalytic.com
Wed Dec 3 11:13:04 EST 2003


Andrey,

  Yes, it works, thanks!

FYI, The daily snapshot does not compile due to problems with OGR:

----------------------------------------------------------------------------
------------------
ogr_attrind.cpp
        cl /nologo /Zi
/Fd..\..\..\gdal.pdb -I..\..\..\port -I..\..\..\ogr -I..\..\..\gcore -I.. -I
..\..     -DODBC_ENABLED /c ogr_miattrind.cpp
ogr_miattrind.cpp
ogr_miattrind.cpp(620) : error C2259: 'OGRMILayerAttrIndex' : cannot
instantiate abstract class due to following members:
        ogr_miattrind.cpp(94) : see declaration of 'OGRMILayerAttrIndex'
ogr_miattrind.cpp(620) : warning C4259: 'int __thiscall
OGRLayerAttrIndex::AddToIndex(class OGRFeature *)' : pure virtual function
was not defined
        ..\ogr_attrind.h(94) : see declaration of 'AddToIndex'
ogr_miattrind.cpp(620) : error C2259: 'OGRMILayerAttrIndex' : cannot
instantiate abstract class due to following members:
        ogr_miattrind.cpp(94) : see declaration of 'OGRMILayerAttrIndex'
ogr_miattrind.cpp(620) : warning C4259: 'int __thiscall
OGRLayerAttrIndex::AddToIndex(class OGRFeature *)' : pure virtual function
was not defined
        ..\ogr_attrind.h(94) : see declaration of 'AddToIndex'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'for' : return code '0x1'
Stop.
----------------------------------------------------------------------------
------------------

And GDAL will not link without OGR (I commented out the OGR references in
contour.cpp to get it to link):


----------------------------------------------------------------------------
------------------
   Creating library gdal_i.lib and object gdal_i.exp
contour.obj : error LNK2001: unresolved external symbol _OGR_L_CreateFeature
contour.obj : error LNK2001: unresolved external symbol _OGR_L_GetLayerDefn
gdal11.dll : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
----------------------------------------------------------------------------
------------------

Brent

----- Original Message -----
From: "Andrey Kiselev" <dron at ak4719.spb.edu>
To: "GDAL Dev" <gdal-dev at remotesensing.org>
Sent: Wednesday, December 03, 2003 1:36 AM
Subject: Re: [Gdal-dev] Modis L1B and gdal_translate 1.1.9


> >   I'm trying to get gdal_translate (v1.1.9) to convert a Modis image:
> >
ftp://g0dps01u.ecs.nasa.gov/MODIS_Terra_Radiances_Geolocation/MOD02QKM.004/2
003.12.02//MOD02QKM.A2003336.0720.004.2003336144538.hdf
> >
> > to a geotiff.  v1.1.9 crashes, but v1.1.8 successfully converts it
>
> Brent,
>
> Before I shall download and test your file could you try it with the
> latest dayly snapshot of the GDAL?
>
> --
> Andrey V. Kiselev
> Home phone:  +7 812 5274898  ICQ# 26871517
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at remotesensing.org
> http://remotesensing.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list