[gdal-dev] Creating an OGRPolygon from an OGREnvelope

Hugo Benicio hbobenicio at gmail.com
Fri Sep 6 09:54:24 PDT 2013


Thanks for you awnser, Frank.
At the end, that conversion was not needed for me in my code.


On Fri, Aug 30, 2013 at 9:34 PM, Frank Warmerdam <warmerdam at pobox.com>wrote:

> Hugo,
>
> OGREnvelope is not treated as a first class geometry in OGR and you are
> pretty much stuck creating a polygon geometry point by point from the
> envelope values.  Kind of sucky, I know.
>
> Best regards,
> Frank
>
>
> On Fri, Aug 30, 2013 at 11:57 AM, Hugo Benicio <hbobenicio at gmail.com>wrote:
>
>> Hi guys! Easy question here:
>>
>> I have an OGREnvelope describing a rectangle that I want to use as an
>> OGRPolygon.
>> What is the correct way to do that? What I need is a OGRPolygon
>> representing a rectangle from my OGREnvelope.
>> Do I have to manually assign point by point to it? (how?) Or there is
>> some handy method I can use (union?).
>>
>> Thanks in advance.
>> Hugo.
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
>
>
> --
>
> ---------------------------------------+--------------------------------------
> 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 Software Developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130906/a5167bb9/attachment.html>


More information about the gdal-dev mailing list