Topographic map data generation method and device, equipment and medium
By automatically converting the first topographic map data into the second topographic map data, the problem of high cost and low efficiency of topographic map data generation in traditional methods is solved, and the effect of quickly responding to large-scale update needs is achieved.
Patent Information
- Application Number
- CN202411277676.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-09-12
AI Technical Summary
Traditional topographic map data generation methods rely on manual outdoor measurement, which is costly, risky and inefficient, making it difficult to quickly respond to the needs of large-scale topographic map data updates.
By acquiring the first topographic map data, the correspondence between its encoding and the second topographic map data is determined, and the second topographic map data is generated based on these relationships, and batch automatic conversion of the first topographic map data to the second topographic map data is realized. , reduce manual intervention, reduce costs and risks, and improve generation efficiency.
It realizes the automatic conversion of topographic map data, reduces generation costs and risks, improves the generation efficiency of topographic map data, and can quickly respond to large-scale topographic map data update requirements.
Smart Images

Figure CN119202114A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of surveying and mapping technology, and in particular to a method, device, equipment and medium for generating topographic map data. Background Art
[0002] In the field of surveying and mapping technology, topographic map data serves as the basic data for various engineering planning, urban construction, environmental protection, disaster prevention and mitigation, etc. Its accuracy and timeliness are crucial to the scientific nature of decision-making and the smooth implementation of projects.
[0003] In the related technology, the traditional method of generating topographic map data is highly dependent on manual outdoor measurement methods. For example, relevant technicians use total stations, global positioning system (GPS) measurement equipment and other tools to measure and collect topographic map data point by point or area by area in outdoor environments.
[0004] However, although manual outdoor measurement methods can provide topographic map data with a certain degree of accuracy, they face many challenges: first, outdoor measurement is limited by natural conditions such as weather and terrain, and is costly and risky; second, manual measurement is inefficient and it is difficult to quickly respond to the needs of large-scale topographic map data updates. Summary of the invention
[0005] Based on the above problems, the present application provides a method, device, equipment and medium for generating topographic map data, which can reduce the cost and risk of generating topographic map data while improving the efficiency of generating topographic map data and can quickly respond to the needs of large-scale topographic map data updates.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] In a first aspect, the present application discloses a method for generating topographic map data, the method comprising:
[0008] Acquiring first topographic map data;
[0009] Determining a first correspondence between a code of the first topographic map data and a code of the second topographic map data, and determining a second correspondence between an attribute field of the first topographic map data and an attribute field of the second topographic map data, wherein the first topographic map data and the second topographic map data have different data standards;
[0010] Second topographic map data are generated according to the first topographic map data, the first corresponding relationship, and the second corresponding relationship.
[0011] Optionally, the determining a first correspondence between the encoding of the first topographic map data and the encoding of the second topographic map data, and the determining a second correspondence between the attribute field of the first topographic map data and the attribute field of the second topographic map data, comprises:
[0012] Determine a coding mapping table between the first topographic map data and the second topographic map data, and determine an attribute mapping table between the first topographic map data and the second topographic map data;
[0013] Generating second topographic map data according to the first topographic map data, the first corresponding relationship and the second corresponding relationship includes:
[0014] According to the coding mapping table, the spatial information of the first topographic map data is converted into the spatial information of the second topographic map data, and according to the attribute mapping table, the attribute field of the first topographic map data is converted into the attribute field of the second topographic map data;
[0015] The second topographic map data are generated according to the spatial information and the attribute fields of the second topographic map data.
[0016] Optionally, after executing the step of generating the second topographic map data, the method further comprises:
[0017] According to the scale corresponding to the second map data, determining a map template corresponding to the scale;
[0018] A second topographic map image is generated according to the second topographic map data and the mapping template.
[0019] Optionally, after executing the step of generating the second topographic map data, the method further comprises:
[0020] establishing a second topographic map data set, wherein the second topographic map data set includes a plurality of the second topographic map data;
[0021] Creating a field index for each attribute field in the second topographic map dataset, and / or creating a spatial index for each spatial information in the second topographic map dataset;
[0022] In response to the field index in the first search instruction, the attribute field corresponding to the field index is obtained from the second topographic map dataset, and / or, in response to the spatial index in the second search instruction, the spatial information corresponding to the spatial index is obtained from the second topographic map dataset.
[0023] Optionally, the step of creating a field index for each attribute field in the second topographic map dataset and / or the step of creating a spatial index for each piece of spatial information in the second topographic map dataset comprises:
[0024] splitting the second topographic map dataset into a plurality of sub-datasets;
[0025] Creating a field index for each attribute field in a target sub-dataset of the plurality of sub-datasets, and / or creating a spatial index for each piece of spatial information in a target sub-dataset of the plurality of sub-datasets;
[0026] The step of acquiring, in response to the field index in the first search instruction, an attribute field corresponding to the field index from the second topographic map dataset, and / or, in response to the spatial index in the second search instruction, acquiring, in response to the spatial index in the second search instruction, spatial information corresponding to the spatial index from the second topographic map dataset, comprises:
[0027] In response to the field index in the first search instruction, the attribute field corresponding to the field index is obtained from the target sub-dataset, and / or, in response to the spatial index in the second search instruction, the spatial information corresponding to the spatial index is obtained from the target sub-dataset.
[0028] In a second aspect, the present application discloses a device for generating topographic map data, the device comprising: an acquisition module, a determination module and a generation module;
[0029] The acquisition module is used to acquire first topographic map data;
[0030] The determining module is used to determine a first correspondence between a code of the first topographic map data and a code of the second topographic map data, and to determine a second correspondence between an attribute field of the first topographic map data and an attribute field of the second topographic map data, wherein the data standards of the first topographic map data and the second topographic map data are different;
[0031] The generating module is used to generate second topographic map data according to the first topographic map data, the first corresponding relationship and the second corresponding relationship.
[0032] Optionally, the determination module is specifically used to: determine a coding mapping table between the first topographic map data and the second topographic map data, and determine an attribute mapping table between the first topographic map data and the second topographic map data;
[0033] The generation module includes: a conversion submodule and a generation submodule;
[0034] The conversion submodule is used to convert the spatial information of the first topographic map data into the spatial information of the second topographic map data according to the coding mapping table, and to convert the attribute field of the first topographic map data into the attribute field of the second topographic map data according to the attribute mapping table;
[0035] The generating submodule is used to generate the second topographic map data according to the spatial information and attribute fields of the second topographic map data.
[0036] Optionally, the device further comprises: a template determination module and an image generation module;
[0037] The template determination module is used to determine a map template corresponding to the scale according to the scale corresponding to the second map data;
[0038] The image generation module is used to generate a second topographic map image according to the second topographic map data and the mapping template.
[0039] In a third aspect, the present application discloses a device for generating topographic map data, the device comprising: a memory and a processor;
[0040] The memory is used to store programs;
[0041] The processor is used to execute the program to implement the various steps of the method for generating topographic map data as described in the first aspect.
[0042] In a fourth aspect, the present application discloses a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for generating topographic map data as described in the first aspect are implemented.
[0043] Compared with the prior art, this application has the following beneficial effects:
[0044] The embodiment of the present application provides a method, device, equipment and medium for generating topographic map data, the method comprising: obtaining first topographic map data; determining a first correspondence between the encoding of the first topographic map data and the encoding of the second topographic map data, and determining a second correspondence between the attribute field of the first topographic map data and the attribute field of the second topographic map data; generating the second topographic map data according to the first topographic map data, the first correspondence and the second correspondence. Thus, through the method for generating topographic map data provided by the embodiment of the present application, batch automatic conversion from the first topographic map data to the second topographic map data is realized, and since the automatic conversion method can reduce manual intervention, the cost and risk of generating topographic map data are reduced. At the same time, since the automatic conversion method can quickly respond to the update requirements of topographic map data, the generation efficiency of topographic map data is improved, and it can quickly respond to the needs of large-scale topographic map data updates. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 A flowchart of a method for generating topographic map data provided in an embodiment of the present application;
[0047] Figure 2 A flowchart of another method for generating topographic map data provided in an embodiment of the present application;
[0048] Figure 3 A schematic diagram of a device for generating topographic map data provided in an embodiment of the present application;
[0049] Figure 4 A schematic diagram of a computer-readable medium provided for an embodiment of the present application. DETAILED DESCRIPTION
[0050] As described above, in the relevant technology, the traditional method of generating topographic map data is highly dependent on manual outdoor measurement methods. For example, relevant technicians use total stations, global positioning system (GPS) measurement equipment and other tools to measure and collect topographic map data point by point or area by area in outdoor environments.
[0051] However, although manual outdoor measurement methods can provide topographic map data with a certain degree of accuracy, they face many challenges: first, outdoor measurement is limited by natural conditions such as weather and terrain, and is costly and risky; second, manual measurement is inefficient and it is difficult to quickly respond to the needs of large-scale topographic map data updates.
[0052] After research, the inventor has proposed a method, device, equipment and medium for generating topographic map data. Through the method for generating topographic map data provided in the embodiment of the present application, batch automatic conversion of first topographic map data to second topographic map data is realized. Since the automatic conversion method can reduce manual intervention, the cost and risk of generating topographic map data are reduced. At the same time, since the automatic conversion method can quickly respond to the update requirements of topographic map data, the generation efficiency of topographic map data is improved, and it can quickly respond to the needs of large-scale topographic map data updates.
[0053] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] See also Figure 1 , which is a flow chart of a method for generating topographic map data provided in an embodiment of the present application. The method comprises:
[0055] S101: Acquire first topographic map data.
[0056] First, first topographic map data is obtained from data sources such as a Geographic Information System (GIS), a database (such as Oracle, SQL Server or PostgreSQL) and a file server.
[0057] S102: Determine a first correspondence between the encoding of the first topographic map data and the encoding of the second topographic map data, and determine a second correspondence between the attribute field of the first topographic map data and the attribute field of the second topographic map data, wherein the data standards of the first topographic map data and the second topographic map data are different.
[0058] A code is an identifier used to uniquely identify a geographic entity or data item. Since the first topographic map data and the second topographic map data follow different data standards, their coding systems may be completely different. For example, the first topographic map data may use digital codes to represent different types of vegetation, while the second topographic map data may use a combination of letters and numbers to represent different types of vegetation. Specifically, the first correspondence between the code of the first topographic map data and the code of the second topographic map data can be determined by manual interpretation, reference to relevant standards and specifications, and in combination with actual data conditions.
[0059] The attribute field describes the parameters or characteristics (i.e., attributes) of a geographic entity. The attributes represented by the attribute field can be quantitative (such as length, area, height, etc.) or qualitative (such as type, name, color, etc.). The attribute field is used to distinguish different geographic entities and provide detailed information about these entities. Since the first topographic map data and the second topographic map data follow different data standards, there may be significant differences in their attribute field naming, data types, and field meanings. Similarly, the second correspondence between the attribute fields of the first topographic map data and the attribute fields of the second topographic map data can be determined by manual interpretation, reference to relevant standards and specifications, and in combination with actual data conditions.
[0060] S103: Generate second topographic map data according to the first topographic map data, the first corresponding relationship and the second corresponding relationship.
[0061] Specifically, first, the first topographic map data is parsed to identify and extract all codes and attribute fields. Secondly, according to the first correspondence, the code of the first topographic map data is converted into the code required by the second topographic map data, and, according to the second correspondence, the attribute field of the first topographic map data is converted into an attribute field matching the second topographic map data. Subsequently, the second topographic map data is generated using the converted code and attribute field.
[0062] In summary, the embodiment of the present application provides a method for generating topographic map data, which realizes batch automatic conversion of first topographic map data to second topographic map data. Since the automatic conversion method can reduce manual intervention, the cost and risk of generating topographic map data are reduced. At the same time, since the automatic conversion method can quickly respond to the update requirements of topographic map data, the generation efficiency of topographic map data is improved, and the requirements of large-scale topographic map data update can be quickly responded.
[0063] See also Figure 2 , which is a flow chart of another method for generating topographic map data provided in an embodiment of the present application. For ease of understanding, the present application takes the first topographic map data as GDX topographic map data and the second topographic map data as GB topographic map data as an example for explanation. The method includes:
[0064] S201: Obtain GDX topographic map data.
[0065] In some specific implementations, after acquiring the GDX topographic map data, one or more operations of data verification, data processing, and data standardization may be performed to ensure the accuracy and availability of the GDX topographic map data.
[0066] Wherein, data verification refers to checking whether the GDX topographic map data is complete and whether there is any damaged or missing part. After confirming that the GDX topographic map data is complete and there is no damaged or missing part, step S202 is executed.
[0067] Data processing refers to pre-processing operations such as cropping and reprojection on GDX topographic map data for subsequent data processing and analysis. Specifically, cropping refers to cropping the GDX topographic map data of a specific area. Reprojection refers to converting GDX topographic map data from one coordinate system to another coordinate system to meet specific spatial analysis requirements. It should be noted that this application does not limit the specific data processing method.
[0068] Data standardization refers to the process of converting GDX topographic map data into a data format that can be recognized by the software through software, so as to carry out efficient data processing and analysis. Exemplarily, GDX topographic map data in Shpfile format can be converted into a data format that can be recognized by SuperMap software through SuperMap software. Among them, SuperMap is a GIS software platform that provides rich GIS functions and tools for the storage, management, analysis and visualization of geographic data. It should be noted that in the process of standardization, it is necessary to maintain the integrity of the GDX topographic map data to ensure that no important spatial information and attribute fields are lost. In addition, the GDX topographic map data after the conversion format should be consistent with the original GDX topographic map data in terms of spatial information and attribute fields to ensure the accuracy of the GDX topographic map data.
[0069] S202: Establish a coding mapping table between GDX topographic map data and GB topographic map data.
[0070] The code mapping table is a table used to establish the code correspondence between GDX topographic map data and GB topographic map data during the process of generating GB topographic map data.
[0071] In some specific implementations, it is necessary to find the correspondence between the encoding of GDX topographic map data and the encoding of GB topographic map data through manual interpretation. Subsequently, according to the correspondence found, a coding mapping table is created according to the coding mapping table template. Specifically, the coding mapping table needs to include the encoding of GDX topographic map data (GDX code), the Chinese description of the encoding of GDX topographic map data (GDX Object Name), the GDX data set name, the encoding of GB topographic map data (GBcode), and the GB data set name. Among them, the Chinese description of the encoding of GDX topographic map data is mainly used to query the corresponding coding information during manual interpretation, and does not directly participate in the data conversion process. See Table 1, which is a schematic diagram of a coding mapping table provided in an embodiment of the present application.
[0072] Table 1
[0073]
[0074] It is understandable that, through the code mapping table, the code in the GDX topographic map data corresponding to the GB topographic map data can be accurately found in the automated conversion process, thereby achieving accurate data conversion. The advantage of this method is that it can improve the accuracy and efficiency of data conversion while reducing the need for manual intervention.
[0075] S203: Establishing an attribute mapping table between the GDX topographic map data and the GB topographic map data.
[0076] The Attribute Mapping Table is a table used to establish the corresponding relationship between the attribute fields of GDX topographic map data and GB topographic map data. The main function of the attribute mapping table is to ensure the correct migration and update of attribute fields during the data conversion process to maintain the integrity and accuracy of the topographic map data.
[0077] In some specific implementations, it is necessary to find the correspondence between the attribute fields of the GDX topographic map data and the attribute fields of the GB topographic map data through manual interpretation. Subsequently, according to the correspondence found, an attribute mapping table is created according to the attribute mapping table template. Specifically, the attribute mapping table includes the GDX data set name, the first attribute field and the second attribute field. Among them, the first attribute field refers to the name of the field to be converted in the GDX topographic map data set, and the second attribute field refers to the name of the field to be updated in the GB topographic map data set. See Table 2, which is a schematic diagram of an attribute mapping table provided in an embodiment of the present application.
[0078] Table 2
[0079] GDX dataset name First attribute field Second attribute field Traffic Points MingC name Traffic Points BianH serial number Traffic Points LeiX type Traffic Points C mileage Transportation MingC name Transportation BianH serial number Traffic BianH serial number Traffic DengJ grade Traffic LeiX type
[0080] It can be understood that, through the attribute mapping table, the correct migration and update of the attribute fields during the data conversion process can be ensured, thereby generating GB topographic map data that meets the requirements.
[0081] S204: According to the coding mapping table, convert the spatial information of the GDX topographic map data into the spatial information of the GB topographic map data; and according to the attribute mapping table, map the attribute field of the GDX topographic map data into the attribute field of the GB topographic map data.
[0082] In the method for generating topographic map data provided in the embodiment of the present application, parsing can be performed according to the coding mapping table established in step S102, which records in detail the correspondence between the coding of the GDX topographic map data and the coding of the GB topographic map data. Therefore, each coding of the GDX topographic map data (such as roads, rivers, etc.) can be identified and mapped to the corresponding coding of the GB topographic map data, thereby obtaining the spatial information of the GB topographic map data and generating a corresponding spatial information record set.
[0083] In the method for generating topographic map data provided in an embodiment of the present application, the attribute mapping table constructed in the step S103 is parsed, and the attribute mapping table records the correspondence between the attribute fields of the GDX topographic map data and the attribute fields of the GB topographic map data. Therefore, each attribute field of the GDX topographic map data (such as name, height, width, etc.) can be identified and mapped to the corresponding attribute field of the GB topographic map data, thereby obtaining the attribute field of the GB topographic map data and generating a corresponding attribute field record set.
[0084] It can be understood that this process is achieved through computer automation processing technology, without the need for manual conversion one by one, which greatly improves the efficiency and accuracy of data conversion.
[0085] It should be noted that after completing the conversion of spatial information and attribute fields, it is also necessary to configure the metadata table (Metadata Table). The metadata table contains standard format information about GB topographic map data, such as dataset name, version information, creation time, update time, etc. It is necessary to generate the metadata attribute dataset of the current data based on the built-in metadata template (containing all necessary metadata fields, such as dataset name, version information, creation date, update date, data source, data quality description, etc.), and update the relevant attribute data in the metadata attribute dataset based on the current converted GB topographic map data. By configuring the metadata table, not only the integrity and traceability of GB topographic map data are improved, but also a more convenient and efficient way of data management and use is provided for users.
[0086] S205: Generate GB topographic map data according to the spatial information and attribute fields of the GB topographic map data.
[0087] In some specific implementations, after the GB topographic map data is generated and the GB topographic map data set is obtained, in order to improve the efficiency of data query in the GB topographic map data set, especially when the GB topographic map data set is very large, a field index can be created for each attribute field in the GB topographic map data set (such as the ID, name, type, etc. of the geographic element), and / or a spatial index can be created for each spatial information in the GB topographic map data set (such as geometric objects such as points, lines, and surfaces). Among them, the field index includes B-tree (such as B+ tree) index, hash index, etc. These index structures organize and store field values in different ways to quickly locate specific records in the data table. Spatial indexes include R-tree (such as R* tree), quadtree, KD tree, etc. These index structures can effectively organize and store spatial objects and support efficient spatial query operations.
[0088] Then, in response to the field index in the first search instruction, the attribute field corresponding to the field index can be obtained from the GB topographic map data set, and / or, in response to the spatial index in the second search instruction, the spatial information corresponding to the spatial index can be obtained from the GB topographic map data set without scanning the entire GB topographic map data set. Thus, by creating a field index and / or a spatial index, the query speed can be greatly improved when querying GB topographic map data, avoiding checking each GB topographic map data one by one.
[0089] In some specific implementations, after the GB topographic map data is generated and the GB topographic map data set is obtained, data splitting processing and / or data fusion processing may be performed to optimize the management, analysis and decision support process of the GB topographic map data.
[0090] Among them, data splitting processing is the process of splitting a large and complex data set (which can be a GB topographic map data set or a subset of a GB topographic map data set) into multiple smaller and more manageable data sets. The advantage of this processing method is that it can improve the flexibility and efficiency of data management. By splitting the data set, data can be organized and managed according to different needs (such as region, time, data type, etc.), making data query, update, and maintenance operations more convenient. For example, when processing a nationwide data set, the data set can be split into data sets for multiple provinces or regions to facilitate regional data management and analysis.
[0091] Data fusion processing is the process of merging multiple related, smaller data sets into a comprehensive, larger data set. The advantage of this processing method is that it can provide more comprehensive and richer data resources, which helps users to conduct more in-depth data analysis and decision support. Through the fused data set, redundancy and inconsistency between data can be eliminated, and the overall quality and availability of data can be improved. For example, when processing data sets from different sources, they can be fused into a unified data set to facilitate cross-regional data analysis and comparison.
[0092] It should be noted that the second topographic map dataset can also be split into multiple sub-datasets. Subsequently, in response to the field index in the first search instruction, the attribute field corresponding to the field index is obtained from the target sub-dataset, and / or, in response to the spatial index in the second search instruction, the spatial information corresponding to the spatial index is obtained from the target sub-dataset. This application does not limit this.
[0093] S206: Generate a GB topographic map image according to the GB topographic map data.
[0094] In some specific implementations, before generating a GB topographic map image, it is also necessary to determine the scale corresponding to the GB topographic map data. The scale is the proportional relationship between the distance on the map and the actual ground distance, which determines the level of detail and accuracy of the map. After determining the scale corresponding to the GB topographic map data and obtaining a mapping template that best matches or has a similar footprint to the scale, the mapping template can be applied to the GB topographic map data to generate a GB topographic map image. Among them, the mapping template is pre-designed and contains the layout and rules of visual elements such as various symbols, colors, and styles of the topographic map. The application of the mapping template ensures that the generated topographic map image is visually compliant with the specifications and is easy to read and understand.
[0095] It should be noted that in the process of generating GB topographic map images, some optimization processing is also required according to the complexity of GB topographic map data and the detail level of the mapping template, such as reducing redundant data, smoothing lines, adjusting color contrast, etc., to ensure that the generated GB topographic map images are of high quality and good effect.
[0096] S207: Save the GB topographic map data and GB topographic map image.
[0097] Finally, the generated GB topographic map data and GB topographic map images will be saved in the workspace of the software (such as SuperMap software). The workspace is used to organize and manage various data and resources in GIS projects. Saving the generated GB topographic map image in the SuperMap workspace can facilitate users to perform subsequent map editing, analysis, and sharing operations.
[0098] In summary, the embodiment of the present application provides a method for generating topographic map data, which realizes batch automatic conversion of first topographic map data to second topographic map data. Since the automatic conversion method can reduce manual intervention, the cost and risk of generating topographic map data are reduced. At the same time, since the automatic conversion method can quickly respond to the update requirements of topographic map data, the generation efficiency of topographic map data is improved, and the requirements of large-scale topographic map data update can be quickly responded.
[0099] See also Figure 3 , which is a schematic diagram of a device for generating topographic map data provided in an embodiment of the present application. The device 300 for generating topographic map data includes: an acquisition module 301 , a determination module 302 and a generation module 303 .
[0100] The acquisition module 301 is used to acquire first topographic map data.
[0101] The determination module 302 is used to determine a first correspondence between the encoding of the first topographic map data and the encoding of the second topographic map data, and to determine a second correspondence between the attribute field of the first topographic map data and the attribute field of the second topographic map data, wherein the data standards of the first topographic map data and the second topographic map data are different.
[0102] The generating module 303 is used to generate the second topographic map data according to the first topographic map data, the first corresponding relationship and the second corresponding relationship.
[0103] In some specific implementations, the determination module 302 is specifically used to: determine a coding mapping table between the first topographic map data and the second topographic map data, and determine an attribute mapping table between the first topographic map data and the second topographic map data;
[0104] The generation module 303 includes: a conversion submodule and a generation submodule;
[0105] A conversion submodule, for converting the spatial information of the first topographic map data into the spatial information of the second topographic map data according to the coding mapping table, and converting the attribute field of the first topographic map data into the attribute field of the second topographic map data according to the attribute mapping table;
[0106] The generating submodule is used to generate the second topographic map data according to the spatial information and attribute fields of the second topographic map data.
[0107] In some specific implementations, the topographic map data generation device 300 further includes: a template determination module and an image generation module;
[0108] A template determination module, used to determine a map template corresponding to the scale according to the scale corresponding to the second map data;
[0109] The image generation module is used to generate a second topographic map image according to the second topographic map data and the mapping template.
[0110] In some specific implementations, the topographic map data generation device 300 further includes: a data set building module, an index creation module and an index query module;
[0111] A data set establishment module, used for establishing a second topographic map data set, wherein the second topographic map data set includes a plurality of second topographic map data;
[0112] An index creation module, used to create a field index for each attribute field in the second topographic map dataset, and / or to create a spatial index for each spatial information in the second topographic map dataset;
[0113] An index query module is used to obtain attribute fields corresponding to the field index from the second topographic map dataset in response to the field index in the first search instruction, and / or, in response to the spatial index in the second search instruction, obtain spatial information corresponding to the spatial index from the second topographic map dataset.
[0114] In some specific implementations, the index creation module is specifically used to: split the second topographic map dataset into multiple sub-datasets; create a field index for each attribute field in a target sub-dataset of the multiple sub-datasets, and / or create a spatial index for each spatial information in the target sub-dataset of the multiple sub-datasets;
[0115] The index query module is specifically used to: in response to the field index in the first search instruction, obtain the attribute field corresponding to the field index from the target sub-dataset, and / or, in response to the spatial index in the second search instruction, obtain the spatial information corresponding to the spatial index from the target sub-dataset.
[0116] In summary, the embodiment of the present application provides a device for generating topographic map data, which realizes batch automatic conversion of first topographic map data to second topographic map data. Since the automatic conversion device can reduce manual intervention, the cost and risk of generating topographic map data are reduced. At the same time, since the automatic conversion device can quickly respond to the update requirements of topographic map data, the generation efficiency of topographic map data is improved, and it can quickly respond to the needs of large-scale topographic map data updates.
[0117] The embodiment of the present application also provides a corresponding topographic map data generation device and a computer-readable medium for implementing the topographic map data generation method provided in the embodiment of the present application.
[0118] The device for generating topographic map data includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute instructions or codes so that the device executes a method for generating topographic map data in any embodiment of the present application.
[0119] See also Figure 4 , which is a schematic diagram of a computer-readable medium provided in an embodiment of the present application. The computer-readable medium 400 stores a computer program 411, which implements the above-mentioned Figure 1 Steps of a method for generating topographic map data.
[0120] It should be noted that in the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0121] It should be noted that the machine-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0122] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0123] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
[0124] Although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present application. Certain features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.
[0125] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A method for generating topographic map data, characterized in that: The method comprises: Acquiring first topographic map data; Determining a first correspondence between a code of the first topographic map data and a code of the second topographic map data, and determining a second correspondence between an attribute field of the first topographic map data and an attribute field of the second topographic map data, wherein the first topographic map data and the second topographic map data have different data standards; Second topographic map data are generated according to the first topographic map data, the first corresponding relationship, and the second corresponding relationship.
2. The method according to claim 1, characterized in that The determining of a first correspondence between the encoding of the first topographic map data and the encoding of the second topographic map data, and the determining of a second correspondence between the attribute field of the first topographic map data and the attribute field of the second topographic map data, comprises: Determine a coding mapping table between the first topographic map data and the second topographic map data, and determine an attribute mapping table between the first topographic map data and the second topographic map data; Generating second topographic map data according to the first topographic map data, the first corresponding relationship and the second corresponding relationship includes: According to the coding mapping table, the spatial information of the first topographic map data is converted into the spatial information of the second topographic map data, and according to the attribute mapping table, the attribute field of the first topographic map data is converted into the attribute field of the second topographic map data; The second topographic map data are generated according to the spatial information and the attribute fields of the second topographic map data.
3. The method according to claim 1, characterized in that After executing the step of generating the second topographic map data, the method further comprises: According to the scale corresponding to the second map data, determining a map template corresponding to the scale; A second topographic map image is generated according to the second topographic map data and the mapping template.
4. The method according to claim 1, characterized in that: After executing the step of generating the second topographic map data, the method further comprises: establishing a second topographic map data set, wherein the second topographic map data set includes a plurality of the second topographic map data; Creating a field index for each attribute field in the second topographic map dataset, and / or creating a spatial index for each spatial information in the second topographic map dataset; In response to the field index in the first search instruction, the attribute field corresponding to the field index is obtained from the second topographic map dataset, and / or, in response to the spatial index in the second search instruction, the spatial information corresponding to the spatial index is obtained from the second topographic map dataset.
5. The method according to claim 4, characterized in that The step of creating a field index for each attribute field in the second topographic map dataset, and / or creating a spatial index for each spatial information in the second topographic map dataset, comprises: splitting the second topographic map dataset into a plurality of sub-datasets; Creating a field index for each attribute field in a target sub-dataset of the plurality of sub-datasets, and / or creating a spatial index for each piece of spatial information in a target sub-dataset of the plurality of sub-datasets; The step of acquiring, in response to the field index in the first search instruction, an attribute field corresponding to the field index from the second topographic map dataset, and / or, in response to the spatial index in the second search instruction, acquiring, in response to the spatial index in the second search instruction, spatial information corresponding to the spatial index from the second topographic map dataset, comprises: In response to the field index in the first search instruction, the attribute field corresponding to the field index is obtained from the target sub-dataset, and / or, in response to the spatial index in the second search instruction, the spatial information corresponding to the spatial index is obtained from the target sub-dataset.
6. A device for generating topographic map data, characterized in that: The device comprises: an acquisition module, a determination module and a generation module; The acquisition module is used to acquire first topographic map data; The determining module is used to determine a first correspondence between a code of the first topographic map data and a code of the second topographic map data, and to determine a second correspondence between an attribute field of the first topographic map data and an attribute field of the second topographic map data, wherein the data standards of the first topographic map data and the second topographic map data are different; The generating module is used to generate second topographic map data according to the first topographic map data, the first corresponding relationship and the second corresponding relationship.
7. The device according to claim 6, characterized in that The determination module is specifically used to: determine a coding mapping table between the first topographic map data and the second topographic map data, and determine an attribute mapping table between the first topographic map data and the second topographic map data; The generation module includes: a conversion submodule and a generation submodule; The conversion submodule is used to convert the spatial information of the first topographic map data into the spatial information of the second topographic map data according to the coding mapping table, and to convert the attribute field of the first topographic map data into the attribute field of the second topographic map data according to the attribute mapping table; The generating submodule is used to generate the second topographic map data according to the spatial information and attribute fields of the second topographic map data.
8. The device according to claim 6, characterized in that The device also includes: a template determination module and an image generation module; The template determination module is used to determine a map template corresponding to the scale according to the scale corresponding to the second map data; The image generation module is used to generate a second topographic map image according to the second topographic map data and the mapping template.
9. A device for generating topographic map data, characterized in that: The device comprises: a memory and a processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the method for generating topographic map data according to any one of claims 1 to 5.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the method for generating topographic map data according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Efficient fusion and retrieval system and method for multi-source place name data
CN112905728A
Geographic information database generation method and device
CN115422315A
Spatial data division method and system
CN116796083A
Rapid overseas topographic map making method and system, electronic equipment and storage medium
CN118397207A
