A method and system for converting ArcGIS thematic data to ZGIS thematic data

By automatically parsing and converting ArcGIS topic data rendering methods, symbol styles and font symbols, the problems of information loss and manual configuration in data conversion between GIS software are solved, and efficient data conversion and consistent display effects are achieved.

CN119759998APending Publication Date: 2025-04-04武汉智博创享科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411826082.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

When converting data between different GIS software, the prior art leads to a large amount of information loss, and users need to manually configure symbol libraries and topical images, which consumes time and resources.

Method used

Provides a method and system for converting ArcGIS topic data to ZGIS topic data. By analyzing the rendering method, symbol style and font symbol of ArcGIS data, it is converted to ZGIS format according to preset rules, including rendering method, symbol library and automatic conversion of font files.

Benefits of technology

Automatic analysis of ArcGIS topic data to ZGIS topic data is realized, eliminating the need for manual picture matching, greatly improving work efficiency, and ensuring consistent display effect on different computers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759998A_ABST
    Figure CN119759998A_ABST
Patent Text Reader

Abstract

A method for converting ArcGIS thematic data to ZGIS thematic data, comprising: S100. Obtaining ArcGIS thematic data to be converted, parsing the ArcGIS thematic data, and obtaining rendering mode, symbol style, and font symbol of the ArcGIS thematic data; S200. Converting the rendering mode of the ArcGIS thematic data obtained by parsing according to a first preset rule to obtain a ZGIS project file; S300. Converting the symbol style of the ArcGIS thematic data obtained by parsing according to a second preset rule to obtain a ZGIS symbol library; S400. Converting the font symbol of the ArcGIS thematic data obtained by parsing according to a third preset rule to obtain a ZGIS font file; S500. Obtaining ZGIS thematic data based on the ZGIS project file, the ZGIS symbol library, and the ZGIS font file. The system of the present invention adopts ArcGIS secondary development technology to realize the automatic parsing function of the ArcGIS thematic data to be converted. The present invention can extract fonts independently to ensure consistent display effects on different computers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data conversion between geographic information platforms, and in particular to a method and system for converting ArcGIS thematic data to ZGIS thematic data. Background Art

[0002] At present, many geographic information system (GIS) data and themes are collected and compiled using ArcGIS software, and ArcGIS's proprietary symbol library is used for style rendering and display. These display rules and information are usually stored in encrypted binary formats such as Mxd / Lyr, which cannot be directly read by other GIS system software. In addition, the data organization and rendering methods of different GIS software are also different. Therefore, data conversion must be performed when transmitting data between different GIS software. However, during the conversion process, due to the encryption of some files and the differences in symbol libraries and display methods, a large amount of information is lost after the conversion, and it is often necessary to manually re-produce the symbol library and set the thematic map.

[0003] Taking ArcGIS to ZGIS data conversion as an example, the process of converting ArcGIS thematic data can significantly reduce the workload of drawing when working on two different software platforms, ArcGIS and ZGIS, thereby saving a lot of time and resources. Despite this, the number of software that can parse ArcGIS thematic data is very limited. The prior art discloses a method for ArcGIS to share CorelDraw point symbols, which converts the ArcGIS symbol library into CorelDraw format, but this method focuses on point symbols and relies on symbol library conversion rather than direct file conversion. Users may only need to use some symbols in the symbol library, or for small map projects, may not want to use the entire symbol library. In this case, the method may not fully meet user needs. To import ArcGIS thematic data on ZGIS, the user's only option is to import the original file into ZGIS and manually configure the style in the ZGIS layer to achieve a visual representation similar to that in ArcGIS, which may take a lot of time and labor. Therefore, there is an urgent need for a method and system for converting ArcGIS thematic data to ZGIS thematic data to solve the problems of the prior art. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a method and system for converting ArcGIS thematic data to ZGIS thematic data that overcomes the above problems or at least partially solves the above problems.

[0005] In order to solve the above technical problems, the embodiments of the present application disclose the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention discloses a method for converting ArcGIS thematic data to ZGIS thematic data, comprising:

[0007] S100. Obtaining ArcGIS thematic data to be converted, parsing the ArcGIS thematic data, and obtaining rendering mode, symbol style, and font symbol of the ArcGIS thematic data;

[0008] S200. Convert the rendering mode of the parsed ArcGIS thematic data according to the first preset rule to obtain a ZGIS project file;

[0009] S300. Convert the symbol style of the ArcGIS thematic data obtained by parsing according to the second preset rule to obtain a ZGIS symbol library;

[0010] S400. Convert the font symbol of the ArcGIS thematic data obtained by parsing according to the third preset rule to obtain a ZGIS font file;

[0011] S500. Based on the ZGIS project file, ZGIS symbol library and ZGIS font file, obtain ZGIS thematic data.

[0012] Furthermore, the rendering method of the ArcGIS thematic data includes rendering according to elements, rendering according to categories, and rendering according to quantity; when the rendering method of the ArcGIS thematic data is rendering according to elements, the first preset rule includes: directly converting the element display information of ArcGIS into the display information of a single symbol in ZGIS;

[0013] Furthermore, in S200, the rendering method of the parsed ArcGIS thematic data is converted according to the first preset rule, and the first preset rule includes: when the rendering method of ArcGIS thematic data is rendering according to category, the classification rendering based on matching of unique values ​​and symbol libraries in ArcGIS is converted into classification rendering based on attribute fields in ZGIS, and the categories are divided according to specific attribute names, classifications and description fields, and corresponding nodes are generated in the XML configuration file of ZGIS to reflect the same attribute name, classification and description information; for the unique value rendering method based on multiple fields in ArcGIS, the attribute data name of the field is parsed, and the attribute name is combined through a corresponding formula to generate an expression of the corresponding field combination in ZGIS, and the obtained expression is embedded in the corresponding XML node of the ZGIS configuration file.

[0014] Furthermore, in S200, the rendering method of the parsed ArcGIS thematic data is converted according to a first preset rule, and the first preset rule also includes: when the rendering method of the ArcGIS thematic data is to render according to quantity, the hierarchical color rendering method in ArcGIS is parsed to extract and record the starting and ending attribute values ​​within each level; by analyzing each level, the number of starting attributes and the number of ending attributes of each level are identified and obtained, and the attribute value ranges are mapped one by one to the XML configuration file of ZGIS to ensure that the attribute value range of each level is in the corresponding XML node.

[0015] Furthermore, the symbol styles of the ArcGIS thematic data include point symbol styles, line symbol styles and surface symbol styles; when the symbol style is a point symbol style, the point symbol style includes simple point symbols, character marker symbols and picture marker symbols; when the point symbol style includes simple point symbols, the second preset rules include: for simple point symbols, directly mapping the symbols in ArcGIS to equivalent symbols in ZGIS; for character marker symbols, extracting the font file name and Unicode number in the ArcGIS file, searching for the corresponding font file in the system's fonts directory, and performing character transcoding operations; the font name and its corresponding transcoded characters will be written to the corresponding nodes of the XML configuration file of ZGIS; for picture marker symbols, parsing the EMF marker symbols used by ArcGIS, and obtaining the corresponding EMF file path, converting the EMF file into an SVG file format recognizable by ZGIS, and correctly recording the converted SVG file path in the XML configuration file of ZGIS.

[0016] Further, when the symbol style of the ArcGIS thematic data is a line symbol style, the line symbol style includes simple line symbols, cartographic line symbols, marker line symbols, picture line symbols and mixed line symbols; the second preset rule includes: for simple line symbols and cartographic line symbols, the solid line in ArcGIS is directly corresponded to the solid line in ZGIS; the dashed line and dotted line symbols in ArcGIS are corresponded to the dotted line in ZGIS; the dotted line in ArcGIS is corresponded to the short horizontal-dotted line in ZGIS; the double dotted line in ArcGIS is corresponded to the short horizontal-dot-dotted line in ZGIS; the blank style in ArcGIS is corresponded to the no-brush display in ZGIS; For marker line symbols, the template distance defined in ArcGIS is parsed and converted into the distance-to-template ratio in ZGIS, the font file name and Unicode number in the ArcGIS file are extracted, the corresponding font file is searched in the system's fonts directory, and character transcoding is performed. The font name and its corresponding transcoded characters will be written into the corresponding nodes of the XML configuration file of ZGIS; for image line symbols, the symbols in ArcGIS are converted into SVG point and line symbol expressions that are compatible with ZGIS; for hash line symbols, the template values ​​defined in ArcGIS are extracted, and the template values ​​are converted into the interval values ​​of hash line symbols in ZGIS.

