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 <[email protected]>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 <[email protected]>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 >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/gdal-dev >> > > > > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > [email protected] > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Software Developer >
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
