Is there any other function equivalent to the line_interpolate_point(the_geom,
0.5) to find the midpoint of a MULTILINESTRING?

the line_interpolate_point works only with LINESTRINGS.

- Pradeep B V
www.btis.in


On 6/21/07, Rodrigo Martín LÓPEZ GREGORIO <
[EMAIL PROTECTED]> wrote:

Hi Matt.

I think what you want may be:

line_interpolate_point(the_geom,0.5)

(or ST_line_interpolate_point(the_geom,0.5) depending on your Postgis
version)

where the_geom is a linestring and 0.5 means half of the total 2d length
of the linestring.

You can reed more details in the documentation:

http://postgis.refractions.net/docs/ch06.html#line_interpolate_point

Rodrigo

On 6/21/07, Matt Doughty < [EMAIL PROTECTED]> wrote:
>
>  Hi List,
>
>
>
> Is there a function in PostGIS that finds the midpoint of a line?
>
>
>
> Matt
>
>
>
>
>
>
>
> Matt Doughty
>
>   GEOGRAM A S.L.
>
> Tel.:  +34 945 13 13 72    652 77 14 15
>
> Fax: +34 945 23 03 40
>
> www.geograma.com
>
>
>
>
>
> _______________________________________________
> postgis-users mailing list
> [email protected]
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>

_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users


<<inline: image001.jpg>>

_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to