Try ST_Perimeter() for areal geometries.<br><br>Fred<br><br><br><div class="gmail_quote">On Fri, Apr 23, 2010 at 6:45 PM, Andrea Peri 2007 <span dir="ltr"><<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
using this polygon:<br>
MULTIPOLYGON(((1 1, 2 3, 10 10, 1 1)))<br>
<br>
The Length return is zero.<br>
<br>
Perhaps I'm forget something ?<br>
<br>
This is my simply sql code.<br>
<br>
create table _uno (id serial primary key);<br>
SELECT AddGeometryColumn('_uno', 'geom', 3003, 'MULTIPOLYGON', 2);<br>
insert into _uno (geom) values (ST_GeomFromText('MULTIPOLYGON(((1 1, 2 3, 10 10, 1 1)))',3003));<br>
select st_length(geom) from _uno<br>
<br>
-------<br>
0<br>
<br>
I'm using Postgres 8.4.3 - Postgis 1.5.1 on windows 7 - 64 bit.<br>
<br>
Thx,<br>
<br>
Andrea Peri.<br>
<br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br>