[gdal-dev] Creating an OGRPolygon from an OGREnvelope
Frank Warmerdam
warmerdam at pobox.com
Fri Aug 30 17:34:17 PDT 2013
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/20130830/03d1ae1e/attachment.html>
More information about the gdal-dev
mailing list