A method, apparatus, electronic device and storage medium for metallurgical general drawing.
By adopting a metallurgical general mapping method and setting mapping standards and specifications to classify and vector-tile data of metallurgical enterprise parks, the problem of redundancy in vector-tile electronic maps caused by the complexity of terrain features in metallurgical enterprise parks was solved, and efficient mapping and updating were achieved.
Patent Information
- Application Number
- CN202311251521.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2023-09-05
- Filing Date
- 2023-09-26
- Publication Date
- 2026-03-06
- Estimated Expiration
- 2043-09-26
AI Technical Summary
In existing technologies, the complex terrain, diverse pipeline types, and numerous equipment facilities in metallurgical enterprise parks make it impossible to plan vector tile electronic maps uniformly, resulting in redundancy and complex production and updating processes.
The metallurgical general map mapping method is adopted, and mapping standards and specifications are set. The general map mapping dataset is classified and stored through a three-level organizational structure, vector tiling is performed, and a metallurgical general map database is generated. The data is named and coded according to the mapping standards and specifications. The vector tiling dataset is referenced during mapping to generate the metallurgical general map.
It enables unified planning of vector tile electronic maps, avoids duplicate data storage, improves cartographic efficiency, reduces redundancy, and simplifies the production and update process.
Smart Images

Figure CN117271490B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of metallurgical general drawing technology, specifically to a metallurgical general drawing method, apparatus, electronic device, and storage medium. Background Technology
[0002] Metallurgical industrial parks are characterized by complex terrain features, diverse pipeline types, and numerous equipment and facilities. General geographic information element classification and mapping standards are insufficient to cover the needs of terrain classification and display. The formulation of metallurgical general map mapping standards can ensure data standardization, reusable methods, and scalable processes. With the continuous development of geographic information technology and computer technology, traditional raster tile-based map mapping services cannot meet the growing visualization needs of users. Map visualization faces significant challenges such as massive amounts of map data, a broad user base, and diverse map styles. Furthermore, traditional online mapmaking not only requires cartographers to possess high professional skills but also suffers from repetitive workloads and low efficiency. Therefore, achieving rapid, efficient, and intelligent mapmaking of geospatial data in a network environment has become a new direction for its development. Vector tile electronic maps, as an emerging internet electronic map service, have many advantages, including lightweight data, high-definition display, rapid response, efficient updates, single-source diversity, and strong interactivity.
[0003] In existing technologies, as terrain features become increasingly complex and the types of pipelines and equipment increase, it becomes impossible to uniformly plan vector tile electronic maps, making them increasingly redundant and the process of creating and updating them increasingly complicated.
[0004] Therefore, there is an urgent need to propose a metallurgical general map making method, device, electronic equipment and storage medium to solve the technical problem that the existing technology cannot uniformly plan vector tile electronic maps, making the vector tile electronic maps increasingly redundant. Summary of the Invention
[0005] In view of this, it is necessary to provide a metallurgical general map making method, apparatus, electronic device and storage medium to solve the technical problem in the prior art that the vector tile electronic map cannot be uniformly planned, making the vector tile electronic map increasingly redundant.
[0006] In a first aspect, the present invention provides a method for drawing metallurgical general plans, comprising:
[0007] Obtain the general map mapping dataset for the map to be drawn, and set the metallurgical general map cartography standards and specifications;
[0008] The general map mapping dataset is classified and stored according to the metallurgical general map drafting standard and specification to obtain the metallurgical general map database;
[0009] The metallurgical general diagram database is vector-sliced to obtain a vector slice dataset;
[0010] The map to be drawn is plotted based on the vector tile dataset to obtain the overall metallurgical map.
[0011] In some possible implementations, the step of classifying and storing the general map mapping dataset according to the metallurgical general map drafting standard specifications to obtain a metallurgical general map database includes:
[0012] According to the metallurgical general map mapping standard, a three-layer organizational structure is determined; the three-layer organizational structure is the general map surveying dataset - local feature type classification datasets - feature sets of various element types; the local feature type classification datasets include basic feature categories and pipeline categories; the feature sets of various element types include a preset number of elements;
[0013] The data in the general map mapping dataset are classified according to the basic feature class and the pipeline class to obtain the basic feature class dataset and the pipeline class dataset.
[0014] The basic feature dataset and the pipeline dataset are classified according to the preset number of features to obtain a preset number of basic feature sub-feature datasets and a preset number of pipeline sub-feature datasets.
[0015] The data is named according to the local land cover type and element type of each sub-feature dataset in the preset number of basic land cover type sub-feature datasets and the preset number of pipeline type sub-feature datasets, and the data in each sub-feature dataset is stored to obtain a metallurgical general map database that conforms to the metallurgical general map mapping standard specification.
[0016] In some possible implementations, the vector slicing of the metallurgical general map database to obtain a vector slice dataset includes:
[0017] The metallurgical general layout database is preprocessed to obtain a target format dataset;
[0018] The target format dataset is then sliced into vector slices to obtain a vector slice dataset.
[0019] In some possible implementations, the preprocessing of the metallurgical general drawing database to obtain a target format dataset includes:
[0020] The coordinate systems of each layer of data in the metallurgical general map database are transformed to obtain a geographic coordinate system metallurgical general map dataset.
[0021] The data format of the geographic coordinate system metallurgical general map dataset is converted to obtain a target format dataset; wherein, each layer of data in the geographic coordinate system metallurgical general map dataset generates a corresponding target format file, and the target format dataset includes all target format files of all layer data.
[0022] In some possible implementations, the step of vector slicing the target format dataset to obtain a vector slice dataset includes:
[0023] The target format dataset is sliced using a preset slicing tool to obtain a preset number of sliced data.
[0024] The hierarchy, rows, and columns of each slice data are encoded and saved according to the slice hierarchy in the preset slicing tool to obtain a vector slice dataset including the preset number of slice data.
[0025] In some possible implementations, the preset number of elements includes area symbols, line symbols, and annotation symbols;
[0026] The process of mapping the map to be drawn based on the vector tile dataset to obtain the overall metallurgical map includes:
[0027] Based on the polygon symbol, the line symbol, or the annotation symbol, determine the polygon symbol sub-feature dataset, the line symbol sub-feature dataset, or the annotation symbol sub-feature dataset in the vector slice dataset;
[0028] The attributes of the data in the area symbol sub-feature dataset, the line symbol sub-feature dataset, or the annotation symbol sub-feature dataset in the map to be drawn are set to obtain the metallurgical general map.
[0029] In some possible implementations, the preset number of elements includes dotted symbols;
[0030] The process of mapping the map to be drawn based on the vector tile dataset to obtain the overall metallurgical map includes:
[0031] Set the image icon set according to the aforementioned metallurgical general drawing standard specifications;
[0032] Encode and store all image icons in the image icon set to obtain a sprite sheet;
[0033] The map to be drawn is plotted based on the sprite sheet and the dot symbols to obtain the overall metallurgical map.
[0034] In some possible implementations, the step of mapping the map to be drawn based on the sprite sheet and the dotted symbols to obtain a general metallurgical map includes:
[0035] Based on the dotted symbols, determine the dotted symbol sub-feature dataset in the vector slice dataset;
[0036] In the map to be drawn, the image icons in the sprite sheet are referenced according to the dotted symbol sub-feature dataset and the code corresponding to each image icon to obtain the initial metallurgical general map;
[0037] The attributes of the data in the point symbol sub-element dataset of the initial metallurgical general map are set to obtain the metallurgical general map.
[0038] In some possible implementations, after mapping the map to be drawn based on the vector tile dataset to obtain the overall metallurgical map, the method further includes:
[0039] The basic parameters of the metallurgical general drawing are set, and all the data of the metallurgical general drawing are integrated to obtain the metallurgical general drawing target file;
[0040] The metallurgical general layout and the target file of the metallurgical general layout are published.
[0041] In a second aspect, the present invention also provides an electronic device, including a memory and a processor, wherein,
[0042] Memory, used to store programs;
[0043] The processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the metallurgical general drawing method in any of the above implementations.
[0044] Thirdly, the present invention also provides a computer-readable storage medium for storing a computer-readable program or instruction, which, when executed by a processor, can implement the steps in the metallurgical general drawing method described in any of the above implementations.
[0045] Fourthly, the present invention also provides a metallurgical general drawing apparatus, comprising:
[0046] The dataset acquisition module is used to acquire the general map survey dataset of the map to be drawn and to set the metallurgical general map cartography standards and specifications.
[0047] The data storage module is used to classify and store the general map mapping dataset according to the metallurgical general map drawing standard specifications, so as to obtain the metallurgical general map database;
[0048] The vector slicing module is used to perform vector slicing on the metallurgical general diagram database to obtain a vector slice dataset.
[0049] The general map mapping module is used to map the map to be drawn based on the vector tile dataset to obtain the metallurgical general map.
[0050] The beneficial effects of using the above embodiments are as follows: The metallurgical general map drawing method provided by the present invention establishes a standard specification for metallurgical general map drawing. Data obtained from vector slices in the metallurgical general map can be uniformly set and referenced according to this standard specification, thereby avoiding duplicate data storage and redundancy in the vector slice electronic map. Furthermore, by drawing the metallurgical general map using the standard specification, and standardizing the naming and encoding of all data in the vector slice data, the creation and updating of the metallurgical general map can be simplified, reducing hassle and improving efficiency. Attached Figure Description
[0051] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0052] Figure 1 A schematic flowchart of an embodiment of the metallurgical general drawing method provided by the present invention;
[0053] Figure 2 A schematic diagram of a structural embodiment of an "unreinforced slope" of landform and soil type provided by the present invention;
[0054] Figure 3 A schematic flowchart of an embodiment of the SVG icon provided by the present invention;
[0055] Figure 4 This is a schematic diagram of an embodiment of the metallurgical general drawing apparatus provided by the present invention;
[0056] Figure 5 A schematic diagram of an embodiment of the electronic device provided by the present invention. Detailed Implementation
[0057] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0058] Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor systems and / or microcontroller systems.
[0059] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0060] This invention provides a method, apparatus, electronic device, and storage medium for metallurgical general drawing, which will be described below.
[0061] Figure 1 This is a schematic flowchart of an embodiment of the metallurgical general drawing method provided by the present invention, as shown below. Figure 1 As shown, the methods for drawing general metallurgical plans include:
[0062] S101. Obtain the general map mapping dataset of the map to be drawn, and set the metallurgical general map mapping standard specifications;
[0063] S102. Classify and store the general map mapping dataset according to the metallurgical general map drawing standards and specifications to obtain the metallurgical general map database;
[0064] S103. Perform vector slicing on the metallurgical general diagram database to obtain a vector slice dataset;
[0065] S104. Based on the vector tile dataset, the map to be drawn is plotted to obtain the overall metallurgical map.
[0066] Compared with existing technologies, the metallurgical general map mapping method provided by this invention establishes a standard specification for metallurgical general map mapping. This standard specification allows for the unified setting and referencing of data obtained from vector slices in the metallurgical general map, thereby avoiding redundant data storage and the resulting redundancy in the vector slice electronic map. Furthermore, by using the standard specification for metallurgical general map mapping, all data in the vector slice data is standardized in naming and encoding, which reduces complexity and improves efficiency when creating and updating the metallurgical general map.
[0067] It should be understood that the general map survey dataset obtained in step S101 can be obtained from the cartographic tool or by calling the historically stored general map survey dataset from the storage medium.
[0068] In a specific embodiment of the present invention, the metallurgical general mapping standard specification can be compiled based on the classification and code of basic geographic information elements and the metallurgical engineering surveying specification, supplemented and improved in combination with the actual situation of steel enterprises. In the metallurgical general mapping standard specification, the features of the plant area can be divided into positioning foundation, water system, residential area and facilities, transportation, boundary, landform and soil, vegetation, pipeline, map decoration and metallurgical. The element types include symbol points, simple undirected lines, simple directed lines, composite entities, surface entities and annotations.
[0069] It should be noted that, in order to process the mapping dataset according to the metallurgical general drawing standards and specifications, in some embodiments of the present invention, step S102 includes:
[0070] According to the metallurgical general map mapping standard, a three-layer organizational structure is determined. The three-layer organizational structure is: general map mapping dataset - local feature type classification dataset - feature set of each element type. Local feature type classification datasets include basic feature categories and pipeline categories. Feature set of each element type includes a preset number of elements.
[0071] The data in the general map survey dataset are classified according to basic land cover type and pipeline type to obtain basic land cover type dataset and pipeline type dataset;
[0072] The basic feature dataset and pipeline dataset are classified according to a preset number of features to obtain a preset number of basic feature sub-feature datasets and a preset number of pipeline sub-feature datasets.
[0073] The data is named according to the local land cover type and element type of each sub-feature dataset in the preset number of basic land cover type sub-feature datasets and the preset number of pipeline type sub-feature datasets. The data in each sub-feature dataset is stored to obtain a metallurgical general map database that conforms to the metallurgical general map mapping standard specifications.
[0074] In a specific embodiment of this invention, the surveying data of the steel plant area can be organized and stored in a hierarchical manner according to standards, forming a three-layer organizational structure of "general map dataset - local feature type classification dataset - feature set of each element type". Feature types can be specifically divided into basic feature types and pipeline types. Basic features can include survey control points, water systems and their appurtenances, buildings and structures, transportation and its ancillary facilities, regional boundaries, landforms and soil, and vegetation. Pipeline types can include power pipes, communication pipes, water supply pipes, sewage pipes, gas pipes, heating pipes, industrial gas pipes, industrial water pipes, industrial chemical pipes, and other industrial pipes. The next layer below each feature type can be divided into area features, solid line features, auxiliary line features, point features, and annotation features according to element type. This ultimately forms a standardized metallurgical general map database, where each sub-element can be standardized and named according to "feature type + element type".
[0075] It should be noted that in order to perform vector slicing, the metallurgical general drawing database needs to be preprocessed first. In some embodiments of the present invention, step S103 includes:
[0076] The metallurgical general layout database is preprocessed to obtain a dataset in the target format.
[0077] The target format dataset is vector-sliced to obtain a vector-sliced dataset.
[0078] Specifically, this invention can preprocess the metallurgical general drawing database to ensure consistency in format and coordinate system, thereby obtaining a target format dataset.
[0079] In some embodiments of the present invention, the metallurgical general layout database is preprocessed to obtain a target format dataset, including:
[0080] The coordinate systems of the data in each layer of the metallurgical general map database are transformed to obtain the geographic coordinate system metallurgical general map dataset;
[0081] The data format of the geographic coordinate system metallurgical general map dataset is converted to obtain the target format dataset. Each layer of data in the geographic coordinate system metallurgical general map dataset generates a corresponding target format file, and the target format dataset includes all target format files of all layer data.
[0082] In a specific embodiment of the present invention, the metallurgical general map database may include coordinate transformation and format conversion to meet the data standard requirements of vector tiling. Coordinate transformation converts the data of each layer in the metallurgical general map database from the plant's custom coordinate system to the WGS84 coordinate system, resulting in a geographic coordinate system metallurgical general map dataset. Specifically, the data of each layer in the metallurgical general map database can be converted to common coordinate systems such as CGCS2000 and WGS84, or internet coordinate systems such as GCJ02 and BD09, according to the actual application requirements of the metallurgical general map. Plant-custom coordinate systems are also supported. Then, a GeoJSON (geographic data) dataset in the target coordinate system is generated, i.e., the geographic coordinate system metallurgical general map dataset. The geographic coordinate system metallurgical general map dataset is also organized in a three-level manner and named according to the metallurgical general map specifications.
[0083] In some embodiments of the present invention, vector slicing is performed on the target format dataset to obtain a vector slice dataset, including:
[0084] The target format dataset is sliced using a preset slicing tool to obtain a preset number of sliced data.
[0085] The hierarchy, rows, and columns of each slice data are encoded and saved according to the slice hierarchy in the preset slicing tool, resulting in a vector slice dataset containing a preset number of slice data.
[0086] In a specific embodiment of this invention, the Tippecanoe tool can be used to perform vector tiling on the GeoJSON dataset (target format dataset). The vector tiling covers the entire factory area, and the tiling level can be 0-21. The output format of the tiling is Mbtiles, ultimately generating an MBtiles dataset, i.e., a vector tile dataset. MBTiles (tile data) is a general format for storing geographic vector tile data, where each tile is encoded with a specific level, row, and column and saved as vector data. This format can efficiently store and transmit large amounts of geographic data, while supporting fast data reading and rendering. MBtiles data is organized in a two-layer structure of "file-layer". One GeoJSON dataset corresponds to one Mbtiles file, and one file in the GeoJSON dataset corresponds to one layer in the Mbtiles dataset. Mbtiles files are named according to the factory area name, and each layer is consistent with the sub-features in the database, named according to "feature type + feature type". The compliant Mbtiles dataset is then deployed to a server.
[0087] It should be noted that, in order to draft according to the metallurgical general drawing standards and specifications, in some embodiments of the present invention, the preset number of elements includes area symbols, line symbols, and annotation symbols; step S104 includes:
[0088] Based on the area symbols, line symbols, or annotation symbols, determine the area symbol sub-feature dataset, line symbol sub-feature dataset, or annotation symbol sub-feature dataset in the vector tile dataset;
[0089] By setting the attributes of the data in the area symbol sub-feature dataset, line symbol sub-feature dataset, or annotation symbol sub-feature dataset of the map to be drawn, the metallurgical general map is obtained.
[0090] In a specific embodiment of the present invention, cartography personnel can create a map to be drawn in a cartographic tool according to the metallurgical general map cartographic standard specifications. The preset number of tile data can include a dataset of sub-elements corresponding to area symbols, a dataset of sub-elements corresponding to line symbols, a dataset of sub-elements corresponding to annotation symbols, and a dataset of sub-elements corresponding to point symbols. After determining the sub-element dataset corresponding to each symbol, parameters for the corresponding sub-element dataset of the map to be drawn can be set in the cartographic tool. These settings include display parameters such as color, transparency, outline color, outline width, and outline transparency for area symbol sub-elements; attributes such as color, line width, offset, and connectivity for line symbol sub-elements; and display parameters such as font, font size, color, position, halo, and rotation mode for annotation symbol sub-elements. When setting the attributes of the line symbol sub-elements dataset, the cartographic tool provides two basic line types: solid lines and dashed lines. For dashed lines, the dashed line interval can be flexibly set to standardize the map display. For complex line types, multiple basic line types can be superimposed and combined to complete complex drawings. For example... Figure 2 As shown, Figure 2 The image represents an "unreinforced slope" in the landform and soil category. The symbol is an overlay image, the layer it belongs to is its position in the vector tile, and the feature code is obtained by encoding according to MBTiles.
[0091] In some embodiments of the present invention, the preset number of elements includes dot-shaped symbols; step S104 includes:
[0092] The image icon set should be set according to the metallurgical general drawing standard specifications;
[0093] Encode and store all image icons in the image icon set to obtain a sprite sheet;
[0094] Based on the sprite sheet and dot symbols, the map to be drawn is plotted to obtain the overall metallurgical map.
[0095] In a specific embodiment of the present invention, an SVG icon for each item can be created according to the metallurgical general mapping standard, with the specific naming format being "feature type - six-digit feature code", thus obtaining an SVG icon set for all SVG icons, such as... Figure 3 As shown, Figure 3 To create a subset of SVG icons, the Vite plugin can be used to generate a sprite sheet based on the SVG icon set. This allows all SVG icons to be stored in a single sprite sheet, with the names derived from a specific naming format serving as the codes for each SVG icon. Alternatively, the sprite sheet can be stored on a server integrated with the icon creation system.
[0096] In some embodiments of the present invention, a general metallurgical map is obtained by drawing a map based on a sprite sheet and dot symbols, including:
[0097] Based on the dot symbols, determine the dot symbol sub-feature dataset in the vector tile dataset;
[0098] In the map to be drawn, the image icons in the sprite sheet are referenced according to the dot symbol sub-feature dataset and the code corresponding to each image icon to obtain the initial metallurgical general map;
[0099] The attributes of the data in the point symbol sub-feature dataset of the initial metallurgical general map are set to obtain the metallurgical general map.
[0100] In a specific embodiment of the present invention, a corresponding dot symbol sub-feature dataset can be obtained based on the dot symbols. Then, the "icon-image" attribute of the layer can be set. Alternatively, based on a sprite sheet, SVG icons can be referenced through the encoding of each SVG icon, thereby adding the specified SVG icon to the map of the cartographic tool. Furthermore, display parameters such as the size, offset, rotation mode, etc., of the dot symbols can be set to standardize the map display, thus obtaining a general metallurgical map.
[0101] In some embodiments of the present invention, after mapping the map to be drawn based on the vector tile dataset to obtain the overall metallurgical map, the method further includes:
[0102] The basic parameters of the metallurgical general layout are set, and all the data of the metallurgical general layout are integrated to obtain the target file of the metallurgical general layout;
[0103] Publish the metallurgical general layout and metallurgical general layout target documents.
[0104] In a specific embodiment of the present invention, after obtaining the metallurgical general map, it is necessary to set the basic parameters of the map, where "center" is the center point of the map, "zoom" is the minimum display level, "source" is the address of the map's vector tile resource, "sprite" is the address of the symbol library (sprite sheet) resource, "glyphs" is the address of the font library resource, etc. Each basic parameter and resource, together with the description of each layer, forms a complete StyleJSON file, which is the metallurgical general map target file. After completing all the above steps, the metallurgical general map target file and the metallurgical general map can also be published as a vector map service. After successful publication, the URL address of the map is automatically generated, and the metallurgical general map can be displayed and browsed on the front end.
[0105] To better implement the metallurgical general drawing method in the embodiments of the present invention, correspondingly, the embodiments of the present invention also provide a metallurgical general drawing device, such as... Figure 4 As shown, the metallurgical general drawing apparatus includes:
[0106] The dataset acquisition module 401 is used to acquire the general map mapping dataset of the map to be drawn and to set the metallurgical general map cartography standards and specifications.
[0107] Data storage module 402 is used to classify and store the general map mapping dataset according to the metallurgical general map drawing standards and specifications, so as to obtain the metallurgical general map database;
[0108] Vector slicing module 403 is used to perform vector slicing on the metallurgical general map database to obtain a vector slice dataset;
[0109] The general map mapping module 404 is used to map the map to be drawn based on the vector tile dataset, and obtain the metallurgical general map.
[0110] The metallurgical general drawing apparatus provided in the above embodiments can realize the technical solutions described in the above metallurgical general drawing method embodiments. The specific implementation principles of each module or unit can be found in the corresponding content in the above metallurgical general drawing method embodiments, which will not be repeated here.
[0111] like Figure 5 As shown, the present invention also provides an electronic device 500. The electronic device 500 includes a processor 501, a memory 502, and a display 503. Figure 5 Only some components of the electronic device 500 are shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.
[0112] In some embodiments, memory 502 may be an internal storage unit of electronic device 500, such as a hard disk or memory of electronic device 500. In other embodiments, memory 502 may also be an external storage device of electronic device 500, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. equipped on electronic device 500.
[0113] Furthermore, the memory 502 may include both internal storage units of the electronic device 500 and external storage devices. The memory 502 is used to store application software and various types of data installed on the electronic device 500.
[0114] In some embodiments, processor 501 may be a central processing unit (CPU), microprocessor, or other data processing chip, used to run program code stored in memory 502 or process data, such as the metallurgical general drawing method of the present invention.
[0115] In some embodiments, display 503 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. Display 503 is used to display information from electronic device 500 and to display a visual user interface. Components 501-503 of electronic device 500 communicate with each other via a system bus.
[0116] In some embodiments of the present invention, when the processor 501 executes the metallurgical general drawing program in the memory 502, the following steps can be implemented:
[0117] Obtain the general map mapping dataset for the map to be drawn, and set the metallurgical general map cartography standards and specifications;
[0118] According to the metallurgical general map drawing standards and specifications, the general map mapping dataset is classified and stored to obtain the metallurgical general map database;
[0119] Vector slicing was performed on the metallurgical general map database to obtain a vector slice dataset;
[0120] Based on the vector tile dataset, the map to be drawn is plotted to obtain the overall metallurgical map.
[0121] It should be understood that when the processor 501 executes the metallurgical general drawing program in the memory 502, in addition to the functions mentioned above, it can also perform other functions, as can be found in the description of the corresponding method embodiments above.
[0122] Furthermore, this embodiment of the invention does not specifically limit the type of electronic device 500 mentioned. Electronic device 500 can be a mobile phone, tablet computer, personal digital assistant (PDA), wearable device, laptop computer, or other portable electronic device. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices running iOS, Android, Microsoft, or other operating systems. The aforementioned portable electronic device can also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the invention, electronic device 500 may not be a portable electronic device, but rather a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0123] Accordingly, this application also provides a computer-readable storage medium for storing computer-readable programs or instructions. When the programs or instructions are executed by a processor, they can implement the metallurgical general drawing method steps or functions provided in the above-described method embodiments.
[0124] Those skilled in the art will understand that all or part of the processes of the methods described in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.), and the computer program can be stored in a computer-readable storage medium. The computer-readable storage medium may be a disk, optical disk, read-only memory, or random access memory, etc.
[0125] The metallurgical general drawing method and apparatus provided by the present invention have been described in detail above. Specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core idea of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the idea of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A metallurgical general layout mapping method, characterized by, The method comprises the following steps: acquiring a total map surveying data set of a map to be drawn, and setting a metallurgical total map drawing standard specification; classifying and storing the total map surveying data set according to the metallurgical total map drawing standard specification, to obtain a metallurgical total map database; performing vector slicing on the metallurgical total map database, to obtain a vector slice data set; drawing the map to be drawn according to the vector slice data set, to obtain a metallurgical total map. The step of classifying and storing the total map surveying data set according to the metallurgical total map drawing standard specification, to obtain a metallurgical total map database, comprises the following steps: determining a three-layer organization structure according to the metallurgical total map drawing standard specification; the three-layer organization structure is the total map surveying data set-each feature type data set-each feature type feature set; the each feature type data set comprises a basic feature type and a pipeline type; the each feature type feature set comprises a preset number of features; classifying the data in the total map surveying data set according to the basic feature type and the pipeline type, to obtain a basic feature type data set and a pipeline type data set; classifying the basic feature type data set and the pipeline type data set according to the preset number of features, to obtain a preset number of basic feature type sub-feature data sets and a preset number of pipeline type sub-feature data sets; naming each sub-feature data set in the preset number of basic feature type sub-feature data sets and the preset number of pipeline type sub-feature data sets according to the feature type and the feature type to which each sub-feature data set belongs, and storing the data in each sub-feature data set, to obtain a metallurgical total map database conforming to the metallurgical total map drawing standard specification; The step of performing vector slicing on the metallurgical total map database, to obtain a vector slice data set, comprises the following steps: preprocessing the metallurgical total map database, to obtain a target format data set; performing vector slicing on the target format data set, to obtain a vector slice data set; The step of preprocessing the metallurgical total map database, to obtain a target format data set, comprises the following steps: converting the coordinate system of each layer data in the metallurgical total map database, to obtain a geographic coordinate system metallurgical total map data set; converting the data format of the geographic coordinate system metallurgical total map data set, to obtain a target format data set; wherein each layer data in the geographic coordinate system metallurgical total map data set generates a corresponding target format file, and the target format data set comprises all target format files of all layer data; The step of performing vector slicing on the target format data set, to obtain a vector slice data set, comprises the following steps: slicing the target format data set according to a preset slicing tool, to obtain a preset number of slice data; encoding and saving the level, row and column of each slice data according to the slice level in the preset slicing tool, to obtain a vector slice data set comprising the preset number of slice data.
2. The metallurgical general layout mapping method according to claim 1, characterized by, The preset number of features comprises a planar symbol, a linear symbol and a note symbol. The step of drawing the map to be drawn according to the vector slice data set, to obtain a metallurgical total map, comprises the following steps: According to the planar symbol or the linear symbol or the note symbol, a planar symbol sub-feature data set or a linear symbol sub-feature data set or a note symbol sub-feature data set in the vector tile data set is determined; Attributes of data in the planar symbol sub-feature data set or the linear symbol sub-feature data set or the note symbol sub-feature data set in the to-be-drawn map are set, and a metallurgical general map is obtained.
3. The metallurgical general layout mapping method according to claim 1, characterized by, The preset number of elements includes point symbols; The drawing of the to-be-drawn map according to the vector tile data set to obtain the metallurgical general map includes: An image icon set is set according to the metallurgical general map drawing standard specification; All image icons in the image icon set are encoded and stored to obtain a sprite; The drawing of the to-be-drawn map according to the sprite and the point symbol to obtain the metallurgical general map includes:
4. The metallurgical general layout mapping method according to claim 3, characterized by, According to the point symbol, a point symbol sub-feature data set in the vector tile data set is determined; In the to-be-drawn map, according to the point symbol sub-feature data set and the code corresponding to each image icon, the image icon in the sprite is referenced to obtain an initial metallurgical general map; Attributes of data in the point symbol sub-feature data set in the initial metallurgical general map are set to obtain the metallurgical general map. After the drawing of the to-be-drawn map according to the vector tile data set to obtain the metallurgical general map, the following steps are further included:
5. The metallurgical plot mapping method of claim 1, wherein, A basic parameter of the metallurgical general map is set, and all data of the metallurgical general map are integrated to obtain a metallurgical general map target file; The metallurgical general map and the metallurgical general map target file are published. It includes:
6. A metallurgical general layout mapping device characterized by, A data set acquisition module is configured to acquire a general map surveying and mapping data set of a to-be-drawn map, and set a metallurgical general map drawing standard specification; A data storage module is configured to classify and store the general map surveying and mapping data set according to the metallurgical general map drawing standard specification to obtain a metallurgical general map database; A vector tiling module is configured to perform vector tiling on the metallurgical general map database to obtain a vector tile data set; A general map drawing module is configured to draw the to-be-drawn map according to the vector tile data set to obtain a metallurgical general map; The classification and storage of the general map surveying and mapping data set according to the metallurgical general map drawing standard specification to obtain the metallurgical general map database includes: According to the metallurgical general map drawing standard specification, a three-layer organization structure is determined; the three-layer organization structure is the general map surveying and mapping data set-each feature type element set-each feature type classification data set; the each feature type classification data set includes a basic feature class and a pipeline class; the each feature type element set includes a preset number of elements; According to the basic feature class and the pipeline class, data in the general map surveying and mapping data set is classified to obtain a basic feature class data set and a pipeline class data set; According to the preset number of elements, the basic feature class data set and the pipeline class data set are classified to obtain a preset number of basic feature class sub-feature data sets and a preset number of pipeline class sub-feature data sets; According to the each feature type and the each feature type to which each sub-feature data set in the preset number of basic feature class sub-feature data sets and the preset number of pipeline class sub-feature data sets belongs, naming is performed and data in the each sub-feature data set is stored, so as to obtain a metallurgical general layout database conforming to the metallurgical general layout drawing standard specification; The vector slice data set is obtained by performing vector slicing on the metallurgical general layout database, and includes: The target format data set is obtained by preprocessing the metallurgical general layout database; The vector slice data set is obtained by performing vector slicing on the target format data set; The target format data set is obtained by preprocessing the metallurgical general layout database, and includes: The coordinate system of each layer data in the metallurgical general layout database is converted to obtain a geographic coordinate system metallurgical general layout data set; The data format of the geographic coordinate system metallurgical general layout data set is converted to obtain the target format data set; wherein each layer data in the geographic coordinate system metallurgical general layout data set generates a corresponding target format file, and the target format data set includes all target format files of all layer data; The vector slice data set is obtained by performing vector slicing on the target format data set, and includes: According to a preset slice tool, the target format data set is sliced to obtain a preset number of slice data; According to a slice level in the preset slice tool, the level, row and column of each slice data are encoded and saved to obtain a vector slice data set including the preset number of slice data.
Citation Information
Patent Citations
Self-owned data expansion and fusion method based on Internet map platform
CN113901168A
Method for constructing map making and publishing platform based on open source GIS (Geographic Information System) technology
CN115810064A