[postgis-users] MakeLine for geography coordinates

Sandro Santilli strk at keybit.net
Mon Apr 4 05:32:06 PDT 2011


On Mon, Apr 04, 2011 at 08:28:25AM -0400, Jochen Albrecht wrote:
>
> Could you please just edit this snippet?
[..]
>   ST_MakeLine(loc) AS line
[..]
> loc is of type geography.

To get a geometry line:

 ST_MakeLine(loc::geometry) as line

To get a geography line:

 ST_MakeLine(loc::geometry)::geography as line

--strk; 

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-users mailing list