[0017] Furthermore, when the symbol style of the ArcGIS thematic data is a surface symbol style, the surface symbol style includes simple surface symbols, marker fill symbols, line fill symbols, picture line symbols and gradient fill symbols; the second preset rule also includes: for simple surface symbols, by extracting color and border line parameters, directly converting them into simple surface symbols in ZGIS, ensuring that the relationship between the border line and the surface remains the same in ZGIS as in ArcGIS; for line fill symbols, directly correspond the angle, offset and interval parameters in ArcGIS to the ZGIS system, and the line style in the line fill symbol will follow the same conversion logic as the individual line style; for picture fill symbols, convert the image fill symbols in ArcGIS into SVG point fill symbols in ZGIS to achieve symbol style correspondence between the two GIS platforms; for gradient fill symbols, directly map the line function style of ArcGIS to the linear function style in ZGIS.

[0018] Furthermore, the third preset rule includes: parsing several font names and their corresponding Unicode codes through the font symbols used in the ArcGIS layer data, and accurately locating the files associated with these font names in the system registry, performing precise glyph extraction tasks from the files according to the Unicode codes, and collecting all morphological features of the used fonts; then re-encoding the extracted glyph features and integrating them into a new ZGIS-recognizable font file.

[0019] In a second aspect, an embodiment of the present invention discloses a system for converting ArcGIS thematic data to ZGIS thematic data, characterized in that it includes: an ArcGIS thematic data parsing unit, a rendering mode conversion unit, a symbol style conversion unit, a font symbol conversion unit and a ZGIS thematic data generation unit; wherein:

[0020] ArcGIS thematic data parsing unit. Used to obtain ArcGIS thematic data to be converted, parse the ArcGIS thematic data, and obtain the rendering mode, symbol style and font symbol of the ArcGIS thematic data;

[0021] A rendering mode conversion unit, used for converting the rendering mode of the ArcGIS thematic data obtained by parsing according to a first preset rule to obtain a ZGIS project file;

[0022] A symbol style conversion unit, used for converting the symbol style of the ArcGIS thematic data obtained by parsing according to a second preset rule to obtain a ZGIS symbol library;

[0023] A font symbol conversion unit, used for converting the font symbols of the ArcGIS thematic data obtained by parsing according to a third preset rule to obtain a ZGIS font file;

[0024] The ZGIS thematic data generating unit is used to obtain ZGIS thematic data based on the ZGIS project file, ZGIS symbol library and ZGIS font file.

[0025] In a third aspect, an embodiment of the present invention discloses an electronic device, including:

[0026] one or more processors;

[0027] A memory for storing one or more programs;

[0028] When the one or more programs are executed by the one or more processors, the one or more processors implement the data conversion method.

[0029] The beneficial effects of the above technical solution provided by the embodiment of the present invention include at least:

[0030] The present invention discloses a method for converting ArcGIS thematic data to ZGIS thematic data, including: S100. Obtaining ArcGIS thematic data to be converted, parsing the ArcGIS thematic data, and obtaining rendering mode, symbol style and font symbol of ArcGIS thematic data; S200. Converting the rendering mode of the ArcGIS thematic data obtained by parsing according to a first preset rule to obtain a ZGIS project file; S300. Converting the symbol style of the ArcGIS thematic data obtained by parsing according to a second preset rule to obtain a ZGIS symbol library; S400. Converting the font symbol of the ArcGIS thematic data obtained by parsing according to a third preset rule to obtain a ZGIS font file; S500. Based on the ZGIS project file, the ZGIS symbol library and the ZGIS font file, obtaining the ZGIS thematic data. The present invention adopts ArcGIS secondary development technology to realize the automatic parsing function of ArcGIS thematic data to be converted. The present invention eliminates the need for manual mapping and greatly improves work efficiency. For images containing specific font styles, the present invention can extract fonts independently to ensure consistent display effects on different computers.

[0031] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0033] Figure 1 This is a flow chart of a method for converting ArcGIS thematic data to ZGIS thematic data in embodiment 1 of the present invention;

[0034] Figure 2 This is a schematic diagram of the structure of an electronic device in Example 3 of the present invention. DETAILED DESCRIPTION

[0035] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0036] In order to solve the problems existing in the prior art, an embodiment of the present invention provides a method and system for converting ArcGIS thematic data to ZGIS thematic data.

[0037] Example 1

[0038] The present invention discloses a method for converting ArcGIS thematic data to ZGIS thematic data, such as Figure 1 ,include:

[0039] S100. Obtaining ArcGIS thematic data to be converted, parsing the ArcGIS thematic data, and obtaining rendering mode, symbol style, and font symbol of the ArcGIS thematic data;

[0040] Specifically, in this implementation, the rendering methods of the ArcGIS thematic data include rendering according to features, rendering according to categories, and rendering according to quantity; in ArcGIS, rendering according to features usually means applying different symbols or colors according to certain specific attributes of the data (such as type, shape, size, etc.). This method can highlight certain specific elements in the data, making the map more readable and informative. The symbol styles of the ArcGIS thematic data include point symbol styles, line symbol styles, and surface symbol styles. In ArcGIS, the symbol styles of thematic data do include point symbol styles, line symbol styles, and surface symbol styles. These symbol styles are used to represent different types of geographic features on the map, making the map more intuitive and easy to understand.

[0041] S200. Convert the rendering mode of the parsed ArcGIS thematic data according to the first preset rule to obtain a ZGIS project file;

[0042] In S200 of the present embodiment, when the rendering method of ArcGIS thematic data is to render according to features, the first preset rule includes: directly converting ArcGIS feature display information into display information of a single symbol in ZGIS; when the rendering method of ArcGIS thematic data is to render according to categories, converting the classification rendering based on matching of unique values ​​with symbol libraries in ArcGIS into classification rendering based on attribute fields in ZGIS, dividing categories according to specific attribute names, classifications, and description fields, and generating corresponding nodes in the XML configuration file of ZGIS to reflect the same attribute names, classifications, and description information; for the unique value rendering method based on multiple fields in ArcGIS, parsing the attribute data names of the fields, and combining the attribute names through corresponding formulas to generate expressions of corresponding field combinations in ZGIS, and embedding the obtained expressions into corresponding XML nodes of the ZGIS configuration file. When ArcGIS thematic data is rendered based on quantity, the hierarchical color rendering method in ArcGIS is parsed to extract and record the starting and ending attribute values ​​within each level range; by analyzing each level, the number of starting attributes and the number of ending attributes of each level are identified and obtained, and the attribute value ranges are mapped one by one to the XML configuration file of ZGIS to ensure that the attribute value ranges of each level are in the corresponding XML nodes. In summary, ArcGIS provides a variety of rendering methods to meet different data visualization needs. There are three ways to render based on features, categories, and quantities, which can help users better understand and analyze data.

[0043] S300. Convert the symbol style of the ArcGIS thematic data obtained by parsing according to the second preset rule to obtain a ZGIS symbol library;

[0044] In S300 of this embodiment, the symbol style of the ArcGIS thematic data includes point symbol style, line symbol style and surface symbol style; wherein, the point symbol style is mainly used to represent discrete elements on the map, such as cities, settlements, points of interest, etc. In ArcGIS, point symbol styles can be created and edited through the style manager or symbol attribute editor. Point symbols can be simple geometric shapes (such as circles, squares, etc.) or complex icons or pictures. Users can adjust the size, color, shape and other attributes of point symbols as needed to highlight specific geographic elements. Line symbol styles are mainly used to represent linear elements on the map, such as roads, rivers, boundaries, etc. In ArcGIS, line symbol styles can be created and edited by setting line color, width, line type (such as solid line, dashed line, dotted line, etc.) and line end and line connection attributes. In addition, multi-layer line symbols can be used to create composite line types, such as road symbols with borders and fills. The selection and use of line symbol styles are crucial to expressing the linear characteristics and spatial relationships of geographic elements. Surface symbol styles are mainly used to represent surface elements on the map, such as lakes, forests, administrative districts, etc. In ArcGIS, polygon symbol styles can be created and edited by setting properties such as fill color, fill pattern, border color, border width, etc. Polygon symbol styles can intuitively display the spatial distribution and characteristics of polygonal features. For example, different fill colors can be used to represent different types of forests, or patterns with borders and fills can be used to represent administrative districts.

[0045] When the symbol style is a point symbol style, the point symbol style includes simple point symbols, character marker symbols and picture marker symbols; when the point symbol style includes simple point symbols, the second preset rule includes: for simple point symbols, directly mapping the symbols in ArcGIS to equivalent symbols in ZGIS; for character marker symbols, extracting the font file name and Unicode number in the ArcGIS file, searching for the corresponding font file in the system's fonts directory, and performing character transcoding operations; the font name and its corresponding transcoded characters will be written to the corresponding nodes of the XML configuration file of ZGIS; for picture marker symbols, parsing the EMF marker symbols used by ArcGIS, and obtaining the corresponding EMF file path, converting the EMF file into an SVG file format recognizable by ZGIS, and correctly recording the converted SVG file path in the XML configuration file of ZGIS.

[0046] When the symbol style of the ArcGIS thematic data is a line symbol style, the line symbol style includes simple line symbols, cartographic line symbols, marker line symbols, picture line symbols and mixed line symbols; the second preset rule includes: for simple line symbols and cartographic line symbols, the solid line in ArcGIS is directly corresponded to the solid line in ZGIS; the dashed line and dotted line symbols in ArcGIS are corresponded to the dotted line in ZGIS; the dotted line in ArcGIS is corresponded to the short horizontal-dotted line in ZGIS; the double dotted line in ArcGIS is corresponded to the short horizontal-dot-dotted line in ZGIS; the blank style in ArcGIS is corresponded to the no-brush display in ZGIS; for Marking line symbols, by parsing the template distance defined in ArcGIS and converting it into the distance-to-template ratio in ZGIS, extracting the font file name and Unicode number in the ArcGIS file, searching for the corresponding font file in the system's fonts directory, and performing character transcoding operations, the font name and its corresponding transcoded characters will be written to the corresponding nodes of the ZGIS XML configuration file; for image line symbols, the symbols in ArcGIS are converted into SVG point and line symbol expressions that are compatible with ZGIS; for hash line symbols, the template values ​​defined in ArcGIS are extracted, and the template values ​​are converted into the interval values ​​of hash line symbols in ZGIS.

[0047] When the symbol style of the ArcGIS thematic data is a surface symbol style, the surface symbol style includes a simple surface symbol, a marker fill symbol, a line fill symbol, a picture line symbol and a gradient fill symbol; the second preset rule also includes: for a simple surface symbol, by extracting color and border line parameters, it is directly converted into a simple surface symbol in ZGIS, ensuring that the relationship between the border line and the surface remains the same in ZGIS as in ArcGIS; for a line fill symbol, the angle, offset and interval parameters in ArcGIS are directly mapped to the ZGIS system, and the line style in the line fill symbol will follow the same conversion logic as the individual line style; for a picture fill symbol, the image fill symbol in ArcGIS is converted into an SVG point fill symbol in ZGIS to achieve symbol style correspondence between the two GIS platforms; for a gradient fill symbol, the line function style of ArcGIS is directly mapped to the linear function style in ZGIS.

[0048] S400. The font symbols of the ArcGIS thematic data obtained by the analysis are converted according to the third preset rule to obtain a ZGIS font file; in S400 of this embodiment, the third preset rule includes: through the font symbols used in the ArcGIS layer data, several font names and their corresponding Unicode codes are analyzed, and the files associated with these font names are accurately located in the system registry, and the precise glyph extraction task is performed from the files according to the Unicode code, and all the morphological features of the used fonts are collected; then the extracted glyph features are re-encoded and integrated into a new ZGIS. Through the font symbols used in the ArcGIS layer data, several font names and their corresponding Unicode codes are analyzed, and the files associated with these font names are accurately located in the system registry. According to the Unicode code, the precise glyph extraction task is performed from the font file, so as to collect all the morphological features of the used fonts. Then the extracted glyph features are re-encoded and integrated into a new ZGIS recognizable font file. In order to maintain consistency with the engineering project, the newly created font file is named with the project name as the font name to form a ZGIS project font library. Recognizable font files.

[0049] Specifically, through the font symbols used in ArcGIS layer data, several font names and their corresponding Unicode codes are parsed, and the files associated with these font names are accurately located in the system registry. According to the Unicode code, accurate glyph extraction tasks are performed from the font file to collect all the morphological features of the font used. Then the extracted glyph features are re-encoded and integrated into a new font file that ZGIS can recognize. In order to maintain consistency with the project, this newly created font file is named with the project name as the font name to form the ZGIS project font library.

[0050] S500. Based on the ZGIS project file, the ZGIS symbol library and the ZGIS font file, obtain ZGIS thematic data. Specifically, the ZGIS project file, the ZGIS symbol library and the ZGIS font file are combined to obtain ZGIS thematic data.

[0051] This embodiment discloses a method for converting ArcGIS thematic data to ZGIS thematic data, including: S100. Obtaining ArcGIS thematic data to be converted, parsing the ArcGIS thematic data, and obtaining rendering mode, symbol style and font symbol of ArcGIS thematic data; S200. Converting the rendering mode of the ArcGIS thematic data obtained by parsing according to a first preset rule to obtain a ZGIS project file; S300. Converting the symbol style of the ArcGIS thematic data obtained by parsing according to a second preset rule to obtain a ZGIS symbol library; S400. Converting the font symbol of the ArcGIS thematic data obtained by parsing according to a third preset rule to obtain a ZGIS font file; S500. Based on the ZGIS project file, the ZGIS symbol library and the ZGIS font file, obtaining the ZGIS thematic data. The system of the present invention adopts ArcGIS secondary development technology to realize the automatic parsing function of ArcGIS thematic data to be converted. The present invention eliminates the need for manual mapping and greatly improves work efficiency. For images containing specific font styles, the present invention can extract fonts independently to ensure consistent display effects on different computers.

[0052] Example 2

[0053] Based on the same inventive concept, the disclosed embodiment also provides a system for converting ArcGIS thematic data to ZGIS thematic data, including: an ArcGIS thematic data parsing unit, a rendering mode conversion unit, a symbol style conversion unit, a font symbol conversion unit and a ZGIS thematic data generation unit; wherein:

[0054] ArcGIS thematic data parsing unit. Used to obtain ArcGIS thematic data to be converted, parse the ArcGIS thematic data, and obtain the rendering mode, symbol style and font symbol of the ArcGIS thematic data;

[0055] A rendering mode conversion unit, used for converting the rendering mode of the ArcGIS thematic data obtained by parsing according to a first preset rule to obtain a ZGIS project file;

[0056] A symbol style conversion unit, used for converting the symbol style of the ArcGIS thematic data obtained by parsing according to a second preset rule to obtain a ZGIS symbol library;

[0057] A font symbol conversion unit, used for converting the font symbols of the ArcGIS thematic data obtained by parsing according to a third preset rule to obtain a ZGIS font file;

[0058] The ZGIS thematic data generating unit is used to obtain ZGIS thematic data based on the ZGIS project file, ZGIS symbol library and ZGIS font file.

[0059] Among them, the specific working methods of the ArcGIS thematic data parsing unit, rendering mode conversion unit, symbol style conversion unit, font symbol conversion unit and ZGIS thematic data generation unit have been recorded in detail in Example 1, and will not be repeated in this embodiment.

[0060] Example 3

[0061] Based on the same inventive concept, an embodiment of the present disclosure also provides an electronic device. Figure 2 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. Figure 2 As shown, an embodiment of the present disclosure provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement any optimization method in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, and are configured to implement information interaction between the processor and the memory.

[0062] Among them, the processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus), etc.

[0063] In some embodiments, the processor 101 , the memory 102 , and the I / O interface 103 are connected to each other via a bus 104 , and further connected to other components of the computing device.

[0064] In some embodiments, the one or more processors 101 include a field programmable gate array.

[0065] According to an embodiment of the present disclosure, a computer-readable medium is further provided, wherein a computer program is stored on the computer-readable medium, wherein when the program is executed by a processor, the steps in any optimization method in the above-mentioned embodiment are implemented.

[0066] It should be understood that the specific order or hierarchy of steps in the disclosed process is an example of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process can be rearranged without departing from the scope of protection of the present disclosure. The attached method claims present the elements of the various steps in an exemplary order and are not intended to be limited to the specific order or hierarchy described.

[0067] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.

[0068] Those skilled in the art will also appreciate that the various illustrative logic blocks, modules, circuits, and algorithmic steps described in conjunction with the embodiments herein can all be implemented as electronic hardware, computer software, or a combination thereof. In order to clearly illustrate the interchangeability between hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above around their functions. Whether such functions are implemented as hardware or software depends on specific applications and the design constraints imposed on the entire system. A skilled person can implement the described functions in an alternative manner for each specific application, but such implementation decisions should not be interpreted as departing from the scope of protection of the present disclosure.

[0069] The steps of the method or algorithm described in conjunction with the embodiments herein may be directly embodied as hardware, a software module executed by a processor, or a combination thereof. The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile disk, a CD-ROM, or any other form of storage medium well known in the art. An exemplary storage medium is connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium may also be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The ASIC may be located in a user terminal. Of course, the processor and the storage medium may also be present in a user terminal as discrete components.

