> new.lon := round(X(new.the_geom)::numeric,2); > new.lat := round(Y(new.the_geom)::numeric,2); This is simple if you're working with point data; but what if you're using any more complex data type, e.g. a line or a polygon? :-( Gino Lucrezi Penta Consulting Services Srl