Try ST_Perimeter() for areal geometries. Fred
On Fri, Apr 23, 2010 at 6:45 PM, Andrea Peri 2007 <aperi2...@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@postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users >
_______________________________________________ postgis-users mailing list postgis-users@postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users