[0070] For software implementation, the techniques described in this application can be implemented with modules (e.g., procedures, functions, etc.) that perform the functions described in this application. These software codes can be stored in a memory unit and executed by a processor. The memory unit can be implemented within the processor or outside the processor. In the latter case, it is coupled to the processor in a communication manner via various means, which are well known in the art.

[0071] The above description includes examples of one or more embodiments. Of course, it is impossible to describe all possible combinations of components or methods for the purpose of describing the above embodiments, but it should be recognized by those skilled in the art that the various embodiments may be further combined and arranged. Therefore, the embodiments described herein are intended to cover all such changes, modifications and variations that fall within the scope of protection of the appended claims. In addition, with respect to the term "comprising" used in the specification or claims, the word is covered in a manner similar to the term "including", just as "including," is explained as a transitional word in the claims. In addition, any term "or" used in the specification of the claims is intended to mean "non-exclusive or".

Claims

1. A method for converting ArcGIS thematic data to ZGIS thematic data, characterized in that: include: S100. Obtaining ArcGIS thematic data to be converted, parsing the ArcGIS thematic data, and obtaining rendering mode, symbol style, and font symbol of the ArcGIS thematic data; S200. Convert the rendering mode of the parsed ArcGIS thematic data according to the first preset rule to obtain a ZGIS project file; S300. Convert the symbol style of the ArcGIS thematic data obtained by parsing according to the second preset rule to obtain a ZGIS symbol library; S400. Convert the font symbol of the ArcGIS thematic data obtained by parsing according to the third preset rule to obtain a ZGIS font file; S500. Based on the ZGIS project file, ZGIS symbol library and ZGIS font file, ZGIS thematic data is obtained.

2. The method for converting ArcGIS thematic data to ZGIS thematic data as claimed in claim 1, characterized in that: The rendering methods of the ArcGIS thematic data include rendering according to elements, rendering according to categories, and rendering according to quantity; when the rendering method of the ArcGIS thematic data is rendering according to elements, the first preset rule includes: directly converting the element display information of ArcGIS into the display information of a single symbol in ZGIS.

3. The method for converting ArcGIS thematic data to ZGIS thematic data as claimed in claim 2, characterized in that: In S200, the rendering method of the ArcGIS thematic data obtained by parsing is converted according to the first preset rule, and the first preset rule includes: when the rendering method of the ArcGIS thematic data is rendering according to category, the classification rendering based on the matching of unique values ​​and symbol libraries in ArcGIS is converted into the classification rendering based on attribute fields in ZGIS, and the categories are divided according to specific attribute names, classifications and description fields, and corresponding nodes are generated in the XML configuration file of ZGIS to reflect the same attribute name, classification and description information; for the unique value rendering method based on multiple fields in ArcGIS, the attribute data name of the field is parsed, and the attribute name is combined through a corresponding formula to generate an expression of the corresponding field combination in ZGIS, and the obtained expression is embedded in the corresponding XML node of the ZGIS configuration file.

4. The method for converting ArcGIS thematic data to ZGIS thematic data as claimed in claim 3, characterized in that: In S200, the rendering method of the parsed ArcGIS thematic data is converted according to the first preset rule, and the first preset rule also includes: when the rendering method of the ArcGIS thematic data is rendering according to quantity, the hierarchical color rendering method in ArcGIS is parsed, and the starting and ending attribute values ​​within each level are extracted and recorded; by analyzing each level, the number of starting attributes and the number of ending attributes of each level are identified and obtained, and the attribute value ranges are mapped one by one to the XML configuration file of ZGIS to ensure that the attribute value range of each level is in the corresponding XML node.

5. The method for converting ArcGIS thematic data to ZGIS thematic data as claimed in claim 1, characterized in that: The symbol style of the ArcGIS thematic data includes a point symbol style, a line symbol style and a surface symbol style; when the symbol style is a point symbol style, the point symbol style includes a simple point symbol, a character mark symbol and a picture mark symbol; When the point symbol style includes a simple point symbol, the second preset rule includes: for a simple point symbol, directly mapping the symbol in ArcGIS to the equivalent symbol in ZGIS; for a character marker symbol, extracting the font file name and Unicode number in the ArcGIS file, searching for the corresponding font file in the system's fonts directory, and performing character transcoding operations; the font name and its corresponding transcoded characters will be written into the corresponding node of the XML configuration file of ZGIS; for a picture marker symbol, parsing the EMF marker symbol used by ArcGIS, and obtaining the corresponding EMF file path, converting the EMF file into an SVG file format recognizable by ZGIS, and correctly recording the converted SVG file path in the XML configuration file of ZGIS.

