[Gdal-dev] Using the warp api
Matt Lynch
matt at terraEngine.com
Thu Aug 28 17:14:23 EDT 2003
Hi Frank,
You nailed it. I forgot to close hOutDataset.
Thanks!
Matt
-----Original Message-----
From: gdal-dev-admin at remotesensing.org
[mailto:gdal-dev-admin at remotesensing.org] On Behalf Of Frank Warmerdam
Sent: Thursday, August 28, 2003 2:50 PM
To: gdal-dev at remotesensing.org
Subject: Re: [Gdal-dev] Using the warp api
Matt Lynch wrote:
> Hi,
>
> I have been working my way through the warp api tutorial
> (http://www.remotesensing.org/gdal/warptut.html), but have run into
> trouble.
>
> My program takes an image and reprojects it to a new file out.tif.
> When I run it, I don't get any errors. However, out.tif is
> essentially black, with a few lines. If my description of the output
> is not sufficient, I can email the file out.tif to you.
>
> Any help would be most appreciated.
Matt,
The code mostly looks OK, though it is a bit hard to tell since there is
a fair amount going on and that could be going wrong. One fairly
serious thing that I didn't see was a GDALClose() for hOutDataset. This
might well account for some of the problems if not all.
If fixing that doesn't help, then I would suggest you invoke the
transformer you passed to the warp algorithm to make sure that values
are being mapped sensibly.
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
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 8/4/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 8/4/2003
More information about the Gdal-dev
mailing list