The previous sections focus on the standardization of plotting. This section focuses on non-standardized plotting. The so-called non-standard plotting, simply put, is that there is no national or industrial standards of the map needs to be produced, such maps are mostly Thematic Map Layout. Maps that focus on geographic analysis do not generally focus on the layout of maps, because the presentation of map results is not completed by map professionals, but by other developers, therefore, the generation of such maps is not standardized. For example, many maps do not even have scales.
Non-standard plotting is more widely used than standard plotting, and more people are using it. In many fields, such as meteorology and ecology, long-term monitoring and plotting are required, while the Chart Specifications are not required. Simply put, the requirement is that the professional data can be superimposed and the images to be produced are nice-looking, most importantly, it is best to automate graph production. The requirement is simple, but it is difficult to start. Because it is a non-standard drawing, there is no basis for standards. Most people are at a loss, but they do not know how to configure or deploy images to meet the requirements. The general method is to create a template. The template is automatically applied to achieve the layout and automation of the drawing. In fact, this idea is also very simple, the simple reason is that in most cases, if the user is satisfied, based on this configuration template, no matter how the data changes, when the layout of my graph is set, automatic production is feasible. With the automation of data processing on the front end, the original form of automatic processing of the plotting template is displayed.
However, as a component designer, the requirements need to be abstracted to a higher degree. What we need to do is to grasp the essence of our needs. Experience tells us that there is no rule to follow, so we need to find the rule. In the process of non-standard drawing, the most important step is to develop typographical rules. The first step is to determine the objects involved in the layout. These typographical objects are, in simple words, the major elements of the drawing, the northern pin, the scale, and legends. There are two ways to analyze these objects: layout, layout, and style. Therefore, we need to figure out the relationship between these changes before design.
The style of an object is determined by humans. The style of the selected type is determined by the user's preferences. For example, the style of the person pointing to the north is very different from that of the American people, therefore, there are many types of styles in GIS software for users to choose from. These styles are easily controlled and operable.
The layout position of an object is the most critical in the non-standard drawing process and plays a decisive role. First, list the following basic drawing objects, the main graph area, the needle pointing to the north, the scale, the legend, and the graph name. With these five basic drawing objects, we start to classify them by importance. The most important part is the main graph area (the secondary graph area needs to be set in some graphs), followed by the North needle, scale, graph name, and legend. After the main graph area is laid out, other secondary drawing objects can be set in sequence. The layout of these secondary objects is scattered around the main graph area. Generally, the graph name is above the main graph area, the scale is at the bottom of the main graph area, and the legend can be left or right. With these hierarchies, we can further propose the concept of relative positioning. In fact, we can refer to the standard drawing to find that the Departments of secondary objects define the distance and position based on the main graph area. In the non-standard drawing process, we can also introduce this concept to describe the location.
As mentioned above, we want to explain how to make the non-standard drawing process operational and automate it. Take ArcGIS as an example. If every object can be clearly described, this is feasible. Let's start designing our typographical components. The first question of the design is where the drawing object comes from? Of course, it is created by yourself. Many people disagree here, even experienced GIS software engineers. In essence, all the drawing objects are element, and it is always easy to create elements. Why not design and create the elements by yourself? During the creation process, we can determine the style and layout of the objects. The creation of objects can naturally introduce the abstract factory mode. The second question of design is how to layout the main graph area? In the previous sections, I introduced how to design the main graph area during the standardization drawing process. The same is true here. We need to control the main graph area. Before talking about the control in the main graph area, there is a problem that will be ignored. How can we design the automation process? At the time of the Wenchuan earthquake, the USGS immediately provided a reference map for the description of the earthquake information after the earthquake. Of course, this would be hard to achieve if it was not an automated process. In the United States, in some large research institutions, ESRI is often a role of long-term participation. ESRI is responsible for long-term map production and maintenance. In order to facilitate maintenance, it is often customized, in our view, these processes are Automated Drawing (derived from plts products, etc ). Because it is not standardized, I will try my best to propose Human Factors in the map production process, automatic layout, automatic output, and automatic printing. The output has many ready-to-use interfaces, so printing won't work. If the map size is uncertain and you still need to adjust it by yourself, it is not easy. How can we remove these human factors? The most effective and simplest way of thinking is to control the main chart area based on the paper type, thus affecting the layout. Currently, the paper types include A5 to A0 series. That is to say, I only need to determine the typographical method under these six types of paper to meet my requirements.
Take earthquakes as an example. Generally, seismic data can be automatically obtained on the seismic network. If there is a large earthquake, we can immediately determine it. Assume that an earthquake has occurred in a region, and the intensity is very high. As a result, we need to automatically generate a special seismic map, the preparation program is used to generate seismic field data (thematic data) at the seismic occurrence location (longitude, latitude, and magnitude) using the seismic intensity algorithm. Based on the preset rendering algorithm, the seismic field is rendered hierarchically, the ing program determines the display range of the main chart area based on the range of the seismic field. If the paper type is selected, the algorithm selects the vertical or horizontal la s for the paper, other drawing objects are layout based on the relative position of the main graph area, and then the print program is called to automatically plot or output the data.
Component Design for non-standard plotting:
Some code for reference:
// --------------------- Set the A4 parameter paihr = regular-> put_pagestyle (esripageforma4); HR = ipnostdcartoenvironment-> put_pagetitle (ccombdstr (" A4 A4 A4 ")); // relative positioning hR = ipnostdcartolayoutmanager-> setpagetitleposition (esritopmidpoint, 0, 1.0); HR = ipnostdcartolayoutmanager-> setpagelegendposition (esritoprightcorner, 1.0,-1.0 ); hR = region-> setpagenortharrowposition (esribottomrightcorner,-1.5,-1.5); HR = ipnostdcartolayoutmanager-> setpagescaleposition (esribottommidpoint, 6,-1.5 ); // The scope of the main image area on the paper is 13.6x22 cm ienvelopeptr ipportraitenv (clsid_envelope); partition ratio (clsid_envelope); HR = ipportraitenv-> putcoords (1.2, 4.8, 14.8, 26.8); HR = iplandscapeenv-> putcoords (1.5, 3.3, 23.5, 16.9); HR = region-> setmainframesizeandposition (ipportraitenv, iplandscapeenv); inostdcartofactoryptr ipnostdcartofactory (region ); hR = ipnostdcartolayoutmanager-> updatelayout (ipnostdcartofactory );
The output result is a fictitious magnitude (the data source is the 4 million WGS84 national data publicly released by NGCC ):
If the tilt angle of the seismic field is greater than 45 degrees, the system automatically adjusts it to vertical layout: