libsim Versione 7.2.4
|
◆ arrayof_georef_coord_array_packarray()
Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents. The value of this::overalloc remains unchanged. After the call to the method, the object can continue to be used, extended and shortened as before. If the object is empty the array is allocated to zero length.
Definizione alla linea 662 del file georef_coord_class.F90. 663
664inside = .false.
665IF (.NOT.c_e(this)) RETURN
666IF (.NOT.ALLOCATED(poly%coord)) RETURN
667! if outside bounding box stop here
668IF (poly%bbox_updated) THEN
669 IF (.NOT.georef_coord_inside_rectang(this, poly%bbox(1), poly%bbox(2))) RETURN
670ENDIF
671
672IF (ALLOCATED(poly%parts)) THEN
673 DO i = 1, SIZE(poly%parts)-1
674 inside = inside .NEQV. pointinpoly(this%x, this%y, &
|