CN113190610A - Map color matching method, device and storage medium - Google Patents

Map color matching method, device and storage medium Download PDF

Info

Publication number
CN113190610A
CN113190610A CN202110384896.8A CN202110384896A CN113190610A CN 113190610 A CN113190610 A CN 113190610A CN 202110384896 A CN202110384896 A CN 202110384896A CN 113190610 A CN113190610 A CN 113190610A
Authority
CN
China
Prior art keywords
color matching
government
politics
historical
parameters
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.)
Pending
Application number
CN202110384896.8A
Other languages
Chinese (zh)
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.)
Beijing Perfect Knowledge Technology Co Ltd
Original Assignee
Beijing Perfect Knowledge Technology Co Ltd
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 Beijing Perfect Knowledge Technology Co Ltd filed Critical Beijing Perfect Knowledge Technology Co Ltd
Priority to CN202110384896.8A priority Critical patent/CN113190610A/en
Publication of CN113190610A publication Critical patent/CN113190610A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Remote Sensing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a map color matching method, map color matching equipment and a storage medium. In the embodiment of the application, a plurality of political rights contained in a plurality of historical maps with a time sequence can be determined in response to the color matching instruction; the method comprises the steps that color matching parameters corresponding to multiple administrative weights are determined by taking the purposes that color matching of the same administrative weight is not changed and color matching of adjacent administrative weights is different; and carrying out color matching on the plurality of historical maps according to the color matching parameters corresponding to the plurality of administrative rights. Therefore, the continuity and the uniqueness of the administrative rights in the historical map can be accurately reflected through color matching, and the user can more conveniently sense the transition state of the administrative rights.

Description

