Create Objects from XML File |
|
|
Dialog Create Objects from XML File
The XML file contains information about the characteristics of the forest quarter, information about forest inventory units, information about logging sites, a diagram of the forest quarter, and a description of the location of the forest quarter boundary. The results of reading the information are plotted on a digital map in SITX format. The map must be created using the digital classifier forestry.v2.rsc. The type of map created is a large-scale plan, except for contours that have coordinate system codes wgs84Epsg3857, wgs84Epsg4087, or wgs84Epsg4326. For such codes, the map parameters are determined by the Epsg code. The coordinate system code is recorded in the semantic characteristic Coordinate System. During operation, the procedure reads the XML file to obtain attributes and coordinates of objects. The obtained information is used to plot new and update existing objects on the map. All objects are created with the name "Forest Quarter" and code 7150030. The sequential number of the contour, if the object is multi-contour, is recorded in the semantic characteristic Account Number of the Part (USRRE). Information about the characteristics of the forest quarter, information about forest inventory units included in the forest quarter, information about logging sites located within the boundary of the forest quarter are recorded in the semantics specified in the table.
When updating the map with information from XML files, the following situations arise: • there is no object on the map with the identification semantic "Registration Number of Forest Quarter" — new object; • there is an object on the map with the identification semantic "Registration Number of Forest Quarter" — existing object.
Three variants of source data processing modes are used to update the map: • add; • skip; • replace.
In add mode, the program does not check for existing objects, but simply adds all objects from the XML file. In skip mode, the program checks for existing objects. If an existing object is found, it is not changed. That is, only new cadastral objects are added to the map. In replace mode, the program checks for existing objects and updates information about them with data from the XML file. |