The previous article Supermap iServer Java 6 Dynamic Segmentation overview introduces some concepts of Dynamic Segmentation: Event tables, events, route tables, scale values, etc, the following describes how to use the routing pro to clean the data such as the raw data, generate a route dataset, create an event table, and generate data in the event table space.
1. Clean the dot line data
This step is to prepare the point-to-line data for Generating Route data. There are two basic requirements for data:
A. The line is a simple line without complex line data.
B. There is a routing field in the line data. This field must be numeric and can be marked with SMID. If it is a line length or line field, the default value is SMID. If it is a line reference point scale, you can adjust it by yourself.
C. If it is a line reference point scale, the dot scale data should be as important as possible. The data is online or the gap is not too large, and the dot and the line must have a common route field value.
2. Generate route data
Route data is mainly generated by the line in routing pro. You can set the line length, the starting point and ending point scale, and the point data scale based on the line length, for other details, see parameters such as scale factor and scale offset factor, such as-1.
Figure-1 generate a route Dataset
Draw a few lines and generate a route dataset with the line length.
Figure-2-line Dataset
Operation Method: "analysis-Dynamic Segmentation-point/line dataset-> route dataset", set parameters-1 to generate a route dataset.
3. Create an event table
Create a vertex event table with two main fields: routeid indicates that the event occurred on that line, and locate indicates the mileage of the event.
Figure-3-point event table
Then add an event, such as line 1 with a mileage of 22. Each record corresponds to an event.
4. Generate spatial data from the event table
The event point has been generated in step 3. How can we convert it into a point on the map and quickly locate it? This requires the event table to generate space data.
Figure-4 set the event table
Operation Method: "analysis-Dynamic Segmentation-set event table", parameter settings-4 generate route dataset. Note that the routing label fields of the event table and route data correspond to each other's routeid, and the point Event Scale Field is locate.
Figure-5 event points on the map
Note: Because the route data set is generated based on the length, a field named routeid is generated and the type is long integer, so the long integer is also selected when you create an event table.
The process described above illustrates a simple process of dynamic segmentation from steps such as cleaning point-line data, generating route datasets, creating event tables, and generating space data from event tables.ArticleWill be discussed in detail