[gdal-dev] How to identify a point is belong to a polygon ?

Chaitanya kumar CH chaitanya.ch at gmail.com
Thu Jul 19 20:11:09 PDT 2012


Tai,

You can use OGR_G_Within()
OGR_G_WIthin(point,polygon) will return true if the point is within the
polygon.

You can access various other geometry functions from the OGRGeometry class.

http://www.gdal.org/ogr/ogr__api_8h.html#a80ba9e516ccae381ae7240cc9684eb72

On Fri, Jul 20, 2012 at 7:04 AM, taibc <taibc_coltech at yahoo.com> wrote:

> Hi everyone,
>
> Do you know how to identify whether a point (OGRPoint) is belong to a
> polygon (OGRPolygon) ? (the polygon covers the point)
>
> Thanks and regards,
>
> Tai
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/How-to-identify-a-point-is-belong-to-a-polygon-tp4989501.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120720/59a4ac35/attachment.html>


More information about the gdal-dev mailing list