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_colt...@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@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- Best regards, Chaitanya kumar CH. +91-9494447584 17.2416N 80.1426E
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev