[gdal-dev] Subsetting based on geo-coordinates.

Belaid MOA belaid_moa at hotmail.com
Wed Jul 29 19:38:06 EDT 2009


Hi Everyone,
 Sorry to bother again! I am looking for a cheap/dirty way of subsetting a GTiff image based on a rectangle specified in the geo-coordinates. Does GDAL has already something for that?   

 Thank you very much in advance.

With best regards.
~Belaid.
> Date: Wed, 29 Jul 2009 16:35:16 -0400
> From: warmerdam at pobox.com
> To: belaid_moa at hotmail.com
> CC: gdal-dev at lists.osgeo.org
> Subject: Re: [gdal-dev] JPEG format - TestCapability
> 
> Belaid MOA wrote:
> > Thank you all for your reply.
> >  
> > Somehow I could not get TestCapability to work.  I get the compilation 
> > error: "class GDALDriver has no member named TestCapability". According 
> > to the gdal_priv.h and GDAL Doc, the GDALDriver class does not have 
> > TestCapability function.
> > Am I missing something?
> 
> Belaid,
> 
> TestCapability() is actually an OGR method.  In GDAL we test for particular
> capability related metadata items. In GDAL you could test for the Create()
> method being supported with the following:
> 
>          if( GDALGetMetadataItem( hDriver, GDAL_DCAP_CREATE, NULL ) != NULL )
>              ... we have Create support ...
> 
> 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
> 

_________________________________________________________________
Stay in the loop and chat with friends, right from your inbox!
http://go.microsoft.com/?linkid=9671354
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090729/fcc2be90/attachment.html


More information about the gdal-dev mailing list