<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi Everyone,<br> 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? <br><br> Thank you very much in advance.<br><br>With best regards.<br>~Belaid.<br>> Date: Wed, 29 Jul 2009 16:35:16 -0400<br>> From: warmerdam@pobox.com<br>> To: belaid_moa@hotmail.com<br>> CC: gdal-dev@lists.osgeo.org<br>> Subject: Re: [gdal-dev] JPEG format - TestCapability<br>> <br>> Belaid MOA wrote:<br>> > Thank you all for your reply.<br>> > <br>> > Somehow I could not get TestCapability to work. I get the compilation <br>> > error: "class GDALDriver has no member named TestCapability". According <br>> > to the gdal_priv.h and GDAL Doc, the GDALDriver class does not have <br>> > TestCapability function.<br>> > Am I missing something?<br>> <br>> Belaid,<br>> <br>> TestCapability() is actually an OGR method. In GDAL we test for particular<br>> capability related metadata items. In GDAL you could test for the Create()<br>> method being supported with the following:<br>> <br>> if( GDALGetMetadataItem( hDriver, GDAL_DCAP_CREATE, NULL ) != NULL )<br>> ... we have Create support ...<br>> <br>> Best regards,<br>> -- <br>> ---------------------------------------+--------------------------------------<br>> I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com<br>> light and sound - activate the windows | http://pobox.com/~warmerdam<br>> and watch the world go round - Rush | Geospatial Programmer for Rent<br>> <br><br /><hr />Stay in the loop and chat with friends, right from your inbox! <a href='http://go.microsoft.com/?linkid=9671349' target='_new'>Learn how!</a></body>
</html>