Create Objects from XML File

Print Previous page Top page Next page

7236 The mode is designed for importing data from an XML file of the state forest registry according to the schema "Extract from the state forest registry about a forest quarter" - stateForestRegisterExtractForestQuarter_v0.2.0.xsd.

 

Скрин 542

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.

 

No.

Characteristic Name

Semantic Key

Type

Note

1

Coordinate System

REFERENCE

 

 

2

Account Number of the Part (USRRE)

PLOT_NUM

 

 

3

Registration Number of Forestry

NUM_Mu

text

 

4

Registration Number of District Forestry

NUM_Gir

text

 

5

Registration Number of Forest Quarter

NUM_KV

text

 

6

Name of the Forest Area (Forest Estate)

Ugir

text

 

7

Registration Number of Forest Inventory Unit

NUM_Sknr

text

repeatable

8

Number of Forest Inventory Unit in accordance with Forest Management Documentation

Sknr

 

repeatable

9

Registration Number of Logging Site

FACTORY_NUM

code

repeatable

10

Date of Assignment of Registration Number to Logging Site

FACTORY_DATE

text

repeatable

 

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.