Map color matching method, device and storage medium
Technical Field
The application relates to the technical field of data processing, in particular to a map color matching method, map color matching equipment and a map color matching storage medium.
Background
The historical map is a map reflecting the geographic conditions of the historical periods, and different historical maps can reflect the geographic conditions of different historical periods.
Currently, words are commonly used in history maps to mark political rights. The user needs to find the character identification of the concerned political right in the history maps corresponding to different history periods to find the corresponding political right, and then perceives the transition state of the concerned political right. Under the condition that the number of the administrative rights is large, characters corresponding to some administrative rights can be hidden, and the user needs to manually zoom the map to find the concerned administrative rights, so that the efficiency, accuracy, convenience and the like of perceiving the state of the administrative rights transition of the user are poor.
Disclosure of Invention
Aspects of the present application provide a map color matching method, apparatus, and storage medium for displaying a political right transition state in a historical map more quickly, accurately, and conveniently.
The embodiment of the application provides a map color matching method, which comprises the following steps:
in response to the color matching instruction, determining a plurality of political rights contained in a plurality of historical maps in a time sequence;
the method comprises the steps that color matching parameters corresponding to multiple administrative weights are determined by taking the purposes that color matching of the same administrative weight is not changed and color matching of adjacent administrative weights is different;
and carrying out color matching on the plurality of historical maps according to the color matching parameters corresponding to the plurality of administrative rights respectively.
The embodiment of the application also provides a computing device, which comprises a memory and a processor;
the memory is to store one or more computer instructions;
the processor is coupled with the memory for executing the one or more computer instructions for:
in response to the color matching instruction, determining a plurality of political rights contained in a plurality of historical maps in a time sequence;
the method comprises the steps that color matching parameters corresponding to multiple administrative weights are determined by taking the purposes that color matching of the same administrative weight is not changed and color matching of adjacent administrative weights is different;
and carrying out color matching on the plurality of historical maps according to the color matching parameters corresponding to the plurality of administrative rights respectively.
Embodiments of the present application also provide a computer-readable storage medium storing computer instructions that, when executed by one or more processors, cause the one or more processors to perform the aforementioned map color matching method.
In the embodiment of the application, a plurality of political rights contained in a plurality of historical maps with a time sequence can be determined in response to the color matching instruction; the method comprises the steps that color matching parameters corresponding to multiple administrative weights are determined by taking the purposes that color matching of the same administrative weight is not changed and color matching of adjacent administrative weights is different; and carrying out color matching on the plurality of historical maps according to the color matching parameters corresponding to the plurality of administrative rights. Therefore, the continuity and the uniqueness of the administrative rights in the historical map can be accurately reflected through color matching, and the user can more conveniently sense the transition state of the administrative rights.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic flow chart diagram of a map color matching method provided by an exemplary embodiment of the present application;
FIG. 2 is a logic diagram of an alternative implementation provided by an exemplary embodiment of the present application;
FIG. 3 is a schematic illustration of a map interface provided by an exemplary embodiment of the present application;
fig. 4 is a schematic structural diagram of a computing device according to another exemplary embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, a user needs to sense the transition state of the government right through characters marked for the government right in a historical map, and the efficiency, accuracy, convenience and the like are poor. To this end, in some embodiments of the present application: a plurality of political rights contained in a plurality of historical maps in a time sequence can be determined in response to the color matching instruction; the method comprises the steps that color matching parameters corresponding to multiple administrative weights are determined by taking the purposes that color matching of the same administrative weight is not changed and color matching of adjacent administrative weights is different; and carrying out color matching on the plurality of historical maps according to the color matching parameters corresponding to the plurality of administrative rights. Therefore, the continuity and the uniqueness of the administrative rights in the historical map can be accurately reflected through color matching, and the user can more conveniently sense the transition state of the administrative rights.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a map color matching method that may be performed by a map color matching apparatus, which may be implemented as a combination of software and/or hardware, that may be integrated within a computing device, according to an exemplary embodiment of the present application. Referring to fig. 1, the method includes:
step 100, responding to a color matching instruction, and determining a plurality of government rights contained in a plurality of historical maps with a time sequence;
step 101, aiming at the fact that color matching of the same government is not changed and color matching of adjacent government is different, determining color matching parameters corresponding to multiple government;
and 102, performing color matching on a plurality of historical maps according to the color matching parameters corresponding to the plurality of administrative rights.
The map color matching method provided by the embodiment can be applied to scenes for performing color matching on historical maps. The inventor finds in the research process that the historical map has a time attribute, the same political right exists in a plurality of continuous historical maps from birth to death, and therefore the historical map can represent the transition state of the political right.
The embodiment proposes a concept of representing the state of the government right transition in the historical map by color matching.
To this end, in step 100, a plurality of political rights contained in a plurality of historical maps in a chronological order may be determined in response to the color matching instructions. In this embodiment, the time length covered by a single historical map is not limited, for example, a single historical map may cover 0.5 year, 1 year, or 10 years, and the time lengths covered by different historical maps may not be completely the same. Therefore, the history map has a time attribute, and in the present embodiment, a time sequence exists between the plurality of history maps.
It should be understood that, here, the plurality of administrative rights included in the plurality of history maps may refer to all administrative rights that appear in the plurality of history maps. Due to the change of the politics, part of the politics may appear only in part of the history map.
Based on this, in step 101, color matching parameters corresponding to a plurality of administrative weights may be determined with the goal that the color matching of the same administrative weight is not changed and the color matching of adjacent administrative weights is different. The color matching parameters may include, but are not limited to, fill color values of the facets, color values of the edges, or widths of the edges, among others.
In practical applications, the adjacent relationship between multiple politics contained in multiple historical maps can be counted. Due to the change of the politics, for a single politics, the corresponding adjacent relation can be one or more. For example, for the political right a, the adjacent political rights when the political right a is born are B, C and D respectively, but as the political right changes, the political right B dies, so that the adjacent political rights of the political right a become C, D and E, B, C, D, E has an adjacent relation with the political right a. For this reason, in step 101, a global adjacency is used as a basis in determining color matching parameters corresponding to each of a plurality of political rights. Therefore, a plurality of historical maps can be guaranteed to meet the target that adjacent government weights match colors differently.
In addition, in this embodiment, another goal is configured, that is, color matching of the same government right is not changed. For example, the color matching of the political A in all the historical maps involved from birth to death remains unchanged.
Accordingly, in the present embodiment, color matching parameters corresponding to a plurality of administrative rights included in a plurality of history maps may be determined. The obtained color matching parameters meet the goals that the color matching of the same government is not changed and the color matching of the adjacent government is different. The color matching parameters may be determined in various ways, which will be described in detail later.
In practical applications, identifiers, such as, for example, administrative ID, etc., may be respectively configured for a plurality of authorities to uniquely identify the authorities. After determining the color matching parameters of each of the plurality of administrative weights, the color matching parameters may be associated with the identity of the corresponding administrative weight. In this way, an association of political rights with color matching parameters may be constructed.
In step 102, color matching is performed on a plurality of historical maps according to color matching parameters corresponding to a plurality of administrative rights. In the historical map, an association relation between the identification of the government right and the parcel can be established, and the corresponding relation between the parcel and the color matching parameters can be determined by combining the association relation between the identification of the government right and the color matching parameters. Based on the above, the color matching parameters corresponding to the plots can be determined in the plurality of historical maps respectively, so that the plurality of historical maps are subjected to color matching.
In the embodiment, a plurality of political rights contained in a plurality of historical maps with a time sequence can be determined in response to the color matching instruction; the method comprises the steps that color matching parameters corresponding to multiple administrative weights are determined by taking the purposes that color matching of the same administrative weight is not changed and color matching of adjacent administrative weights is different; and carrying out color matching on the plurality of historical maps according to the color matching parameters corresponding to the plurality of administrative rights. Therefore, the continuity and the uniqueness of the administrative rights in the historical map can be accurately reflected through color matching, and the user can more conveniently sense the transition state of the administrative rights.
In the above or below embodiments, various implementations may be used to determine color matching parameters corresponding to each of a plurality of political rights.
In this embodiment, a first color matching table and a second color matching table may be constructed in advance, wherein no repeated color matching parameters exist between the first color matching table and the second color matching table. Here, the first color scheme table and the second color scheme table each contain a limited number of color scheme parameters, and there is generally no duplication. For example, a first color matching table may contain 18 color matching parameters and a second color matching table may contain 25 color matching parameters. Of course, the number of color matching parameters in the two color matching tables is only exemplary, and in this embodiment, the number may be set according to actual needs.
Based on this, in the embodiment, color matching parameters can be determined for a specific government right in a plurality of government rights from the first color matching table, and the color matching is kept unchanged during the existence of the specific government right; from the second color table, color matching parameters are determined for other of the plurality of weights except the particular weight, and the color matching is maintained during the existence of the other weights. Wherein a particular political may include a political meeting one or more of the following conditions: the storage duration time meets the preset time requirement, the region area meets the preset area requirement, and the historical influence degree meets the preset conditions. It should be understood that these conditions are also only exemplary, and in the present embodiment, these conditions may be adjusted according to actual needs.
It should be noted that, in the present embodiment, in the process of determining color matching parameters for corresponding politics from the first color matching table and the second color matching table, the target that the color matching of the same politics is not changed and the color matching of adjacent politics is different is still maintained. When the color matching parameters are selected for a single government, a random selection mode can be adopted, and of course, more preferable conditions can also be added, for example, for a government to be matched, the color matching parameters closest to the maternal government of the government to be matched can be selected from candidate color matching parameters meeting the goal that adjacent government is matched in different colors, so as to reflect the relevance among the government, and the like, wherein the government to be matched is divided from the maternal government. This embodiment is not limited to this.
In practical application, due to the fact that the number of the administrative rights is too large, redundant administrative rights which cannot be matched with colors may exist, and the redundant administrative rights mean that some administrative rights may exist in other administrative rights, and proper color matching parameters cannot be found from the second color matching table, so that the administrative rights can meet the goal that the color matching of the same administrative right is not changed and the color matching of adjacent administrative rights is different. For redundant government, in this embodiment, a third color matching table may be constructed. If the redundant government power which cannot be matched is available in other government powers, color matching parameters are determined for the redundant government power from the third color matching table, and the color matching is kept unchanged during the existence period of the redundant government power; similarly, in determining color matching parameters for redundant weights, the goal of different color matching of adjacent weights is maintained. And the third color matching table and the first color matching table and the second color matching table have no repeated color matching.
Thus, suitable color matching parameters can be gradually determined for multiple political weights based on different pre-constructed color matching tables so as to meet the goals that the color matching of the same political weight is not changed and the color matching of the adjacent political weights is different.
Fig. 2 is a logic diagram of an alternative implementation provided by an exemplary embodiment of the present application. Referring to fig. 2, in this implementation, considering that the number of the historical maps is large and the time span is large, multiple historical maps may be color-matched in batches, where each batch of historical maps corresponds to one time period. At least one historical map may exist for a single time period, and at least one government may be included in the at least one historical map for the single time period. The spans of the time periods of different batches may be the same or different. For example, the span of the time period may be uniformly configured to be 400 years, i.e., the same batch of color maps is colored every 400 years of the historical map. For another example, the time interval may be indirectly determined by the number of history maps, and the same batch is color-matched for every 300 consecutive history maps, in which case, the time intervals corresponding to different batches may have different spans due to different covered time lengths of different history maps. The present embodiment does not limit the span of the time period. In practical application, color matching may be performed in batches on the historical maps included in each time period according to the sequence between the time periods, and of course, this embodiment is not limited thereto, and the color matching may be performed according to other sequences.
Based on this, in this implementation, for at least one target history map in the to-be-processed time period, if the target government right matched with colors in the processed time period is included in the at least one target history map, the corresponding color matching parameters of the target government right in the processed time period are used; and determining color matching parameters corresponding to the remaining politics in at least one target historical map by taking the color matching parameters used for the target politics as reference information and taking the purposes that the color matching of the same politics is not changed and the color matching of the adjacent politics is different.
If the time period to be processed is not the first time period in the batch color matching, one or more processed time periods exist before the time period to be processed, the color matching of the historical map in the processed time period is completed, that is, the color matching parameters of the government rights contained in the historical map in the processed time period are obtained. Therefore, for the pending time period, the target government right which has finished color matching in the processed time period may be determined first in the plurality of government rights contained in the pending time period, and the color matching parameters allocated to the target government right may be used along the pending time period. That is, the color matching parameters of the target government may be continuously related to the target government in the pending time period, so as to ensure that the color matching of the target government is maintained unchanged in different time periods
In this way, the color scheme of the target government that it contains may be determined for the pending time period. And for the remaining politics in the time period to be processed, the color matching parameters used for target politics are used as reference information, and the color matching parameters are determined by taking the goal that the color matching of the same politics is not changed and the color matching of the adjacent politics is different.
Based on the first color matching table and the second color matching table, in this implementation, if the remaining political rights in the pending time period include a specific political right, color matching parameters are specified for the specific political right from unused color matching in the first color matching table; and determining color matching parameters corresponding to other politics except the specific politics in the remaining politics from the second color matching table by taking the color matching parameters used for the edges of the target politics and the color matching parameters specified for the specific politics as reference information and taking the color matching of the same politics unchanged and the color matching of the adjacent politics different as targets.
In this implementation, unused delivery parameters in the first color table may be assigned to particular politics contained in the remaining politics. For this reason, the status of each color matching parameter may be identified in the first color matching table, and the status may include used, unused, etc., and is not limited herein. Accordingly, if the target distribution parameters in the first color matching table have been associated with a certain government right, the target color matching parameters may be identified as being in use; if the particular administrative weighting associated with the target distribution parameters in the first color matching table is missing, the target color matching parameters are identified as unused. This ensures that different particular weights in the same historical map are colored differently to better distinguish between the different particular weights.
Thus, in addition to the target weights for the pending period, color matching parameters are determined for the particular weights included in the remaining weights for the pending period. Similarly, the color matching parameters determined for a particular weight may be associated with an identifier of the particular weight to construct an association between the identifier of the particular weight and the color matching parameters.
In this implementation, the color matching parameters may be determined from the second color table for other of the remaining politics except the particular politics, with the goal of color matching for the same politics being unchanged and color matching for adjacent politics being different. For example, color matching parameters may be determined using random assignments and verification using the four color theorem. It should be understood that in the process, in other government rights except for the specific government right in the remaining government rights, different government rights can be configured with the same color matching parameters, and the goal that the color matching of the same government right is not changed and the color matching of the adjacent government rights is different is only needed, so that the number of the color matching parameters in the second color matching table can be effectively saved.
In the process, if redundant politics which cannot be matched are available in other politics except for the specific politics in the remaining politics, color matching parameters are assigned for the redundant politics from the third color matching table; and the third color matching table and the first color matching table and the second color matching table have no repeated color matching. Because the time and space factors are considered simultaneously in the process of determining the color matching parameters for other weights except for the specific weight in the remaining weights, the color matching parameters in the second color matching table may be insufficient under the condition of more historical map numbers and administrative weights, for this reason, a third color matching table is provided in the determination scheme, and if redundant weights occur, the color matching parameters can be directly specified for the redundant weights from the second color matching table, and obviously, the color matching parameters specified by the redundant weights can meet the goals that the color matching of the same weight is not changed and the color matching of adjacent weights is different.
In summary, in the above implementation manner, the color matching results in the processed time period can be used to the unprocessed time period to maintain the color matching continuity of the same government, which can support the goal of color matching of the same government not being changed; color matching parameters can be directly specified for specific administrative rights without overall color matching, so that a large amount of computing resources can be saved; and for other administrative powers, the color matching parameters are determined by aiming at the condition that the color matching of the same administrative power is not changed and the color matching of adjacent administrative powers is different, and a solution for processing redundant administrative powers is provided. Therefore, in the implementation mode, the number of color matching parameters can be effectively saved, and the calculation amount is reduced.
Of course, in addition to the above implementation manners, in this embodiment, other implementation manners may also be adopted to determine color matching parameters corresponding to multiple political rights included in multiple historical maps. For example, instead of performing color matching in batches, the above-described scheme of targeting color matching invariance of the same weight and color matching of adjacent weights differently, directly specifying color matching parameters for a specific weight, and randomly specifying color matching parameters for the remaining weights from the color matching table is directly applied to a plurality of history maps. As another example, color matching parameters may be randomly assigned directly from the color table for the contained politics within a single time period and constrained using the four-color theorem with the same politics matching color unchanged. The present embodiment is not limited thereto.
In the above or below embodiment, in determining color matching parameters for other weights, other than the particular weight, of the plurality of weights from the second color matching table, the adjacent weights to the particular weight may be determined among the other weights; respectively calculating fusion indexes corresponding to adjacent politics of the specific politics based on the separation and combination state between the specific politics and the adjacent politics; from the second color matching table, color matching parameters adapted to their corresponding fusion index are determined for adjacent weights of the particular weight.
The inventor finds in the research process that there may be mergence or split between a specific government right and its neighboring government rights, and the number of mergence or split may be one or more times, and for this reason, in this embodiment, the join statuses between the specific government right and its neighboring government rights may be collected, and fusion indexes corresponding to the neighboring government rights of the specific government right are respectively calculated based on the join statuses between the specific government right and its neighboring government rights.
Taking a specific government right a as an example, during the existence period of the specific government right a, 10 adjacent government rights may exist, and of course, the 10 adjacent government rights may appear in different history maps, for example, in the history map a, the adjacent government rights of the specific government right a are [ 1, 2, 3, 4 ], while in the history map b, the adjacent government rights of the specific government right a become [ 2, 4, 6, 8 ], wherein 1 and 3 have been merged into the specific government right a, and 6 and 8 are split from the specific government right a. Based on this example, fusion indexes corresponding to 10 adjacent politics can be calculated respectively. An exemplary calculation scheme may be that the higher the convergence frequency of adjacent politics, the higher the corresponding fusion index, the more closely the historical relationship characterizing the adjacent politics with a particular politics a. Of course, this is merely exemplary, and the present embodiment is not limited thereto.
In this way, a fusion index corresponding to each adjacent government right of the specific government rights in the plurality of government rights can be calculated.
Taking a target adjacent government right of a certain specific government right as an example, in the process of determining color matching parameters for the target adjacent government right, whether the fusion index corresponding to the target adjacent government right exceeds a preset index threshold value can be judged, and if so, the color matching parameter closest to the color matching parameter of the corresponding specific government right is selected for the target adjacent government right from the second color matching table.
And if the fusion index corresponding to the target adjacent government rights exceeds the preset index threshold value, the historical relationship between the target adjacent government rights and the corresponding specific government rights can be represented to be close enough, and color matching parameters close to the color matching parameters of the corresponding specific government rights can be configured for the target adjacent government rights as much as possible. To this end, the color matching parameter closest to the color matching parameter of the particular weight to which the target adjacent weight corresponds may be selected from the selectable color matching parameters in the second color matching table.
Therefore, in the embodiment, the closer the adjacent government rights are to the history relationship of the specific government right, the closer the color matching parameters to the specific government right are obtained, and further, the effect of reflecting the history relationship between the adjacent government rights through map color matching can be realized.
In the above or following embodiments, a map interface may also be displayed, where the map interface includes a time selection control and a history map display area; determining a selected target time point in response to a time point selection operation occurring on the time selection control; and in the historical map display area, rendering the region where each government is located according to the color matching parameters of each government contained in the historical map corresponding to the target time point so as to display the historical map.
As described above, the history maps have a time attribute, and thus, a single history map may be associated with one time point. It should be understood that the time point is not limited to the time of day, but is determined according to the time length covered by the history map, for example, the time point may be the year, and of course, the embodiment is not limited thereto.
Fig. 3 is a schematic diagram of a map interface according to an exemplary embodiment of the present application. Referring to fig. 3, a user may perform a time point selection operation on a time selection control, e.g., a click operation, a slide timeline operation, etc. And in the historical map display area, a historical map corresponding to the target time point selected by the user can be displayed, wherein the displayed historical map is a historical map subjected to color matching according to the map color matching scheme provided by the embodiment, namely the historical map subjected to color rendering.
In addition, a plurality of historical maps contained in the selected time range can be determined in response to the time range selection operation on the time selection control; in the historical map display area, rendering the places where the administrative rights are located based on the color matching parameters of the administrative rights contained in the historical maps, and displaying the historical maps in sequence.
By selecting the time range, a plurality of historical maps in the selected time range can be defined, so that the plurality of historical maps can be displayed in sequence, and a user can visually perceive the state of the political power transition through color matching. The automatic sequential display mode can present the animation effect to the user, thereby improving the convenience and accuracy of the user for perceiving the state of the government right transition.
Of course, the historical map of the matched colors can be displayed to the user in other ways, and a basis is provided for the user to perceive the state of the government weight transition through the matched colors.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subjects of steps 100 to 101 may be device a; for another example, the execution subject of steps 100 and 101 may be device a, and the execution subject of step 102 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 101, 102, etc., are merely used for distinguishing different operations, and the sequence numbers do not represent any execution order per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", and the like in this document are used to distinguish different application terminals, messages, modules, and the like, and do not represent a sequence, and do not limit that "first" and "second" are different types.
Fig. 4 is a schematic structural diagram of a computing device according to another exemplary embodiment of the present application. As shown in fig. 4, the computing device includes: memory 40, processor 41, and communication component 42.
A processor 41, coupled to the memory 40, for executing the computer program in the memory 40 for:
in response to the color matching instruction, determining a plurality of political rights contained in a plurality of historical maps in a time sequence;
the method comprises the steps that color matching parameters corresponding to multiple administrative weights are determined by taking the purposes that color matching of the same administrative weight is not changed and color matching of adjacent administrative weights is different;
and carrying out color matching on the plurality of historical maps according to the color matching parameters corresponding to the plurality of administrative rights.
In an alternative embodiment, processor 41, when targeting a color scheme that is not the same weight and a color scheme that is different for adjacent weights, determines the color scheme parameters corresponding to each of the plurality of weights, is configured to:
determining color matching parameters from the first color matching table for a particular weight of the plurality of weights, and maintaining the color matching constant during the existence of the particular weight;
determining color matching parameters from the second color matching table for other of the plurality of politics except the specific politics, and keeping the color matching unchanged during the existence of the other politics;
and the color matching of any adjacent government weights in the plurality of government weights is different, and no repeated color matching parameter exists between the first color matching table and the second color matching table.
In an alternative embodiment, processor 41, in determining color matching parameters from the second color matching table for other of the plurality of politics except the particular politics, is configured to:
among other weights, determining adjacent weights to a particular weight;
respectively calculating fusion indexes corresponding to adjacent politics of the specific politics based on the separation and combination state between the specific politics and the adjacent politics;
from the second color matching table, color matching parameters adapted to their corresponding fusion index are determined for adjacent weights of the particular weight.
In an alternative embodiment, processor 41, in determining color matching parameters from the second color matching table for adjacent politics of a particular political, is configured to:
and if the corresponding fusion index of the target adjacent government of the specific government exceeds the preset index threshold, selecting the color matching parameter closest to the color matching parameter of the specific government for the target adjacent government from the second color matching table.
In an alternative embodiment, the particular political rights include political rights that meet one or more of the following conditions: the storage duration time meets the preset time requirement, the region area meets the preset area requirement, and the historical influence degree meets the preset conditions.
In an alternative embodiment, processor 41 is further configured to:
if the redundant government power which cannot be matched is available in other government powers, color matching parameters are determined for the redundant government power from the third color matching table, and the color matching is kept unchanged during the existence period of the redundant government power;
and the third color matching table and the first color matching table and the second color matching table have no repeated color matching.
In an alternative embodiment, processor 41, in determining color matching parameters for a particular weight of the plurality of weights from the first color matching table and for other weights of the plurality of weights other than the particular weight from the second color matching table, is configured to:
for at least one target historical map in the time period to be processed, if the at least one target historical map contains the target government right which is matched with colors in the processed time period, corresponding color matching parameters of the target government right in the processed time period are used;
if the remaining politics in the at least one target historical map comprise the specific politics, determining color matching parameters for the specific politics from unused color matching in the first color matching table;
and determining color matching parameters corresponding to other government weights except the specific government weight in the remaining government weights from the second color matching table.
In an alternative embodiment, processor 41 is further configured to:
if the particular administrative weighting associated with the target distribution parameters in the first color matching table is missing, the target color matching parameters are identified as unused.
In an alternative embodiment, processor 41 is further configured to:
displaying a map interface, wherein the map interface comprises a time selection control and a historical map display area;
determining a selected target time point in response to a time point selection operation occurring on the time selection control;
and in the historical map display area, rendering the region where each government is located according to the color matching parameters of each government contained in the historical map corresponding to the target time point so as to display the historical map.
In an alternative embodiment, processor 41 is further configured to:
in response to a time range selection operation occurring on the time selection control, determining a plurality of historical maps contained within a selected time range;
in the historical map display area, rendering the places where the administrative rights are located based on the color matching parameters of the administrative rights contained in the historical maps, and displaying the historical maps in sequence.
Further, as shown in fig. 4, the computing device further includes: power supply assembly 43, and the like. Only some of the components are schematically shown in fig. 4, and the computing device is not meant to include only the components shown in fig. 4.
It should be noted that, for the technical details in the embodiments of the computing device, reference may be made to the related description in the foregoing method embodiments, and for the sake of brevity, detailed description is not provided herein, but this should not cause a loss of scope of the present application.
Accordingly, the present application further provides a computer-readable storage medium storing a computer program, where the computer program can implement the steps that can be executed by a computing device in the foregoing method embodiments when executed.
The memory of FIG. 4, described above, is used to store a computer program and may be configured to store other various data to support operations on a computing platform. Examples of such data include instructions for any application or method operating on the computing platform, contact data, phonebook data, messages, pictures, videos, and so forth. The memory may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The communication component in fig. 4 is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as a WiFi, a 2G, 3G, 4G/LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
The power supply assembly of fig. 4 described above provides power to the various components of the device in which the power supply assembly is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

1. A map color matching method is characterized by comprising the following steps:
in response to the color matching instruction, determining a plurality of political rights contained in a plurality of historical maps in a time sequence;
the method comprises the steps that color matching parameters corresponding to multiple administrative weights are determined by taking the purposes that color matching of the same administrative weight is not changed and color matching of adjacent administrative weights is different;
and carrying out color matching on the plurality of historical maps according to the color matching parameters corresponding to the plurality of administrative rights respectively.
2. The method of claim 1, wherein the determining color matching parameters corresponding to each of the plurality of political rights with the goal that color matching of the same political right is not changed and color matching of adjacent political rights is different comprises:
determining color matching parameters from a first color matching table for a particular weight of the plurality of weights and maintaining the color matching unchanged for the duration of the particular weight;
determining color matching parameters from a second color matching table for other of the plurality of politics except the specific politics, and maintaining the color matching unchanged during the existence of the other politics;
and the color matching of any adjacent government weights in the plurality of government weights is different, and no repeated color matching parameter exists between the first color matching table and the second color matching table.
3. The method of claim 2, wherein said determining color matching parameters from the second color matching table for other of the plurality of politics except the particular politics comprises:
determining, among the other politics, neighboring politics to the particular politics;
respectively calculating fusion indexes corresponding to the adjacent government rights of the specific government right based on the separation and combination state between the specific government right and the adjacent government rights;
and determining color matching parameters matched with the corresponding fusion index for the adjacent government weights of the specific government weight from the second color matching table.
4. The method according to claim 3, wherein said determining color matching parameters from said second color matching table for the politics adjacent to the particular politics that are matched to their corresponding fusion index comprises:
and if the corresponding fusion index of the target adjacent government of the specific government exceeds a preset index threshold, selecting the color matching parameter closest to the color matching parameter of the specific government for the target adjacent government from the second color matching table.
5. The method of claim 2, wherein the specific politics include politics meeting one or more of the following conditions: the storage duration time meets the preset time requirement, the region area meets the preset area requirement, and the historical influence degree meets the preset conditions.
6. The method of claim 2, further comprising:
if the redundant government power which cannot be matched is available in the other government powers, determining color matching parameters for the redundant government power from a third color matching table, and keeping the color matching unchanged during the existence period of the redundant government power;
wherein there is no duplicate color matching between the third color matching table and the first color matching table and the second color matching table.
7. The method of claim 2 wherein determining color matching parameters from the first color matching table for a particular one of the plurality of politics and determining color matching parameters from the second color matching table for the other of the plurality of politics except the particular politics comprises:
for at least one target historical map in a time period to be processed, if the at least one target historical map contains a target government right which is matched with colors in the processed time period, using the corresponding color matching parameters of the target government right in the processed time period;
if the remaining politics in the at least one target history map comprise specific politics, determining color matching parameters for the specific politics from unused color matching in the first color matching table;
and determining color matching parameters corresponding to other government weights except the specific government weight in the remaining government weights from the second color matching table.
8. The method of claim 7, further comprising:
and if the specific government associated with the target distribution parameters in the first color matching table disappears, identifying the target color matching parameters as an unused state.
9. The method of claim 1, further comprising:
displaying a map interface, wherein the map interface comprises a time selection control and a historical map display area;
determining a selected target time point in response to a time point selection operation occurring on the time selection control;
and rendering the place where each government is located in the historical map display area according to the color matching parameters of each government contained in the historical map corresponding to the target time point so as to display the historical map.
10. The method of claim 9, further comprising:
in response to a time range selection operation occurring on the time selection control, determining a plurality of historical maps contained within a selected time range;
and in the historical map display area, rendering the places where the administrative rights are located based on the color matching parameters of the administrative rights contained in the historical maps, and displaying the historical maps in sequence.
11. A computing device comprising a memory and a processor;
the memory is to store one or more computer instructions;
the processor is coupled with the memory for executing the one or more computer instructions for:
in response to the color matching instruction, determining a plurality of political rights contained in a plurality of historical maps in a time sequence;
the method comprises the steps that color matching parameters corresponding to multiple administrative weights are determined by taking the purposes that color matching of the same administrative weight is not changed and color matching of adjacent administrative weights is different;
and carrying out color matching on the plurality of historical maps according to the color matching parameters corresponding to the plurality of administrative rights respectively.
12. A computer-readable storage medium storing computer instructions, which when executed by one or more processors, cause the one or more processors to perform the map color matching method of any of claims 1-10.
CN202110384896.8A 2021-04-09 2021-04-09 Map color matching method, device and storage medium Pending CN113190610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110384896.8A CN113190610A (en) 2021-04-09 2021-04-09 Map color matching method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110384896.8A CN113190610A (en) 2021-04-09 2021-04-09 Map color matching method, device and storage medium

