CN116993857A - Thematic map preparation method and device, storage medium and electronic equipment - Google Patents

Thematic map preparation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116993857A
CN116993857A CN202311014115.1A CN202311014115A CN116993857A CN 116993857 A CN116993857 A CN 116993857A CN 202311014115 A CN202311014115 A CN 202311014115A CN 116993857 A CN116993857 A CN 116993857A
Authority
CN
China
Prior art keywords
attribute
color
map
legend
geographic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311014115.1A
Other languages
Chinese (zh)
Other versions
CN116993857B (en
Inventor
赵国辉
张耀南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Northwest Institute of Eco Environment and Resources of CAS
Original Assignee
Northwest Institute of Eco Environment and Resources of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Northwest Institute of Eco Environment and Resources of CAS filed Critical Northwest Institute of Eco Environment and Resources of CAS
Priority to CN202311014115.1A priority Critical patent/CN116993857B/en
Publication of CN116993857A publication Critical patent/CN116993857A/en
Application granted granted Critical
Publication of CN116993857B publication Critical patent/CN116993857B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Abstract

The application provides a thematic map preparation method, a thematic map preparation device, a storage medium and electronic equipment, wherein the thematic map preparation method comprises the following steps: preparing a map style master mask based on the oriented application field; generating metadata information corresponding to the map style master; the metadata information comprises a mapping relation between each geographic unit in the map style master and the corresponding initial color identifier, and also comprises position information of a legend in the map style master; processing the original input data to obtain attribute color identifiers of each geographic unit in the original input data; and replacing the initial color identification corresponding to each geographic unit in the map style master set by using the attribute color identification, and updating the legend to obtain the thematic map of the original input data when the original input data is oriented to the application field. The preparation method of the thematic map reduces repeated labor, ensures the drawing of the high-quality and high-standard thematic map, and has unique advantages in reliability, consistency, comparability, behavior and continuity.

Description

Thematic map preparation method and device, storage medium and electronic equipment
Technical Field
The application relates to the field of big data, in particular to a method and a device for preparing a thematic map, a storage medium and electronic equipment.
Background
In the background of big data age, data becomes basic strategic resource and plays an increasingly important role in various industries. However, the existing data materials have various types and complex structures, are generally scattered in different departments, institutions and individuals, and bring great inconvenience to data management and application, especially unstructured data. How to effectively develop joint analysis and fusion calculation to make the data resources exert the maximum benefit becomes the difficult problem which needs to be solved urgently in the current big data management and intelligent analysis.
The basic work of big data management is to sort and fuse the converged multi-source heterogeneous data resources. The multi-source heterogeneous data fusion refers to content integration of data with different sources, different types, different scales and different structures to obtain more comprehensive, more accurate and more complete information, and the advantages include: (1) and the reliability and the accuracy of the data are improved. (2) The space-time resolution and the information richness of the data are improved, and the actual situation is reflected better. (3) The comprehensive utilization value of the data is improved, and the data application and decision making are better supported. Therefore, multi-source heterogeneous data fusion is an important method and process for big data processing.
Drawing is an important means of data analysis, application and sharing, wherein, thematic drawing is a carrier for expressing information contained in data and presenting a distribution pattern and association rules of things. The method graphically displays data information, intuitively and clearly displays the spatial distribution and associated characteristics of things or phenomena in a mode of graphics, symbols, colors and the like, and emphasizes a map of a certain natural or socioeconomic theme. The method has the characteristics of intuitiveness, image, easy understanding and the like, has important application value in life generation and living, and is mainly characterized in two aspects: (1) information transfer and sharing: the readability and the propagation effect of the data are enhanced, the cross-domain communication sharing is facilitated, and the scientific communication, cooperation and popularization are promoted; (2) data understanding and application: the readability and the understandability of the data content are improved, so that people can better know and master the time-space change and the internal relationship of the geographic phenomenon, the rules and the trends in the data can be found, a manager can make better decisions, and risks can be effectively avoided. Therefore, the thematic map becomes an indispensable tool for our daily life. Along with the development of science and technology and the enrichment of data, the preparation method of the thematic map needs to be updated and perfected.
Disclosure of Invention
The application aims to provide a thematic map preparation method, a thematic map preparation device, a storage medium and electronic equipment, so as to at least partially solve the problems.
In order to achieve the above object, the technical scheme adopted by the embodiment of the application is as follows:
in a first aspect, an embodiment of the present application provides a method for preparing a thematic map, where the method includes:
preparing a map style master mask based on the oriented application field;
the map style master set comprises at least one geographic unit and a legend corresponding to the application field in a target area, and initial color identifiers corresponding to different geographic units in the map style master set are different;
generating metadata information corresponding to the map style master;
the metadata information comprises a mapping relation between each geographic unit in the map style master set and the corresponding initial color mark, and also comprises position information of the legend in the map style master set;
processing original input data to obtain attribute color identifiers of each geographic unit in the original input data;
wherein, the attribute color mark is a reference object corresponding to the application field;
and replacing the initial color identification corresponding to each geographic unit in the map style master set by using the attribute color identification, and updating the legend to obtain the thematic map of the original input data when facing the application field.
In a second aspect, an embodiment of the present application provides a thematic map preparation apparatus, the apparatus including: a first processing unit and a second processing unit;
the first processing unit is used for preparing a map style master plate based on the oriented application field;
the map style master set comprises at least one geographic unit and a legend corresponding to the application field in a target area, and initial color identifiers corresponding to different geographic units in the map style master set are different;
the first processing unit is further used for generating metadata information corresponding to the map style master;
the metadata information comprises a mapping relation between each geographic unit in the map style master set and the corresponding initial color mark, and also comprises position information of the legend in the map style master set;
the first processing unit is further used for processing original input data and acquiring attribute color identifiers of each geographic unit in the original input data;
wherein, the attribute color mark is a reference object corresponding to the application field;
the second processing unit is used for replacing the initial color identifier corresponding to each geographic unit in the map style master set by the attribute color identifier, and updating the legend to obtain a thematic map of the original input data when the original input data faces the application field.
In a third aspect, an embodiment of the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the method described above.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory for storing one or more programs; the above-described method is implemented when the one or more programs are executed by the processor.
Compared with the prior art, the method, the device, the storage medium and the electronic equipment for preparing the thematic map provided by the embodiment of the application comprise the following steps: preparing a map style master mask based on the oriented application field; the map style master set comprises at least one geographic unit and a legend corresponding to the application field in the target area, and initial color identifiers corresponding to different geographic units in the map style master set are different; generating metadata information corresponding to the map style master; the metadata information comprises a mapping relation between each geographic unit in the map style master plate and the corresponding initial color mark, and also comprises position information of a legend in the map style master plate; processing the original input data to obtain attribute color identifiers of each geographic unit in the original input data; the attribute color mark is a reference object corresponding to the application field; and replacing the initial color identification corresponding to each geographic unit in the map style master set by using the attribute color identification, and updating the legend to obtain the thematic map of the original input data when the original input data is oriented to the application field. The repeated labor is reduced, the drawing of high-quality and high-standard thematic pictures is ensured, and the method has unique advantages in reliability, consistency, comparability, behavior and continuity.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for preparing a thematic map according to an embodiment of the application;
FIG. 3 is a schematic diagram of a thematic map according to an embodiment of the application;
fig. 4 is a schematic block diagram of a thematic map making apparatus according to an embodiment of the application.
In the figure: 10-a processor; 11-memory; 12-bus; 13-a communication interface; 201-a first processing unit; 202-a second processing unit.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the description of the present application, it should be noted that, directions or positional relationships indicated by terms such as "upper", "lower", "inner", "outer", etc., are directions or positional relationships based on those shown in the drawings, or those conventionally put in use in the application, are merely for convenience of description and simplification of the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present application.
In the description of the present application, it should also be noted that, unless explicitly specified and limited otherwise, the terms "disposed", "connected" and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
In an alternative scenario, thematic map production can be interactively drawn by technicians with the help of drawing software, the ideas and creative ideas of the diagramming personnel can be flexibly expressed, and some innovations and changes can be made on the figures and symbols. However, this approach has a high knowledge background and specialized software operating capability for the diagramming staff; special drawing software and hardware environments and technicians are required to be configured, and the cost is high; the interaction process is time-consuming and labor-consuming, and the drawing period is long; difficult to cooperate, limited expression modes, and possible deviation and non-standardization of information presentation; the modification is inconvenient, and the updating is difficult; the degree of automation is not high, and manual intervention is needed.
Furthermore, because artificially prepared thematic maps are enriched with a large number of personalized elements, it is difficult to compare and analyze maps of the same subject or the same object. The manually prepared thematic map has the following disadvantages: (1) the subjectivity is strong, the continuity is poor, because drafters are different, namely the same data, the generated thematic pictures have obvious differences, and the subsequent pictures cannot be conveniently compared and analyzed; (2) potential safety hazard: the data and the technology are all mastered in the hand of a diagrammer, such as personnel change, and the like, which is not only unfavorable for the modification and updating of the drawing, the innovation of the technology and the like, but also relates to the privacy and the safety of the data.
In order to overcome the above problems, the present application provides a method for preparing a thematic map, specifically, preparing a thematic map based on multi-source heterogeneous data fusion, where the multi-source heterogeneous index: the preparation of the map style master is from one department, team or individual, while the attribute data is often from other departments, teams or individuals, and the two are different in sources and different in formats, so that the map style master is multi-source heterogeneous, and the two are fused to form a thematic map. It has the following characteristics: (1) diversification of data: the multi-source heterogeneous data can be processed, and the rights and the safety of the data are ensured; (2) automation of the method: different application requirements can be automatically processed according to different application scenes; (3) the diversification of the content is expanded from expressing the spatial distribution characteristics to dynamic monitoring, early warning and forecasting and the like. Because of the demands of commonality and individuality, the thematic map preparation method also needs to have flexible, compatible and comprehensive characteristics so as to meet the practical demands of application in different fields and adapt to the requirements of intelligent automatic drawing in the current big data environment.
The embodiment of the application provides electronic equipment which can be server equipment, computer equipment, mobile phone equipment and other terminal equipment with calculation processing capacity. Referring to fig. 1, a schematic structure of an electronic device is shown. The electronic device comprises a processor 10, a memory 11, a bus 12. The processor 10 and the memory 11 are connected by a bus 12, the processor 10 being adapted to execute executable modules, such as computer programs, stored in the memory 11.
The processor 10 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the thematic map making method may be accomplished by instructions in the form of integrated logic circuitry of hardware or software in the processor 10. The processor 10 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The memory 11 may comprise a high-speed random access memory (RAM: random Access Memory) and may also comprise a non-volatile memory (non-volatile memory), such as at least one disk memory.
Bus 12 may be a ISA (Industry Standard Architecture) bus, PCI (Peripheral Component Interconnect) bus, EISA (Extended Industry Standard Architecture) bus, or the like. Only one double-headed arrow is shown in fig. 1, but not only one bus 12 or one type of bus 12.
The memory 11 is used for storing programs such as programs corresponding to the thematic map preparation apparatus. The thematic map preparation apparatus includes at least one software function module which may be stored in the memory 11 in the form of software or firmware (firmware) or cured in an Operating System (OS) of the electronic device. The processor 10, upon receiving the execution instruction, executes the program to implement the thematic map preparation method.
Possibly, the electronic device provided by the embodiment of the application further comprises a communication interface 13. The communication interface 13 is connected to the processor 10 via a bus.
The electronic device may be in communication connection with other terminals, such as a data source server, through the communication interface 13, and receive raw input data transmitted by the other terminals, where the raw input data transmitted by different terminals may be different.
It should be understood that the structure shown in fig. 1 is a schematic structural diagram of only a portion of an electronic device, which may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The method for preparing the thematic map provided by the embodiment of the application can be applied to the electronic equipment shown in fig. 1, and is particularly applicable to the flow, please refer to fig. 2, and the method for preparing the thematic map comprises the following steps: s101, S102, S103, and S104 are specifically described below.
S101, preparing a map style master plate based on the oriented application field.
The map style master set comprises at least one geographic unit and a legend which correspond to the application field in the target area, and initial color identifiers corresponding to different geographic units in the map style master set are different. The map style master may be stored in the form of a map.
Alternatively, the geographic unit may be an administrative area or a geographic landscape, and the geographic unit definition may be: a spatial unit formed by combining geographic elements together in a certain scale and property.
Along with the development of data resource enrichment and information technology, the function of the thematic map is expanded from the original spatial distribution characteristics of expressing things and phenomena to the application fields of spatial analysis, knowledge discovery, dynamic monitoring, comprehensive evaluation, early warning and forecasting and the like. In order to meet the requirements of different application fields, S101 needs to be executed to prepare respective map style masters corresponding to the different application fields. Wherein the same target area (e.g., a certain province) is different, the divided geographic units are not identical when facing different application areas, and/or the legend titles in the legends are not identical.
Optionally, the map style master needs to meet the resolution requirements of the application field at hand, such as the lowest resolution requirement or the highest resolution requirement of the application field.
Optionally, the legend includes a legend header, a legend label, and a color bar, the legend label including a legend minimum label and a legend maximum label. In the scheme of the application, the legend can adjust fonts and colors according to the legend configuration instructions input by a user.
In an alternative embodiment, the map style master has a plurality of categories, for example, the categories are distinguished according to whether there is a compass, a scale, a coordinate network, a geographic unit label, and the like, and the categories are respectively stored, and the naming shapes are as follows: the method comprises the steps of region name, minimum geographic unit, master plate coding, compass, scale, coordinate network, label and extension.
Optionally, the user may enter a category configuration instruction to determine whether to carry a compass, a scale, a coordinate system, a geographic unit callout.
S102, generating metadata information corresponding to the map style master.
In the present solution, metadata information is used for the position information and color information for each tile (geographic cell and legend) in the map style master.
The metadata information comprises a mapping relation between each geographic unit in the map style master set and the corresponding initial color identification, and further comprises position information of a legend in the map style master set.
Alternatively, the metadata information may correspond to a plurality of map style masters of different kinds, and the metadata information naming manner is that the first 3 field names corresponding to the map style masters are taken, for example, area name_minimum geographic unit_master code.
In an alternative embodiment, the total number of the geographic units in the target area is N, N is greater than or equal to 1, the metadata information is a metadata table, a first default column corresponding to the first N rows in the metadata table is used for storing the mapping relation between the initial color identifications of the N geographic units, and the name column of the ith row in the metadata table comprises the identifications of the corresponding geographic units, and 1 is greater than or equal to i is greater than or equal to N.
The second class default columns corresponding to the last 4 rows in the metadata table are used for storing position information of the legend in the map style master. The third type of default column corresponding to the last 4 rows in the metadata table stores color information of the legend in the map style master.
Referring to table 1 below, table 1 is illustrated with the city level administrative unit governed by Gansu province as the geographic unit, and is not limited thereto.
Jiayuguan city 30 30 142 1E1E8E 240 78 55 0
In the city of eternal western style 39 171 70 27AB46 134 77 67 0
Linxia Hui Autonomous Prefecture 41 135 163 2987A3 193 74 63 0
Spring city 42 80 129 2A5081 213 67 50 0
Qingyang city 54 73 176 3649B0 230 69 69 0
Flat and cool city 66 160 124 42A07C 157 58 62 0
Lanzhou city 67 128 59 43803B 113 53 50 0
Wu Weishi 104 156 32 689C20 85 79 61 0
Long nan city 109 64 129 6D4081 281 50 50 0
Zhangye city 134 70 42 86462A 18 68 52 0
Tianshui city 140 32 32 8C2020 0 77 54 0
Silver city 154 32 151 9A2097 301 79 60 0
Gannan Tibetan Autonomous Prefecture 161 141 46 A18D2E 49 71 63 0
Jin Changshi 172 50 89 AC3259 340 70 67 0
Legend title 3311 1368 3439 1946 0 0 0 0
Legend color band 3465 460 3648 2819 0 0 0 0
Legend minimum label 3635 2822 3736 3002 0 0 0 0
Legend maximum value tag 3638 417 482 3759 0 0 0 0
TABLE 1
As shown in table 1, N has a value of 14, and the metadata table includes n+4=18 rows of valid contents. Column 1 of the metadata table is a name column, and the name column of the i-th row of the metadata table includes an identification of a corresponding geographic unit, such as jiaguan city, zalci city, and the like. The name columns corresponding to the last 4 rows in the metadata table respectively comprise a legend title, a legend color bar, a legend minimum value label and an identification (such as a name) of a legend maximum value label.
The first default column corresponding to the first N rows in the metadata table may be the 2 nd to 4 th columns in the table, and the 2 nd to 4 th columns correspond to RGB color features, which are sequentially red, green and blue. The first type default column corresponding to the first N rows in the metadata table may be column 5 in the table, where column 5 corresponds to hexadecimal color. The first default column corresponding to the first N rows in the metadata table may be the 6 th to 9 th columns in the table, and the 6 th to 9 th columns correspond to hue, saturation, brightness and transparency in order. The same row indicates the mapping relationship between each other.
The second type default column corresponding to the last 4 rows in the metadata table may be columns 2-5 in the table, taking one object of the legend title, the legend color bar, the legend minimum value label and the legend maximum value label as an example, and column 2 of any one row in the last 4 rows is the upper left corner row number, the upper left corner column number, the lower right corner row number and the lower right corner column number of the object in the map style master. The third type of default column may be any one or more of columns 6-8 in the table.
S103, processing the original input data to obtain the attribute color identification of each geographic unit in the original input data.
The attribute color is identified as a reference object corresponding to the application field.
Regarding the content in S103, the embodiment of the present application further provides an optional implementation, please refer to the following, S103 includes: s103-1, S103-2, S103-3 and S103-4 are specifically described below.
S103-1, processing the original input data to obtain attribute values of each geographic unit in the original input data;
the attribute value is a reference value corresponding to the application field.
Alternatively, the spatial extent of the raw input data must cover a geographic area in the map stylist, and the spatial resolution is no lower than the minimum geographic unit.
In the scheme of the application, the attribute value corresponds to a legend title, which can be selected or input by a user based on the application field, for example, the legend title is GDP (billion yuan), and then the attribute value is GDP corresponding to each geographic unit.
In one possible implementation, the original input data is qualitative data, such as bad, medium, and good, and then converted into a digital representation, such as 1, 2, and 3, and the corresponding attribute values are extracted based on the converted original input data. If the original input data is quantitative data, the data can be directly extracted. The format of the extracted attribute values is uniform regardless of the source and structure of the original input data, so that the multi-source heterogeneous data can be processed.
S103-2, adding an attribute value column in the metadata table, and adding the attribute value column according to the corresponding relation to obtain a first attribute table.
Referring to table 2 below, table 2 is a first attribute table corresponding to table 1.
Jiayuguan city 30 30 142 1E1E8E 240 78 55 0 282
In the city of eternal western style 39 171 70 27AB46 134 77 67 0 441
Linxia Hui Autonomous Prefecture 41 135 163 2987A3 193 74 63 0 331
Spring city 42 80 129 2A5081 213 67 50 0 658
Qingyang city 54 73 176 3649B0 230 69 69 0 755
Flat and cool city 66 160 124 42A07C 157 58 62 0 476
Lanzhou city 67 128 59 43803B 113 53 50 0 2887
Wu Weishi 104 156 32 689C20 85 79 61 0 526
Long nan city 109 64 129 6D4081 281 50 50 0 452
Zhangye city 134 70 42 86462A 18 68 52 0 467
Tianshui city 140 32 32 8C2020 0 77 54 0 667
Silver city 154 32 151 9A2097 301 79 60 0 497
Gannan Tibetan Autonomous Prefecture 161 141 46 A18D2E 49 71 63 0 359
Jin Changshi 172 50 89 AC3259 340 70 67 0 359
Legend title 3311 1368 3439 1946 0 0 0 0 GDP (Yiyuan)
Legend color band 3465 460 3648 2819 0 0 0 0 0
Legend minimum label 3635 2822 3736 3002 0 0 0 0 219
Legend maximum value tag 3638 417 482 3759 0 0 0 0 2887
TABLE 2
Optionally, the 10 th column in the first attribute table is an attribute value column, and the attribute value may be filled in the attribute column of the row of the corresponding geographic unit.
Optionally, the attribute value columns of the last four rows in the first attribute table sequentially represent a legend title (input by a user or automatically generated based on an application field), whether a legend color bar adopts a default color bar (which can also be understood as whether a color bar rule is a default color bar rule), a minimum value in the attribute values corresponding to the legend minimum value label, and a maximum value in the attribute values corresponding to the legend maximum value label.
Optionally, when the attribute column corresponding to the legend color bar is 1, the legend color bar adopts a default color bar, the color bar rule is a default color bar rule, and when the attribute column corresponding to the legend color bar is 0, the legend color bar adopts a custom color bar, and the color bar rule is a custom color bar rule. The values in the attribute columns corresponding to the legend color bars are values entered by the user.
Optionally, the name of the first attribute table is the same as the name of the corresponding metadata table or the name of the corresponding map style master.
S103-3, determining the attribute color identification of each geographic unit based on the preconfigured ribbon rule and the attribute value of each geographic unit in the first attribute table.
With respect to the content in S103-3, the embodiment of the present application further provides an optional implementation, please refer to the following, where, when the preconfigured ribbon rule is a default ribbon rule, S103-3, the step of determining the attribute color identifier of each geographic unit based on the preconfigured ribbon rule and the attribute value of each geographic unit in the first attribute table includes: S103-3A and S103-3B are specifically described below.
S103-3A, sorting the counted attribute values from small to large.
S103-3B, the color mark corresponding to the kth color block from left to right in the default color band is used as the attribute color mark corresponding to the kth attribute value in the descending order.
With respect to the content in S103-3, the embodiment of the present application further provides an optional implementation, please refer to the following, where, when the preconfigured ribbon rule is a custom ribbon rule, S103-3, the step of determining the attribute color identifier of each geographic unit based on the preconfigured ribbon rule and the attribute value of each geographic unit in the first attribute table includes: S103-3C and S103-3D are specifically described below.
S103-3C, sorting the counted attribute values from small to large.
S103-3D, distributing corresponding attribute color identifiers to each attribute value after sorting, wherein all attribute value distribution corresponding attribute color identifiers belong to custom colors, and the depth of the custom colors corresponding to the attribute values is sequentially increased from small to large.
Optionally, the custom color is selected by the user, and the color band is a gradient color band.
S103-4, adding an attribute color column in the first attribute table, and adding the attribute color column to the attribute color identifiers according to the corresponding relation to obtain a second attribute table.
The attribute color identifiers in the attribute color columns corresponding to the ith row in the second attribute table are used for replacing the initial color identifiers in the default columns of the first type corresponding to the ith row.
Referring to table 3 below, table 3 is a second attribute table corresponding to table 2.
TABLE 3 Table 3
Optionally, the 11 th column in the second attribute table is an attribute color column. The hexadecimal color code marks are used as the attribute color marks in table 3, however, other color marks, such as RGB color marks, may be used, and are not limited herein.
In an alternative embodiment, the colors of the legend header, the minimum value label, and the maximum value label may be set as desired, defaulting to black. If set, only the new color needs to be assigned to the last 4 rows of the attribute color column.
S104, replacing the initial color identification corresponding to each geographic unit in the map style master set by using the attribute color identification, and updating the legend to obtain the thematic map of the original input data when the original input data is oriented to the application field.
Optionally, replacing the initial color identifier corresponding to each geographic unit in the map style master set with the attribute color identifier in the same row, updating the legend based on the information in the last four rows in the second attribute table to obtain a thematic map of the original input data when the original input data is oriented to the application field, and outputting an image file corresponding to the thematic map to the client terminal.
Referring to fig. 3, fig. 3 is a schematic diagram of a thematic map according to an embodiment of the application.
In order to facilitate tracing and observation, the embodiment of the present application further provides an optional implementation, please refer to the following, and after S104, the method for preparing the thematic map further includes: s105 and S106 are specifically described below.
S105, replacing the initial color identification in the default column of the first type corresponding to the ith row with the attribute color identification in the attribute color column of the second attribute table.
S106, deleting the attribute color column and the attribute value column in the second attribute table, and outputting the attribute color column and the attribute value column as thematic primitive data as a thematic primitive data file.
In the scheme of the application, the data security can be protected through the thematic primitive data file, and the modification and updating of the thematic map in the later period are also facilitated.
Referring to table 4 below, table 4 is an illustration of the above table 3 after deleting the attribute color column and the attribute value column in the second attribute table.
TABLE 4 Table 4
The thematic map preparation method provided by the application is used for drawing based on data fusion: the value of the existing data resources is fully exerted. Firstly, obtaining original data from various data files to form an attribute table text file; and the text file and the image file are subjected to information fusion to finally form the thematic map. Drawing based on the map style master plate: the method gets rid of the excessive dependence of the traditional drawing environment, conditions and personnel, improves the behavior, objectivity, standardization and economy of drawing, and provides a solution for automatic and mass production of high-quality standardized thematic map products.
Specifically, the application relates to a preparation method of a thematic map for multi-source heterogeneous data fusion, which is a process of effectively fusing different sources and different types of data resources to generate a fine, comprehensive and reliable thematic map, effectively improves the data utilization rate and application effect, and provides an effective technical solution for thematic map drawing under big data, and has the following unique advantages:
the application can automatically draw, gets rid of the dependence of the traditional drawing environment and conditions, avoids the interference of human factors, saves the labor and time cost, improves the drawing efficiency, and supports the automatic batch release of the subject data flash report which is concerned by active, timely and effective continuous tracking monitoring and research.
The method has the advantages that the existing design map patterns and data resources are fully utilized, the waste of the resources is avoided, the application value of the data is improved, the utilization value of the existing assets is improved, and the method is popularized to more application scenes.
The self-adaptive drawing is performed through the high-quality template library, so that the standardization is good, the flexibility is high, the repeated labor is reduced, the drawing of the high-quality and high-standard thematic drawing is ensured, and the self-adaptive drawing has unique advantages in reliability, consistency, comparability, behavior and continuity. Because the drawing frames are unified, the problems can be better understood and analyzed.
The data fusion drawing mode supports cross-domain and cross-department collaboration, fully utilizes the advantages of multi-source data, ensures the standardization and accuracy of thematic drawings, promotes the sharing and application of data, and enhances the communication and collaboration of personnel.
The data and template separation collaboration mechanism ensures rights and interests of various departments, protects data security, enables information circulation of various departments to be smoother and collaboration to be more efficient, promotes data value release, and promotes development and progress of drawing industry technology in a big data environment.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating an apparatus for preparing a thematic map according to an embodiment of the application, and the apparatus for preparing a thematic map is optionally applied to the electronic device described above.
The thematic map preparation device comprises: a first processing unit 201 and a second processing unit 202.
The first processing unit 201 is configured to prepare a map style master based on the application-oriented field;
the map style master set comprises at least one geographic unit and a legend corresponding to the application field in a target area, and initial color identifiers corresponding to different geographic units in the map style master set are different;
the first processing unit 201 is further configured to generate metadata information corresponding to the map style master;
the metadata information comprises a mapping relation between each geographic unit in the map style master set and the corresponding initial color mark, and also comprises position information of the legend in the map style master set;
the first processing unit 201 is further configured to process original input data, and obtain an attribute color identifier of each geographic unit in the original input data;
wherein, the attribute color mark is a reference object corresponding to the application field;
the second processing unit 202 is configured to replace an initial color identifier corresponding to each geographic unit in the map style master with the attribute color identifier, and update the legend to obtain a thematic map of the original input data when the original input data faces the application field.
Alternatively, the first processing unit 201 may perform S101 to S103 described above, and the second processing unit 202 may perform S104 to S105 described above.
It should be noted that, the thematic map preparation apparatus provided in this embodiment may execute the method flow shown in the method flow embodiment to achieve the corresponding technical effects. For a brief description, reference is made to the corresponding parts of the above embodiments, where this embodiment is not mentioned.
The embodiment of the application also provides a storage medium, which stores computer instructions and programs, and the computer instructions and the programs execute the thematic map preparation method of the embodiment when being read and executed. The storage medium may include memory, flash memory, registers, combinations thereof, or the like.
The electronic equipment can be server equipment, computer equipment, mobile phone equipment and other terminal equipment with calculation processing capacity, and the electronic equipment can realize the thematic map preparation method as shown in fig. 1; specifically, the electronic device includes: a processor 10, a memory 11, a bus 12. The processor 10 may be a CPU. The memory 11 is used to store one or more programs that, when executed by the processor 10, perform the thematic map making method of the above-described embodiment.
In summary, the embodiments of the present application provide a method, an apparatus, a storage medium, and an electronic device for preparing a thematic map, including: preparing a map style master mask based on the oriented application field; the map style master set comprises at least one geographic unit and a legend corresponding to the application field in the target area, and initial color identifiers corresponding to different geographic units in the map style master set are different; generating metadata information corresponding to the map style master; the metadata information comprises a mapping relation between each geographic unit in the map style master plate and the corresponding initial color mark, and also comprises position information of a legend in the map style master plate; processing the original input data to obtain attribute color identifiers of each geographic unit in the original input data; the attribute color mark is a reference object corresponding to the application field; and replacing the initial color identification corresponding to each geographic unit in the map style master set by using the attribute color identification, and updating the legend to obtain the thematic map of the original input data when the original input data is oriented to the application field. The repeated labor is reduced, the drawing of high-quality and high-standard thematic pictures is ensured, and the method has unique advantages in reliability, consistency, comparability, behavior and continuity.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A method for preparing a thematic map, the method comprising:
preparing a map style master mask based on the oriented application field;
the map style master set comprises at least one geographic unit and a legend corresponding to the application field in a target area, and initial color identifiers corresponding to different geographic units in the map style master set are different;
generating metadata information corresponding to the map style master;
the metadata information comprises a mapping relation between each geographic unit in the map style master set and the corresponding initial color mark, and also comprises position information of the legend in the map style master set;
processing original input data to obtain attribute color identifiers of each geographic unit in the original input data;
wherein, the attribute color mark is a reference object corresponding to the application field;
and replacing the initial color identification corresponding to each geographic unit in the map style master set by using the attribute color identification, and updating the legend to obtain the thematic map of the original input data when facing the application field.
2. The method of claim 1, wherein the legend includes a legend title, a legend label, and a color bar.
3. The method for preparing a thematic map according to claim 1, wherein the total number of geographic units in the target area is N, N is greater than or equal to 1, the metadata information is a metadata table, a first type default column corresponding to the first N rows in the metadata table is used for storing the mapping relation between initial color identifications of N geographic units, and a name column of the i-th row in the metadata table comprises identifications of corresponding geographic units, wherein i is greater than or equal to 1 and less than or equal to N;
and a second type default column corresponding to the last 4 rows in the metadata table is used for storing the position information of the legend in the map style master.
4. The method of claim 3, wherein the step of processing the original input data to obtain the attribute color identification of each geographic unit in the original input data comprises:
processing original input data to obtain attribute values of each geographic unit in the original input data;
wherein, the attribute value is a reference value corresponding to the application field;
adding an attribute value column in the metadata table, and adding the attribute value column according to a corresponding relation to obtain a first attribute table;
determining an attribute color identification of each geographic unit based on a preconfigured ribbon rule and an attribute value of each geographic unit in the first attribute table;
adding an attribute color column in the first attribute table, and adding the attribute color column to the attribute color identifier according to a corresponding relation to obtain a second attribute table;
the attribute color identifiers in the attribute color columns corresponding to the ith row in the second attribute table are used for replacing initial color identifiers in the first-type default columns corresponding to the ith row.
5. The method of claim 4, wherein when the preconfigured band rule is a default band rule, the step of determining an attribute color identification for each of the geographic units based on the preconfigured band rule and the attribute value for each of the geographic units in the first attribute table comprises:
sorting the counted attribute values from small to large;
and taking the color mark corresponding to the kth color block from left to right in the default color band as the attribute color mark corresponding to the kth attribute value in the descending order.
6. The method of claim 4, wherein when the preconfigured ribbon rule is a custom ribbon rule, the step of determining an attribute color identification for each of the geographic units based on the preconfigured ribbon rule and the attribute value for each of the geographic units in the first attribute table comprises:
sorting the counted attribute values from small to large;
and distributing corresponding attribute color identifiers to each of the sorted attribute values, wherein all attribute color identifiers corresponding to the attribute value distribution belong to custom colors, and the depth of the custom colors corresponding to the attribute values is sequentially increased from small to large.
7. The method for preparing a thematic map according to claim 4, wherein after replacing an initial color identifier corresponding to each geographic unit in the map pattern master with the attribute color identifier and updating the legend to obtain the thematic map of the original input data when the original input data faces the application field, the method further comprises:
replacing the initial color identifier in the default column of the first type corresponding to the ith row with the attribute color identifier in the attribute color column of the second attribute table;
deleting the attribute color column and the attribute value column in the second attribute table, and outputting the attribute color column and the attribute value column as thematic primitive data files.
8. A thematic map making apparatus, the apparatus comprising: a first processing unit and a second processing unit;
the first processing unit is used for preparing a map style master plate based on the oriented application field;
the map style master set comprises at least one geographic unit and a legend corresponding to the application field in a target area, and initial color identifiers corresponding to different geographic units in the map style master set are different;
the first processing unit is further used for generating metadata information corresponding to the map style master;
the metadata information comprises a mapping relation between each geographic unit in the map style master set and the corresponding initial color mark, and also comprises position information of the legend in the map style master set;
the first processing unit is further used for processing original input data and acquiring attribute color identifiers of each geographic unit in the original input data;
wherein, the attribute color mark is a reference object corresponding to the application field;
the second processing unit is used for replacing the initial color identifier corresponding to each geographic unit in the map style master set by the attribute color identifier, and updating the legend to obtain a thematic map of the original input data when the original input data faces the application field.
9. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-7.
10. An electronic device, comprising: a processor and a memory for storing one or more programs; the method of any of claims 1-7 is implemented when the one or more programs are executed by the processor.
CN202311014115.1A 2023-08-11 2023-08-11 Thematic map preparation method and device, storage medium and electronic equipment Active CN116993857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311014115.1A CN116993857B (en) 2023-08-11 2023-08-11 Thematic map preparation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311014115.1A CN116993857B (en) 2023-08-11 2023-08-11 Thematic map preparation method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN116993857A true CN116993857A (en) 2023-11-03
CN116993857B CN116993857B (en) 2024-04-02

Family

ID=88526475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311014115.1A Active CN116993857B (en) 2023-08-11 2023-08-11 Thematic map preparation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116993857B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117593405A (en) * 2024-01-17 2024-02-23 武汉智图科技有限责任公司 Method for automatically generating map drawing color band

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090285479A1 (en) * 2008-05-13 2009-11-19 Canon Kabushiki Kaisha Image encoding apparatus, image decoding apparatus, and control method thereof
CN101593209A (en) * 2008-12-30 2009-12-02 中国科学院地理科学与资源研究所 A kind of alternating type online statistical map generation and distributing device and method
US7756831B1 (en) * 2006-09-28 2010-07-13 Emc Corporation Cooperative locking between multiple independent owners of data space
US20150070733A1 (en) * 2010-08-05 2015-03-12 Joseph A. Bernardo Simultaneous digital image and the image file's internal metadata printing system
US20150379733A1 (en) * 2014-06-26 2015-12-31 Amazon Technologies, Inc. Automatic image-based recommendations using a color palette
CN108628895A (en) * 2017-03-21 2018-10-09 腾讯科技(深圳)有限公司 A kind of processing method and processing device of map datum
CN109002452A (en) * 2017-06-07 2018-12-14 杭州海康威视系统技术有限公司 Map tile update method, device and computer readable storage medium
JP2019101769A (en) * 2017-12-04 2019-06-24 コニカミノルタ株式会社 Image data output device and program
CN111506685A (en) * 2020-03-24 2020-08-07 山东省国土测绘院 Fusion drawing method and system and electronic equipment
CN116263984A (en) * 2022-11-23 2023-06-16 中移(苏州)软件技术有限公司 Three-dimensional map visualization method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7756831B1 (en) * 2006-09-28 2010-07-13 Emc Corporation Cooperative locking between multiple independent owners of data space
US20090285479A1 (en) * 2008-05-13 2009-11-19 Canon Kabushiki Kaisha Image encoding apparatus, image decoding apparatus, and control method thereof
CN101593209A (en) * 2008-12-30 2009-12-02 中国科学院地理科学与资源研究所 A kind of alternating type online statistical map generation and distributing device and method
US20150070733A1 (en) * 2010-08-05 2015-03-12 Joseph A. Bernardo Simultaneous digital image and the image file's internal metadata printing system
US20150379733A1 (en) * 2014-06-26 2015-12-31 Amazon Technologies, Inc. Automatic image-based recommendations using a color palette
CN108628895A (en) * 2017-03-21 2018-10-09 腾讯科技(深圳)有限公司 A kind of processing method and processing device of map datum
CN109002452A (en) * 2017-06-07 2018-12-14 杭州海康威视系统技术有限公司 Map tile update method, device and computer readable storage medium
JP2019101769A (en) * 2017-12-04 2019-06-24 コニカミノルタ株式会社 Image data output device and program
CN111506685A (en) * 2020-03-24 2020-08-07 山东省国土测绘院 Fusion drawing method and system and electronic equipment
CN116263984A (en) * 2022-11-23 2023-06-16 中移(苏州)软件技术有限公司 Three-dimensional map visualization method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张树君 等: "基于GIS 的台湾地区地震应急专题图规范设计与应用", 《华南地震》, vol. 43, no. 1, 31 March 2023 (2023-03-31), pages 89 - 98 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117593405A (en) * 2024-01-17 2024-02-23 武汉智图科技有限责任公司 Method for automatically generating map drawing color band
CN117593405B (en) * 2024-01-17 2024-03-19 武汉智图科技有限责任公司 Method for automatically generating map drawing color band

Also Published As

Publication number Publication date
CN116993857B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN116993857B (en) Thematic map preparation method and device, storage medium and electronic equipment
CN111680025A (en) Method and system for intelligently assimilating space-time information of multi-source heterogeneous data oriented to natural resources
Ye et al. Development of a highly flexible mobile GIS-based system for collecting arable land quality data
US10354080B2 (en) Facilitating offline or other contemporaneous editing of tabular data
WO2021032146A1 (en) Metadata management method and apparatus, device, and storage medium
CN108133024A (en) Towards the geographical spatial data service integration method of the dynamic configuration of mobile client
CN114968984A (en) Digital twin full life cycle management platform
CN114461600A (en) Engineering project data multidimensional multiplexing method based on BIM and component identity label
CN114547077A (en) Intelligent processing system and method for basic government affair form data
US20230267830A1 (en) Traffic Data Warehouse Construction Method and Apparatus, Storage Medium, and Terminal
CN111858723A (en) System and method for constructing visual one-picture application based on GIS platform
CN110704635B (en) Method and device for converting triplet data in knowledge graph
CN112686353A (en) Urban traffic health code information data management system
JPWO2017208922A1 (en) Data exchange system, data exchange method, and data exchange program
US11580127B1 (en) User interfaces for database visualizations
CN114757157B (en) Method, apparatus, device and medium for generating an aircraft kit
CN105488229A (en) Data exchange and integration method applied to heterogeneous data environment
EP3633514A1 (en) Data exchange system, data exchange method, and data exchange program
CN115309747A (en) Fire fighting management method and platform based on spatial grid data and electronic equipment
CN104794236B (en) A kind of map making rule structure and its structured organization method and system
CN112328667B (en) Shale gas field ground engineering digital handover method based on data blood margin
CN110675729B (en) Multi-version local geographic information integrated drawing method and system
CN113326369A (en) Intellectual property visual analysis method, system, equipment and storage medium
CN110866005A (en) Internet of things data acquisition management method and system, storage medium and terminal
CN111310090A (en) Content data management system, method, equipment and storage medium of website page

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant