[postgis-devel] Re: Patch for PostGis Envelope Bug
Charlie Savage
cfis at savagexi.com
Fri Sep 21 14:05:54 PDT 2007
And here is an example of its use:
select asText(envelope('POINT(10 10)'::geometry)),
asText(envelope('MULTIPOINT((10 10))'::geometry)),
asText(envelope('MULTIPOINT((10 10), (20 20))'::geometry)),
asText(envelope('LINESTRING(10 10, 50 50)'::geometry)),
asText(envelope('MULTILINESTRING((10 10, 50 50))'::geometry)),
asText(envelope('MULTILINESTRING((10 10, 50 50), (20 20, 70
70))'::geometry)),
asText(envelope('POLYGON((10 10, 50 50, 30 30, 20 20, 10
10))'::geometry))
"POINT(10 10)";
"POINT(10 10)";
"POLYGON((10 10,10 20,20 20,20 10,10 10))";
"LINESTRING(10 10,50 50)";
"LINESTRING(10 10,50 50)";
"POLYGON((10 10,10 70,70 70,70 10,10 10))";
"POLYGON((10 10,10 50,50 50,50 10,10 10))"
Charlie
Charlie Savage wrote:
> Hi Paul,
>
> Paul Ramsey wrote:
>> Applied to trunk. I don't see any way it can do harm.
>
> Here is patch to the patch (thus it applies against the trunk).
>
> It adds in support for returning a LineString if envelope is called on a
> line string (thus making this similar to the bbox to geom conversion
> routines).
>
> Also, it fixes a bug I introduced in the last version (not checking to
> see if the deserialized geom should be freed).
>
> Thanks,
>
> Charlie
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20070921/075b7a64/attachment.bin>
More information about the postgis-devel
mailing list