Publications (1)

Publication Number Publication Date
CN113190610A true CN113190610A (en) 2021-07-30

Family

ID=76975438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110384896.8A Pending CN113190610A (en) 2021-04-09 2021-04-09 Map color matching method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113190610A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090096807A1 (en) * 2007-08-27 2009-04-16 Silverstein Jonathan C Systems and methods for image colorization
CN101606039A (en) * 2007-01-08 2009-12-16 微软公司 Dynamic map according to customer parameter presents
CN104077394A (en) * 2014-07-01 2014-10-01 东南大学 Urban historical map restoration method based on spatial grid hierarchical positioning
CN104765826A (en) * 2006-09-29 2015-07-08 德卡尔塔公司 Dynamically configured rendering of digital maps
CN105740339A (en) * 2016-01-25 2016-07-06 河北中科恒运软件科技股份有限公司 Civil administration big data fusion and management system
CA3010437A1 (en) * 2016-01-05 2017-07-13 Allstate Insurance Company Data processing system communicating with a map data processing system to generate a display of one or more segments of one or more vehicle routes
CN109976600A (en) * 2017-12-28 2019-07-05 上海擎感智能科技有限公司 Map color matching method and intelligent terminal
CN111324685A (en) * 2020-02-28 2020-06-23 天津完美引力科技有限公司 Method, device and system for processing historical map data
CN111382223A (en) * 2018-12-29 2020-07-07 西安四维图新信息技术有限公司 Electronic map display method, terminal and electronic equipment
CN112102427A (en) * 2020-11-06 2020-12-18 北京完美知识科技有限公司 Editing method and device of history map, storage medium and computer equipment
CN112199525A (en) * 2020-09-14 2021-01-08 北京绘晴科技有限公司 Generalized historical object research device and method based on time axis
CN112307145A (en) * 2020-10-20 2021-02-02 北京完美知识科技有限公司 Batch updating method, device, medium and equipment for historical map data

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765826A (en) * 2006-09-29 2015-07-08 德卡尔塔公司 Dynamically configured rendering of digital maps
CN101606039A (en) * 2007-01-08 2009-12-16 微软公司 Dynamic map according to customer parameter presents
US20090096807A1 (en) * 2007-08-27 2009-04-16 Silverstein Jonathan C Systems and methods for image colorization
CN104077394A (en) * 2014-07-01 2014-10-01 东南大学 Urban historical map restoration method based on spatial grid hierarchical positioning
CA3010437A1 (en) * 2016-01-05 2017-07-13 Allstate Insurance Company Data processing system communicating with a map data processing system to generate a display of one or more segments of one or more vehicle routes
CN105740339A (en) * 2016-01-25 2016-07-06 河北中科恒运软件科技股份有限公司 Civil administration big data fusion and management system
CN109976600A (en) * 2017-12-28 2019-07-05 上海擎感智能科技有限公司 Map color matching method and intelligent terminal
CN111382223A (en) * 2018-12-29 2020-07-07 西安四维图新信息技术有限公司 Electronic map display method, terminal and electronic equipment
CN111324685A (en) * 2020-02-28 2020-06-23 天津完美引力科技有限公司 Method, device and system for processing historical map data
CN112199525A (en) * 2020-09-14 2021-01-08 北京绘晴科技有限公司 Generalized historical object research device and method based on time axis
CN112307145A (en) * 2020-10-20 2021-02-02 北京完美知识科技有限公司 Batch updating method, device, medium and equipment for historical map data
CN112102427A (en) * 2020-11-06 2020-12-18 北京完美知识科技有限公司 Editing method and device of history map, storage medium and computer equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
宋旭景;: "历史的另一只眼――地图", 出版人, no. 01, pages 110 - 113 *
王丹;赵丽荣;张东升;: "历史地图编辑设计探讨――编制吉林省地图集历史沿革图后记", 测绘与空间地理信息, no. 06, pages 214 - 215 *
马青;许盘清;曾志雄;沈婕;闾国年;龙毅;吴明光;: "历史地图优化表达与设计方法――以前四史地图集为例", 南京师范大学学报(工程技术版), no. 02, pages 54 - 60 *

