Re: [gdal-dev] Creating an OGRPolygon from an OGREnvelope

2013-09-06 Thread Hugo Benicio
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 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 f

Re: [gdal-dev] Creating an OGRPolygon from an OGREnvelope

2013-08-30 Thread Frank Warmerdam
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 wrote: > Hi guys! Easy question here:

[gdal-dev] Creating an OGRPolygon from an OGREnvelope

2013-08-30 Thread Hugo Benicio
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 ha