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
Greetings,
What version of Bentley Map is being used? Could provide a copy of the design file depicted above which produces the crash or incorrect results?
Regards,
Jeff Bielefeld [Bentley]
Export.dgnI have tested with Bentley Map V8 XM - 08.09.04.147 or also Bentley Map Select Series 1 - 08.11.07.113
Attached dgn
Josef,
If I understand correctly, you want to copy database values from the inner blue (servitude) polygons to the outer yellow (temporary occupation area) polygons. If so you should be able to use the following approach:
If you could provide a sample database (e.g. Microsoft Access) which contains the tables and rows for the blue (servitude) and yellow (temporary occupation area) polygons for the "Export.dgn" file I could craft a solution for you.
Dear Jeff,
on the option to use the centroid I had already thought. But I have left them fall again, because at least the theoretical possibility exists that specially formed shapes, the centroid point of a neighboring elements can be closer than the correct element.
I will attach sample data.
With Regards,
Josef Raffeiner
ExampleDataFiles.zip
I appreciate the additional sample data, thank you. I've downloaded and will review next week to see if an appropriate solution can be developed.