[gdal-dev] [gdal-1.8.0] Get new Coordinates from Geotiff avoiding black area

Luiz Motta motta.luiz at gmail.com
Tue Jul 12 13:53:15 EDT 2011


Met,

I made a QGIS's plugin where calculate the 4 corners of polygon with
the real pixels inside. Maybe is useful for you.
The name of plugin is "Image Boundary", The source is Python and use
only GDAL library for process.

Best regards,
Luiz Motta

2011/7/12 Chaitanya kumar CH <chaitanya.ch at gmail.com>:
> Mett,
>
> If I understand correctly, you need to remove the black borders of geotiff
> and reset the corner coordinates. GDAL's nearblack utility[1] might be of
> help to you.
>
> [1]: http://www.gdal.org/nearblack.html
>
> On Tue, Jul 12, 2011 at 9:37 PM, mett <mettbest at gmail.com> wrote:
>>
>> Hello Everybody!
>> Does somebody know if there is a smart way to get the coordinates of a
>> GeoTiff of the real data (avoinding the black background)? I mean, I have
>> the geocoordinates of the image, but they are not referred to the "Real"
>> data of the image but just to its corners. I know that I can use gdalwarp
>> to
>> set trasparency of black area, but I think it is not suitable to re-set
>> the
>> coordinates.
>>
>> Thank you for any help!
>> Mett
>>
>> --
>> View this message in context:
>> http://osgeo-org.1803224.n2.nabble.com/gdal-1-8-0-Get-new-Coordinates-from-Geotiff-avoiding-black-area-tp6575681p6575681.html
>> Sent from the GDAL - Dev mailing list archive at Nabble.com.
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
> --
> Best regards,
> Chaitanya kumar CH.
>
> +91-9494447584
> 17.2416N 80.1426E
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>


More information about the gdal-dev mailing list