[Gdal-dev] question about API tutorial

Tim Smith tlsmith_1999 at yahoo.com
Tue Jun 17 10:55:21 EDT 2003

Hello Frank,

I am working with gdal 1.1.8. I do not have an older
version of gdal files on the system at all.

I have fixed the compile error, it was a typo on my
part (getDescription vs Getdescription).
But I still have the problem with the getgeoTransform
at run time.

I can't sent a copy of the nitf I am using.  But they
are nitf 2.0, with a single image, the gdalinfo app
returns the driver, size, coordinate system, corner
coordinates, and a color table.  If there is something
specific I can look up about/in the nitf that would
help you determine the problem, just let me know. 

The code I am using is almost an exact copy of the
tutorial from the web page, with a few print
statements, and using the argv parameter to pass the
file name in.

Thanks Tim.
--- Frank Warmerdam <warmerdam at pobox.com> wrote:
> Tim Smith wrote:
> > Hello,
> > I have just begun working with GDAL, so this is
> > probably a simple mistake on my part.
> > I have compiled the c++ API tutorial, and run it
> > against a NITF file.  I have two questions:
> > 1.  The tutorial compile complains on this line:
> >    printf( "Driver: %s/%s\n",
> >             poDataset->GetDriver()->c(), 
> >            
> poDataset->GetDriver()->GetMetadataItem(
> > 
> > It tells me that "GetDescription" and
> > "GetMetadataItem" are not members of GDALDriver.
> Tim,
> What version of GDAL are you using?  The GDALDriver
> should
> have a GetMetadataItem() method if you are using a
> recent
> version (1.1.8 or later for instance).  Likewise for
> GetDescription().  Could you quote exact build
> errors?  Can
> you verify that the methods exist in gdal_priv.h? 
> Can you
> verify there are not any old copies of gdal_priv.h
> on your
> system that might be unexpectedly getting used?
> > 2.  If I comment out the above problem, and run
> the
> > program with a NITF file, GetGeoTransform return a
> GDAL is not able to work out coordinate
> geotransformation information
> for some NITF files.  If you can provide a smallish
> sample directly to me
> I could look into whether this is a bug, or the
> nature of the file.
> Best regards,
> -- 
> I set the clouds in motion - turn up   | Frank
> Warmerdam, warmerdam at pobox.com
> light and sound - activate the windows |
> http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial
> Programmer for Rent
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at remotesensing.org
> http://remotesensing.org/mailman/listinfo/gdal-dev

Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

More information about the Gdal-dev mailing list