[postgis-users] Polygon from a set of points

Leonardo Mateo leonardomateo at gmail.com
Tue Jun 12 12:09:09 PDT 2007


Hi guys, I need to build a polygon from a set of dynamic points. By
dynamic I mean that I will be getting sets of x,y coordinates which
will vary from one request to another. (it is a web application).
I was reading postgis docs, but I can't figure out how to do it. What
I tried was:
For each (x,y), make a point and then make a line as I know the order, i.e.:

MakeLine(MakePoint(-67.84208673890122, -31.89216012405324),
MakePoint(-67.84097873325344, -31.8878559482676))

Then, I tried to use MakePolygon(linestring, [linestring[]]) function,
but I can't figure out how to make the linestring[] with Accum as is
suggested by Postgis docs.

Any Clues?

Thanx a lot in advance.

-- 
Leonardo Mateo.
There's no place like ~



More information about the postgis-users mailing list