Geoscripting - spatial analysis - find shape inside shape

Along a sewer line are to be compiled servitudes. For this purpose are created for each parcel shapes and those connected to a database. Other shapes on the same parcel concern the temporary occupation. In order to process additional data that I need to find each corresponding shape (shape inside outer shape). Any attempt to solve with a GeoScript  spatial analysis (NEAR, NEAREST, INSIDE,OVERLAP) have failed. Either Bentley Map crashes or there are the wrong shapes found.

Does anyone have a solution

Detail:

Geoscript to Test:

*Areas inside a shape (with a tolerance) are searched.

DEFINE SCRIPT searchInsideAreas
  SETUP type Area
  VALIDATE
    message "Area size: " area
    co = 3
    numberFound = numberFound + 1
    EXPORT numberFound            // Save the number
  END
END

*Syntax: EXECUTE script INSIDE [tolerance]
*Handles all elements that are inside a closed area. If you do not specify a tolerance, the elements must be
*completely inside the shape and cannot touch the boundary of the area.
*If you specify a tolerance, elements that are inside the closed area can be partly outside the area
*but no more than the specified tolerance.
*		execute innershapes inside  0.00000000001

DEFINE SCRIPT searchShape
  SETUP file    ACTIVE
  SETUP type    AREA

  VALIDATE
    numberFound = 0
    execute searchInsideAreas OVERLAP TOL
    If (numberFound > 0)            // Check whether any area is found
       MESSAGE "Number of areas in shape: " numberFound " - Area: " area
    ELSE
       MESSAGE "No areas found in shape"
    END
  END
END

TOL= -0.40
MESSAGE "============================="
MESSAGE tol
EXECUTE searchShape


Parents Reply Children
No Data