6. The method for converting ArcGIS thematic data to ZGIS thematic data as claimed in claim 5, characterized in that: When the symbol style of the ArcGIS thematic data is a line symbol style, the line symbol style includes simple line symbols, cartographic line symbols, marker line symbols, picture line symbols and mixed line symbols; the second preset rule includes: for simple line symbols and cartographic line symbols, the solid line in ArcGIS is directly corresponded to the solid line in ZGIS; the dashed line and dotted line symbols in ArcGIS are corresponded to the dotted line in ZGIS; the dotted line in ArcGIS is corresponded to the short horizontal-dotted line in ZGIS; the double dotted line in ArcGIS is corresponded to the short horizontal-dot-dotted line in ZGIS; the blank style in ArcGIS is corresponded to the no-brush display in ZGIS; for Marking line symbols, by parsing the template distance defined in ArcGIS and converting it into the distance-to-template ratio in ZGIS, extracting the font file name and Unicode number in the ArcGIS file, searching for the corresponding font file in the system's fonts directory, and performing character transcoding operations, the font name and its corresponding transcoded characters will be written to the corresponding nodes of the ZGIS XML configuration file; for image line symbols, the symbols in ArcGIS are converted into SVG point and line symbol expressions that are compatible with ZGIS; for hash line symbols, the template values ​​defined in ArcGIS are extracted, and the template values ​​are converted into the interval values ​​of hash line symbols in ZGIS.

7. The method for converting ArcGIS thematic data to ZGIS thematic data as claimed in claim 5, characterized in that: When the symbol style of the ArcGIS thematic data is a surface symbol style, the surface symbol style includes a simple surface symbol, a marker fill symbol, a line fill symbol, a picture line symbol and a gradient fill symbol; the second preset rule also includes: for a simple surface symbol, by extracting color and border line parameters, it is directly converted into a simple surface symbol in ZGIS, ensuring that the relationship between the border line and the surface remains the same in ZGIS as in ArcGIS; for a line fill symbol, the angle, offset and interval parameters in ArcGIS are directly mapped to the ZGIS system, and the line style in the line fill symbol will follow the same conversion logic as the individual line style; for a picture fill symbol, the image fill symbol in ArcGIS is converted into an SVG point fill symbol in ZGIS to achieve symbol style correspondence between the two GIS platforms; for a gradient fill symbol, the line function style of ArcGIS is directly mapped to the linear function style in ZGIS.

8. The method for converting ArcGIS thematic data to ZGIS thematic data as claimed in claim 1, characterized in that: The third preset rule includes: parsing several font names and their corresponding Unicode codes through the font symbols used in ArcGIS layer data, and accurately locating the files associated with these font names in the system registry, performing precise glyph extraction tasks from the files according to the Unicode codes, and collecting all morphological features of the used fonts; then re-encoding the extracted glyph features and integrating them into a new ZGIS-recognizable font file.

9. A system for converting ArcGIS thematic data to ZGIS thematic data, using any data conversion method in claims 1-8, characterized in that: include: ArcGIS thematic data parsing unit, rendering mode conversion unit, symbol style conversion unit, font symbol conversion unit and ZGIS thematic data generation unit; among which: ArcGIS thematic data parsing unit. Used to obtain ArcGIS thematic data to be converted, parse the ArcGIS thematic data, and obtain the rendering mode, symbol style and font symbol of the ArcGIS thematic data; A rendering mode conversion unit, used for converting the rendering mode of the ArcGIS thematic data obtained by parsing according to a first preset rule to obtain a ZGIS project file; A symbol style conversion unit, used for converting the symbol style of the ArcGIS thematic data obtained by parsing according to a second preset rule to obtain a ZGIS symbol library; A font symbol conversion unit, used for converting the font symbols of the ArcGIS thematic data obtained by parsing according to a third preset rule to obtain a ZGIS font file; The ZGIS thematic data generating unit is used to obtain ZGIS thematic data based on the ZGIS project file, ZGIS symbol library and ZGIS font file.

10. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for data conversion in any one of claims 1 to 8.