Similar Documents

Publication Publication Date Title
CN107015985B (en) Data storage and acquisition method and device
EP3163466A1 (en) Trajectory data inquiry method and apparatus
US11977719B2 (en) Mode setting method and device of monitoring system
CN108920105B (en) Community structure-based graph data distributed storage method and device
CN106547870A (en) Point table method and device of data base
CN109903079B (en) Information processing method, device and storage medium
CN110472216B (en) Method and device for determining field, storage medium and electronic device
CN111369599A (en) Image matching method, device and apparatus and storage medium
CN105630419A (en) Partition view sending method of resource pools and management node
CN113190610A (en) Map color matching method, device and storage medium
CN108710514B (en) Object jump control method and device, storage medium and electronic device
CN114491085B (en) Graph data storage method and distributed graph data calculation method
CN111369270A (en) Method, device and system for distributing reward resources
CN112559118A (en) Application data migration method and device, electronic equipment and storage medium
KR102337800B1 (en) Project workflow design method using online work-based database of previously performed projects and apparatus of the same
CN114722293A (en) Information processing method, device, equipment and medium
CN117097789A (en) Data processing method and device, electronic equipment and storage medium
CN106658082B (en) A kind of method and device of dynamic more new data
CN114493378A (en) Index acquisition method and device of industrial equipment and computer equipment
CN110782215B (en) Goods source determining method, device, equipment and storage medium
CN111694994B (en) Information processing method and device
CN110874268B (en) Data processing method, device and equipment
CN112788768A (en) Communication resource allocation method and device
CN113541993A (en) Network evaluation method and device, network index processing method, equipment and medium
CN110751204A (en) Data fusion method and device, storage medium and electronic device

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