[postgis-users] Polygon length zero

Fred Lehodey lehodey at gmail.com
Fri Apr 23 11:36:42 PDT 2010


Try ST_Perimeter() for areal geometries.

Fred


On Fri, Apr 23, 2010 at 6:45 PM, Andrea Peri 2007 <aperi2007 at gmail.com>wrote:

> Hi,
>
> using this polygon:
> MULTIPOLYGON(((1 1, 2 3, 10 10, 1 1)))
>
> The Length return is zero.
>
> Perhaps I'm forget something ?
>
> This is my simply sql code.
>
> create table _uno (id serial primary key);
> SELECT AddGeometryColumn('_uno', 'geom', 3003, 'MULTIPOLYGON', 2);
> insert into _uno (geom) values (ST_GeomFromText('MULTIPOLYGON(((1 1, 2 3,
> 10 10, 1 1)))',3003));
> select st_length(geom) from _uno
>
> -------
> 0
>
> I'm using Postgres 8.4.3 - Postgis 1.5.1 on windows 7 - 64 bit.
>
> Thx,
>
> Andrea Peri.
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100423/5d411f3f/attachment.html>


More information about the postgis-users mailing list