libsim  Versione7.2.1

◆ georef_coord_inside()

logical function georef_coord_inside ( type(georef_coord), intent(in)  this,
type(georef_coord_array), intent(in)  poly 
)

Determines whether the point this lies inside the polygon poly.

The polygon is forced to be closed if it is not already the case, and there is no check about the topology of poly to really be of polygon type. It works also with polygons in parts (as from shapefile specification) defining either multiple polygons or polygons with holes.

The method used consists in counting the number of intersections as indicated in comp.graphics.algorithms FAQ (http://www.faqs.org/faqs/graphics/algorithms-faq/) or in http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html.

Parametri
[in]thisoggetto di cui determinare la posizione
[in]polypoligono contenitore

Definizione alla linea 1200 del file georef_coord_class.F90.


Generated with Doxygen.