<div dir="ltr">Thanks for you awnser, Frank.<div>At the end, that conversion was not needed for me in my code.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 30, 2013 at 9:34 PM, Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hugo,<div><br></div><div>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.</div>
<div><br></div><div>Best regards,</div><div>Frank</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Aug 30, 2013 at 11:57 AM, Hugo Benicio <span dir="ltr"><<a href="mailto:hbobenicio@gmail.com" target="_blank">hbobenicio@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi guys! Easy question here:<div><br></div><div>I have an OGREnvelope describing a rectangle that I want to use as an OGRPolygon.</div>
<div>What is the correct way to do that? What I need is a OGRPolygon representing a rectangle from my OGREnvelope.</div>
<div>Do I have to manually assign point by point to it? (how?) Or there is some handy method I can use (union?).</div><div><br></div><div>Thanks in advance.</div><span><font color="#888888"><div>Hugo.</div>
</font></span></div>
<br></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br>
<br clear="all"><div><br></div>-- <br>---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Software Developer<br>
</font></span></div>
</blockquote></div><br></div>