[postgis-users] Point inside a polygon

Nicolas Ribot nicolas.ribot at gmail.com
Fri May 2 03:45:35 PDT 2014


Hi,

Use st_pointOnSurface (
http://postgis.net/docs/manual-2.1/ST_PointOnSurface.html)

Nicolas


On 2 May 2014 06:32, J.Alejandro Martinez Linares <islanis at infomed.sld.cu>wrote:

> Hi people, i need your help, i was using st_centroid to get a point that
> be inside a polygon butr st_centroid got a property  that is a problem to
> me, it returns a point that not always is inside the polygon, cause when
> the polygon has an irregular form, the point that st_centroid is outside
> the polygon, and i need a function that do a similar thing that st_centroid
> but i need that the point it returns always be inside the polygon, is there
> a function that do that?
>
> cheers.
>
> --
>
> Este mensaje le ha llegado mediante el servicio de correo electronico que
> ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
> Nacional de Salud. La persona que envia este correo asume el compromiso de
> usar el servicio a tales fines y cumplir con las regulaciones establecidas
>
> Infomed: http://www.sld.cu/
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20140502/60810126/attachment.html>


More information about the postgis-users mailing list