CN113779175B - Data processing method, map service providing method, electronic device, and storage medium - Google Patents

Data processing method, map service providing method, electronic device, and storage medium Download PDF

Info

Publication number
CN113779175B
CN113779175B CN202111325040.XA CN202111325040A CN113779175B CN 113779175 B CN113779175 B CN 113779175B CN 202111325040 A CN202111325040 A CN 202111325040A CN 113779175 B CN113779175 B CN 113779175B
Authority
CN
China
Prior art keywords
map
style
layer
final
symbols
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111325040.XA
Other languages
Chinese (zh)
Other versions
CN113779175A (en
Inventor
韩振宇
王晓
周昌锋
赵孟茹
王博一
霍星志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRSC Communication and Information Group Co Ltd CRSCIC
Original Assignee
CRSC Communication and Information Group Co Ltd CRSCIC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Communication and Information Group Co Ltd CRSCIC filed Critical CRSC Communication and Information Group Co Ltd CRSCIC
Priority to CN202111325040.XA priority Critical patent/CN113779175B/en
Publication of CN113779175A publication Critical patent/CN113779175A/en
Application granted granted Critical
Publication of CN113779175B publication Critical patent/CN113779175B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Remote Sensing (AREA)
  • Instructional Devices (AREA)

Abstract

The invention provides a data processing method, a map service providing method, an electronic device and a computer-readable storage medium. The data processing method comprises the following steps: generating a corresponding final map style according to the received formatted data carrying the style information; the style information comprises a map layer and an incidence relation between at least one map geographic element and a map symbol in the map layer, and the map style is a set formed by the incidence relation between at least one map geographic element and the map symbol in the map layer; and providing the map layer and the final map style corresponding to the map layer for a map service platform.

Description

Data processing method, map service providing method, electronic device, and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a data processing method, a map service providing method, an electronic device, and a storage medium.
Background
The map symbol is a basic means for expressing spatial data, is a language unit of a map, and is a basic tool for visually expressing geographic information contents. The method not only can represent the spatial position, shape, quality and quantity characteristics of objects, but also can represent the interrelation among the objects and the overall characteristics of the area. The map symbolization is a process of describing map geographic elements through symbols and is an important concept in cartography.
Two traditional map symbolization modes are provided, one mode is a Client/Server (C/S) mode, geographic Information System (GIS) software such as ArcMap, QGIS and the like is utilized to represent different Geographic elements by different symbols, and the mode is difficult to share and poor in situational performance. Another method is to perform map symbolization by using a map style through a Web Feature Service (WFS) in a browser/Server (B/S) method, and the map style in this method is fixed at the Server side, so that interaction of a customized map style cannot be realized, and maintenance is difficult.
Disclosure of Invention
The invention provides a data processing method, a map service providing method, an electronic device and a computer-readable storage medium.
In a first aspect, the present invention provides a data processing method, including:
generating a corresponding final map style according to the received formatted data carrying the style information; the style information comprises a map layer and an incidence relation between at least one map geographic element and a map symbol in the map layer, and the map style is a set formed by the incidence relation between at least one map geographic element and the map symbol in the map layer;
and providing the map layer and the final map style corresponding to the map layer for a map service platform.
As an optional implementation manner, the generating a corresponding final map style according to the received formatted data carrying the style information includes:
analyzing the formatted data carrying the style information to obtain the style information;
and generating the final map pattern corresponding to the map layer according to the map layer contained in the pattern information and the incidence relation between the map geographic element and the map symbol.
As an optional implementation manner, the generating a corresponding final map style according to the received formatted data carrying the style information further includes:
judging whether an initial map pattern corresponding to the map layer in the pattern information exists or not;
if the initial map style does not exist, generating the final map style according to the incidence relation between the map geographic elements and the map symbols in the style information;
and if the initial map style exists, obtaining the final map style according to the association relationship between the map geographic elements and the map symbols in the style information and the initial map style.
Further, for any map geographic element and map symbol in any map layer having an association relationship, generating a corresponding final map style according to the received formatted data carrying style information includes:
in the current map layer, according to a current map geographic element and a current map symbol which have an association relationship, setting map geographic elements which are in the same class as the current map geographic element in the current map layer and have the association relationship with the current map symbol, wherein the same class refers to the same attribute as the current map geographic element.
In a second aspect, the present invention provides a data processing method, including:
setting an incidence relation between map geographic elements and map symbols on a map layer to generate style information; the style information comprises a map layer and an association relation between at least one map geographic element in the map layer and a map symbol;
and sending the formatted data carrying the style information to a server.
Further, the map symbol includes a customized map symbol, and the setting of the association relationship between the map geographic element and the map symbol includes:
and setting the self-defined map symbol, and establishing the incidence relation between the map geographic elements and the self-defined map symbol.
In a third aspect, the present invention provides a map service providing method, wherein the method includes:
responding to an access request, and determining a map to be accessed and a map layer to be accessed in the map to be accessed;
displaying a symbolized map according to the map layer to be accessed and the final map style corresponding to the map layer to be accessed;
the symbolic map displays corresponding map geographic elements in a map symbol manner, and the map layer to be accessed and the final map pattern corresponding to the map layer to be accessed are the map layer provided by the data processing method of any one of the first aspect and the final map pattern corresponding to the map layer.
In a fourth aspect, the present invention provides a map service providing method, including:
and sending an access request to a map service platform executing the map service providing method of the third aspect to obtain the symbolized map.
Further, the method further comprises:
executing the data processing method of any one of the second aspect on the symbolized map.
In a fifth aspect, the present invention provides a geographic information system, comprising a server, a map service platform, and a client, wherein,
the server is configured to implement the data processing method according to any one of the first aspect;
the map service platform is used for realizing the map service providing method according to the third aspect;
the client is configured to implement the data processing method according to any one of the second aspects or the map service providing method according to any one of the fourth aspects.
In a sixth aspect, the present invention provides an electronic device, comprising:
one or more processors;
a memory on which one or more programs are stored, which when executed by the one or more processors, cause the one or more processors to implement the data processing method of any one of the first aspects, or the data processing method of any one of the second aspects, or the map service providing method of the third aspect, or the map service providing method of any one of the fourth aspects;
one or more I/O interfaces connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
In a seventh aspect, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the data processing method of any one of the first aspects, or the data processing method of any one of the second aspects, or the map service providing method of the third aspect, or the map service providing method of any one of the fourth aspects.
According to the data processing method and the map service providing method provided by the invention, a user can further edit the displayed map in a WYSIWYG mode, set the incidence relation between the map geographic elements and the map symbols, and send the newly edited style information to the server side, and the server side iteratively updates the map style according to the newly received style information, and sends the updated map style to the map service platform to update the map service. The invention adopts the mode that the formatted data only carries the style information, thereby saving the network resource and reducing the burden of the processor. Meanwhile, the map symbolization sharing and what you see is what you get are realized in a map service mode, so that the map symbolization quick iterative editing is realized, and the situation and the maintainability are improved.
Drawings
Fig. 1 is a flowchart of a data processing method provided by the present invention.
Fig. 2 is a flow chart of another data processing method provided by the present invention.
Fig. 3 is a flow chart of another data processing method provided by the present invention.
Fig. 4 is a flowchart of another data processing method provided by the present invention.
Fig. 5 is a flowchart of a method for providing a map service according to the present invention.
Fig. 6 is a schematic diagram of a geographic information system provided by the present invention.
Fig. 7 is a flowchart of a map symbolization process according to an embodiment of the present invention.
Fig. 8 is a schematic block diagram of an electronic device according to the present invention.
Fig. 9 is a schematic diagram of a computer-readable storage medium provided by the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "part", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no peculiar meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
In the traditional map symbolization method, one is a C/S mode, and usually different geographic elements are represented by different symbols by utilizing GIS software such as ArcMap and QGIS. The other mode is a B/S mode, map symbolization is carried out by using a mode through WFS service, the map mode of the mode is fixed at a server end, interaction of a user-defined map mode cannot be realized, and maintenance is difficult.
The map service platform provides a sharable, WYSIWYG (what you see is what you get) map service for the problems of difficult symbolic sharing, poor current situation, difficult interaction, difficult maintenance and the like of a map, a user carries out symbolic editing on the map in a self-defined mode at an internet (WEB) end, and a server updates the solution of the map service according to an editing result, so that the aim of interactive map styles can be achieved, and iterative editing of the map is realized.
In a first aspect, an embodiment of the present invention provides a data processing method, as shown in fig. 1, where the data processing method includes the following steps:
in step S110, a corresponding final map style is generated according to the received formatted data carrying the style information; the style information comprises a map layer and an incidence relation between at least one map geographic element and a map symbol in the map layer, and the map style is a set formed by the incidence relation between at least one map geographic element and the map symbol in the map layer;
in step S120, the map layer and the final map style corresponding to the map layer are provided to a map service platform.
It should be noted that one map in the present invention includes at least one map layer, each map layer corresponds to one map style, each map layer includes a plurality of map geographic elements, and a symbolized map is obtained by setting corresponding map symbols for the map geographic elements.
And the user symbolizes and edits the map data in a self-defined mode at the WEB end, and sets corresponding map symbols for the map geographic elements in the map. The association relationship between each edited map geographic element and the map symbol is filled in the formatted data file as style information. After the edition is finished, the WEB end sends the data file carrying a plurality of pieces of style information to the server end.
Optionally, the formatted data described in the present invention includes, but is not limited to, one or a combination of more of the following formats: java Script Object Notation (JSON), extensible Markup Language (XML).
The formatted data in the present invention may be a message in a predetermined format, or a file in a predetermined format, or may be formatted data in other forms, and the formatted data file is used herein for convenience of description, but the formatted data in the present invention includes, but is not limited to, a formatted data file form.
And the server terminal analyzes each piece of style information from the formatted data and according to each map geographic element and each map layer in the style information. Because each map layer corresponds to one map style, the association relationship between the map geographic element and the map symbol can be updated to the corresponding map style. When all map geographic elements in each map layer of a map are provided with corresponding map symbols, the map can be displayed in a symbolized manner.
Alternatively, the map styles described in the present invention may be in, but are not limited to, the SLD file format.
It should be noted that the map layer data itself occupies a large amount of space, and if the information related to the map layer is always transmitted in the editing process, a large amount of network transmission resources are consumed, and the efficiency is low. In the invention, a user accesses the map through the WEB terminal, and the formatted data file only carries the association relation between each edited map geographic element and the map symbol and does not carry other map layer data with concrete map symbols, so that if the map geographic elements edited by the user are not large in quantity, the content of the formatted data file is small, the data quantity transmitted by the WEB terminal and the server terminal can be reduced, the network resources are saved, and the burden of a processor can be reduced. As such, even if multi-user editing or frequent editing occurs, the style information is transmitted only for the edited portion, and network congestion due to transmission of a large amount of map layer information or repeated processing of map layer data by the processor for a long period of time is not caused.
It should be noted that, for a map, the map style may not be generated after all the map geographic elements on all the map layers are set with the map symbols, or the map style may not be generated after all the map geographic elements on all the map layers are set with the map symbols, and the map style may not be issued to the map service platform. The user can only edit a part of map geographic elements in the map layer each time, the style information generated each time is overlapped and updated to the map style corresponding to the map layer, the map style of the map layer is gradually perfected through repeated iteration, and finally map symbolization is realized.
In the process of displaying the map, according to the requirement of a user on the map service, one map can only display part of map layers, and symbols corresponding to geographical elements of the part of the map can also be displayed in one map layer according to the requirement. The user can further edit the map displayed on the WEB side in a WYSIWYG mode, set the incidence relation between the map geographic elements and the map symbols, send the newly edited style information to the server side, the server side updates the map style in an iteration mode according to the newly received style information and sends the updated map style to the map service platform, so that the rapid iteration of map symbolization is realized, and the situation is improved.
As an alternative embodiment, as shown in fig. 2, step S110 may be specifically decomposed into the following steps:
in step S111, the formatted data carrying the style information is parsed, acquiring the style information;
in step S112, the final map pattern corresponding to the map layer is generated according to the map layer included in the pattern information and the association relationship between the map geographic element and the map symbol.
And after receiving the formatted data file of the WEB side, the server side analyzes the data file and extracts the style information in the data file. Since a user may edit multiple map layers in a map at the same time, multiple map geographic elements in multiple map layers may be included in a data file. In order to improve the processing efficiency, map geographic elements belonging to the same map layer in the formatted data file are put together for processing, and the incidence relation between the map geographic elements and the map symbols is superposed and updated into the map style of the map layer. And then processing the map geographic elements belonging to the other map layer.
The map geographic elements belonging to the same map layer can be processed in batch, so that the processing efficiency is improved; secondly, only individual map geographic elements in the map layer can be processed, so that the map style can be updated in a light weight manner, and the requirement of quick iteration is met; thirdly, only the map layers related to the map geographic elements contained in the formatted data file can be processed, and all the map layers in one map do not need to be loaded each time. The burden of the processor is reduced.
The map style of the present invention is editable and iterative, and for convenience of distinction, the map style generated before each editing is referred to as an initial map style, and the map style obtained after the editing is referred to as a final map style. The final map style obtained after the current editing is the initial map style for the next editing.
As an alternative, as shown in fig. 3, step S110 further includes:
in step S130, determining whether an initial map style corresponding to the map layer in the style information already exists;
in step S131, if there is no initial map style, generating the final map style according to the association relationship between the map geographic elements and the map symbols in the style information;
in step S132, if an initial map style exists, the final map style is obtained according to the initial map style and the association relationship between the map geographic elements and the map symbols in the style information.
It should be noted that, in the embodiment of the present invention, in an initial state, the map layer sent by the server to the map service platform may be a map symbol that has not yet been set for the map geographic elements, and therefore, a corresponding map style does not exist. Even if the map layer is not subjected to any symbolization processing, the map service platform can still provide map service according to the basic map layer. And editing on the map layer by the user according to the requirement. The server side generates a map style according to style information edited by a user, and a map style file needs to be newly established because the map layer does not have a corresponding map style before. In the subsequent iterative editing, the content edited each time is updated to the pattern file, and the final map pattern edited each time is obtained.
Further, for any map geographic element and map symbol in any map layer having an association relationship, generating a corresponding final map style according to the received formatted data carrying style information includes:
in the current map layer, according to a current map geographic element and a current map symbol which have an association relationship, setting map geographic elements which are in the same class as the current map geographic element in the current map layer and are all in the association relationship with the current map symbol, wherein the same class refers to the same attribute as the current map geographic element.
Many map geographic elements are included in each map layer, and there may be a large number of map geographic elements with the same attributes, for example: the trees, stations, etc. in the map have the same geographical attributes, although the locations are different. If each map geographic element is manually set by a user one by one with its corresponding map symbol, a great deal of time and effort is spent. In order to simplify the editing of the map geographic elements, only one map geographic element in the same type of map geographic elements can be edited, and the map geographic elements with the same type of map geographic elements are all effective. For example, a large number of map geographic elements identical to the map geographic elements exist in the map layer, and after the corresponding map symbols are set for the map geographic elements, the setting can be selected to be applied to the map layer. When the server side processes the style information, the incidence relation between the map geographic elements and the map symbols can be applied to all map geographic elements which are the same as the map geographic elements under the map layer. Therefore, when one map geographic element is edited, one type of map geographic element is edited, so that a plurality of repeated editing works can be saved, and the editing efficiency is greatly improved.
In a second aspect, an embodiment of the present invention provides a data processing method, as shown in fig. 4, where the data processing method includes the following steps:
in step S210, an association relationship between a map geographic element and a map symbol is set on a map layer, and style information is generated; the style information comprises a map layer and an incidence relation between at least one map geographic element in the map layer and a map symbol;
in step S220, the formatted data carrying the style information is sent to a server.
As described above, the server issues the map layer and the map style corresponding to the map layer to the map service platform, and the map service platform provides symbolic map display. The user can obtain the map information in a seeing-and-seeing manner at a WEB end, directly edits the map layer on the displayed map, sets a corresponding map symbol for the map geographic element, and generates style information according to the incidence relation between the map geographic element and the map symbol. Then, the style information is transmitted to the server in the form of formatted data.
Further, the map symbol includes a customized map symbol, and the setting of the association relationship between the map geographic element and the map symbol includes:
and setting the self-defined map symbol, and establishing the incidence relation between the map geographic elements and the self-defined map symbol.
In the process of editing the association relationship between the map geographic elements and the map symbols, if the optional map symbols provided by the map service are insufficient, the user may select map symbols with inaccurate ideograms, and the map effect displayed finally is influenced. If the waiting map service provider adds the relevant map symbols for a plurality of users one by one, the waiting process is a long waiting process, and the progress of the quick iterative editing is influenced.
In the embodiment of the invention, besides the alternative symbols provided by the map service, the map symbol can be customized by the user according to the actual needs, such as color, shape, size and other attributes of the map symbol, and the user-defined picture can be uploaded to be made into the map symbol, so that the incidence relation is established between the map symbol and the map geographic elements. Therefore, even if a proper map symbol cannot be found, the map service provider does not need to wait for creating a new map symbol, and the problem of inaccurate ideology caused by insufficient alternative map symbols is avoided. Because the pictures of the map symbols are uploaded, even if other users open the map, the map symbols can be seen, the flexibility of map symbol definition is enhanced, good sharing performance is provided, and rapid iterative editing of map symbolization is facilitated.
In a third aspect, an embodiment of the present invention provides a method for providing a map service, where as shown in fig. 5, the method includes the following steps:
in step S310, in response to an access request, determining a map to be accessed and a map layer to be accessed in the map to be accessed;
in step S320, displaying a symbolized map according to the map layer to be accessed and the final map style corresponding to the map layer to be accessed; the symbolic map displays corresponding map geographic elements in a map symbol manner, and the map layer to be accessed and the final map style corresponding to the map layer to be accessed are the map layer provided by the data processing method of any one of the first aspect and the final map style corresponding to the map layer.
And the server side sends the map layer and the final map style corresponding to the map layer to a map service platform, and the map service platform starts map service software or provides map service in a web service mode such as weblogic, tomcat and the like.
It should be noted that, in the present invention, the server side issues the map layer and the final map style corresponding to the map layer to a map service platform, and the map service platform receives the map layer and the map style, which is only a specific implementation manner. The specific delivery mode may be various, is not limited to be published through a network, and may also deliver the map layer and the map style to the map service platform through other modes, for example: the copy is performed by a Bus system such as Universal Serial Bus (USB) and Type C Universal Serial Bus (Type-C). As an optional implementation manner, the map service platform may also be directly integrated on a server, and actual transmission is not required, and only the map layer and the map style file need to be shared for use.
The user can access a map page through a WEB browser or in a client mode at a WEB end by accessing a Uniform Resource Locator (URL) of a map service.
And the map service platform responds to the access request, and displays the map layer to be accessed and the corresponding map style in a symbolized and graphical mode according to the access parameters such as the map to be accessed and the map layer to be accessed required in the access request.
The user can browse the map, and can edit the currently displayed map in a what-you-see-is-what-you-get mode, and set the association relationship between the map geographic elements and the map symbols.
In a fourth aspect, an embodiment of the present invention provides a map service providing method, where the method includes the following steps:
sending an access request to a map service platform executing the map service providing method according to the third aspect of the present invention, so as to obtain the symbolized map.
Further, the method further comprises:
the data processing method according to any one of the second aspect of the present invention is executed on the symbolized map.
After the map service platform starts the map service, a user can access a network address URL of the map service through a WEB browser or a client side at a WEB side, and then accesses a map page.
The user can browse the map, edit the currently displayed map in a what-you-see-is-what-you-get mode, set the association relationship between the map geographic elements and the map symbols, and send the edited association relationship between the map geographic elements and the map symbols to the server in the form of style information, so as to realize the iterative editing of map symbolization.
In a fifth aspect, an embodiment of the present invention provides a geographic information system, as shown in fig. 6, the geographic information system includes a server, a map service platform, and a client, wherein,
the server is configured to implement the data processing method according to any one of the first aspect of the present invention;
the map service platform is used for realizing the map service providing method of the third aspect of the invention;
the client is configured to implement the data processing method according to any one of the second aspects of the present invention, or the map service providing method according to any one of the fourth aspects of the present invention.
In the geographic information system provided by the invention, a server is responsible for maintaining map data, and the map data comprises map patterns and the like corresponding to map layers besides map layers and map geographic elements; the server sends the map layers and the corresponding map styles and other data to a map service platform, and the map service platform provides sharable, visible and acquired map service; different users access the map service platform through different clients, and each client can perform symbolic editing on the map in a user-defined mode and send edited style information to the server; the server reediting the map style according to the style information, and updating the map service according to the reediting map style; the repeated iteration can achieve the purpose of interactive map styles, and realize the quick iterative editing of map symbolization, thereby improving the situation and maintainability.
The following describes a specific implementation of an overall solution of the server, the map service platform, and the client according to an embodiment of the present invention.
The map symbolization processing flow of the embodiment is shown in fig. 7:
the user accesses the map service at the client via the URL. In the map page obtained by what you see is, the user edits the map geographic elements and sets corresponding map symbols for the map geographic elements. After the editing result is saved, the association relationship between the edited map geographic element and the map symbol is filled in the formatted data as style information, for example, a JSON file, and is transmitted to the server.
And after receiving the JSON file, the server analyzes various pieces of sample information in the JSON file. And if the SLD file corresponding to the map style does not exist in the current map layer, generating the SLD file for storing the map style after processing the style information in the JSON file. And if the SLD file corresponding to the map style exists in the current map layer, analyzing the existing SLD file, and updating the SLD file of the existing map style according to the style information analyzed from the JSON file. And releasing the map layer and the corresponding map style to a map service platform.
And the map service platform provides updated map service according to the updated map style and the corresponding map style. And finishing the map symbolization work of the current round. Of course, the data method provided by the invention is iterative, and the client can edit the map page again on the basis of the map service, repeat the steps and carry out the next round of map symbolization work.
In a sixth aspect, as shown in fig. 8, an embodiment of the present invention provides an electronic device, including:
one or more processors 501;
a memory 502 on which one or more programs are stored, which when executed by one or more processors, cause the one or more processors to implement the data processing method as described in any one of the first aspects of the present invention, or the data processing method as described in any one of the second aspects of the present invention, or the map service providing method as described in the third aspect of the present invention, or the map service providing method as described in any one of the fourth aspects of the present invention;
one or more I/O interfaces 503 coupled between the processor and the memory and configured to enable information interaction between the processor and the memory.
The processor 501 is a device with data processing capability, and includes but is not limited to a Central Processing Unit (CPU) and the like; memory 502 is a device having 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); an I/O interface (read/write interface) 503 is connected between the processor 501 and the memory 502, and can realize information interaction between the processor 501 and the memory 502, which includes but is not limited to a data Bus (Bus) and the like.
In some embodiments, the processor 501, memory 502, and I/O interface 503 are interconnected by a bus 504, which in turn connects with other components of the computing device.
In a seventh aspect, as shown in fig. 9, the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the data processing method according to any one of the first aspect of the present invention, or the data processing method according to any one of the second aspect of the present invention, or the map service providing method according to the third aspect of the present invention, or the map service providing method according to any one of the fourth aspect of the present invention.
The data processing method and the map service providing method provided by the embodiment of the invention adopt the mode that the formatted data only carries the style information, save the network resources and reduce the burden of the processor. Meanwhile, the map symbolization sharing and what you see is what you get are realized in a map service mode, so that the map symbolization quick iterative editing is realized, and the situation and the maintainability are improved.
One of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present invention are intended to be within the scope of the claims.

Claims (8)

1. A data processing method, wherein the data processing method comprises:
generating a corresponding final map style of the current round according to the received formatted data carrying the style information; the style information comprises a map layer edited in the current round and an incidence relation between map geographic elements and map symbols in the map layer, the map style is a set formed by the incidence relation between at least one map geographic element and the map symbols in the map layer, and the final map style of the current round is a map style obtained by superposing the received style information on the final map style of the previous round;
providing the map layer and the final map style of the current turn corresponding to the map layer to a map service platform so that the map service platform iteratively updates the currently displayed symbolized map according to the final map style of the current turn;
the map symbols comprise alternative symbols provided by the map service platform and map symbols customized by a WEB terminal, and the incidence relation between the map geographic elements and the map symbols comprises the following steps: the incidence relation between the map geographic elements and the self-defined map symbols;
the self-defined map symbol comprises a self-defined picture uploaded by a WEB terminal;
generating a corresponding final map style of the current turn according to the received formatted data carrying the style information, further comprising:
judging whether an initial map pattern corresponding to the map layer in the pattern information exists or not;
if the initial map style does not exist, generating the final map style of the current round according to the incidence relation between the map geographic elements and the map symbols in the style information;
and if the initial map style exists, obtaining the final map style of the current turn according to the incidence relation between the map geographic elements and the map symbols in the style information and the initial map style.
2. The data processing method according to claim 1, wherein the generating of the corresponding final map style of the current turn according to the received formatted data carrying the style information comprises:
analyzing the formatted data carrying the style information to obtain the style information;
and generating the final map style of the turn corresponding to the map layer according to the map layer contained in the style information and the incidence relation between the map geographic elements and the map symbols.
3. The data processing method according to claim 1 or 2, wherein for any map geographic element and map symbol in any one of the map layers having an association relationship, the generating of the corresponding final map style in the current round according to the received formatted data carrying style information each includes:
in the current map layer, according to a current map geographic element and a current map symbol which have an association relationship, setting map geographic elements which are in the same class as the current map geographic element in the current map layer and have the association relationship with the current map symbol, wherein the same class refers to the same attribute as the current map geographic element.
4. A data processing method, wherein the data processing method comprises:
setting an incidence relation between map geographic elements and map symbols on a map layer currently displayed by a map service platform to generate style information; the style information comprises a map layer edited in the current turn and an incidence relation between the map geographic elements and the map symbols in the map layer;
sending the formatted data carrying the style information to a server so that a map service platform iteratively updates the currently displayed symbolized map according to the final map style of the turn generated by the server;
the map symbol comprises an alternative symbol provided by the map service platform and a map symbol customized by a WEB terminal, and the setting of the incidence relation between the map geographic element and the map symbol comprises the following steps:
setting the self-defined map symbol, and establishing an incidence relation between the map geographic elements and the self-defined map symbol;
the self-defined map symbol comprises a self-defined picture uploaded by a WEB terminal;
the map service platform iteratively updates the currently displayed symbolized map according to the final map style of the turn generated by the server, and the method comprises the following steps:
judging whether an initial map pattern corresponding to the map layer in the pattern information exists or not;
if the initial map style does not exist, generating the final map style of the current round according to the incidence relation between the map geographic elements and the map symbols in the style information;
and if the initial map style exists, obtaining the final map style of the current turn according to the incidence relation between the map geographic elements and the map symbols in the style information and the initial map style.
5. A map service providing method, wherein the method comprises:
responding to an access request, and determining a map to be accessed and a map layer to be accessed in the map to be accessed;
displaying a symbolized map according to the map layer to be accessed and the final map style corresponding to the map layer to be accessed;
wherein the symbolized map shows corresponding map geographic elements in a map symbol manner;
the map symbols comprise alternative symbols provided by the map service platform and self-defined map symbols of a WEB terminal, and the self-defined map symbols comprise self-defined pictures uploaded by the WEB terminal;
in response to receiving the map layer provided by the data processing method according to any one of claims 1 to 3 and the current-round final map pattern corresponding to the map layer, iteratively updating the displayed symbolized map by using the map layer and the current-round final map pattern corresponding to the map layer as the map layer to be accessed and the final map pattern corresponding to the map layer to be accessed.
6. A geographic information system, wherein the geographic information system comprises a server, a map service platform and a client, wherein,
the server for implementing the data processing method according to any one of claims 1 to 3;
the map service platform for implementing the map service providing method according to claim 5;
the client for implementing the data processing method according to claim 4.
7. An electronic device, wherein the electronic device comprises:
one or more processors;
a memory on which one or more programs are stored, which when executed by the one or more processors, cause the one or more processors to implement the data processing method of any one of claims 1 to 3, or the data processing method of claim 4, or the map service providing method of claim 5;
one or more I/O interfaces connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
8. A computer-readable storage medium, wherein a computer program is stored thereon, which, when being executed by a processor, implements the data processing method according to any one of claims 1 to 3, or the data processing method according to claim 4, or the map service providing method according to claim 5.
CN202111325040.XA 2021-11-10 2021-11-10 Data processing method, map service providing method, electronic device, and storage medium Active CN113779175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111325040.XA CN113779175B (en) 2021-11-10 2021-11-10 Data processing method, map service providing method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111325040.XA CN113779175B (en) 2021-11-10 2021-11-10 Data processing method, map service providing method, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN113779175A CN113779175A (en) 2021-12-10
CN113779175B true CN113779175B (en) 2023-03-07

Family

ID=78873657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111325040.XA Active CN113779175B (en) 2021-11-10 2021-11-10 Data processing method, map service providing method, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN113779175B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114841127B (en) * 2022-06-29 2022-09-23 天津联想协同科技有限公司 Layer stacking method and device based on streaming electronic collaboration document

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281699A (en) * 2008-05-14 2008-10-08 武汉大学 Method for symbolization of geographic element case
CN101593209A (en) * 2008-12-30 2009-12-02 中国科学院地理科学与资源研究所 A kind of alternating type online statistical map generation and distributing device and method
CN110245206A (en) * 2019-06-20 2019-09-17 腾讯科技(深圳)有限公司 Acquisition methods, device, server, terminal and the storage medium of map styles

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8681176B1 (en) * 2011-09-20 2014-03-25 Google Inc. Rendering a map using style identifiers
CN110569599A (en) * 2019-09-10 2019-12-13 上海彩虹鱼海洋科技股份有限公司 map service publishing method, system and medium
CN112035209B (en) * 2020-09-29 2024-08-27 阿波罗智联(北京)科技有限公司 Map data processing method, device, equipment and computer storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281699A (en) * 2008-05-14 2008-10-08 武汉大学 Method for symbolization of geographic element case
CN101593209A (en) * 2008-12-30 2009-12-02 中国科学院地理科学与资源研究所 A kind of alternating type online statistical map generation and distributing device and method
CN110245206A (en) * 2019-06-20 2019-09-17 腾讯科技(深圳)有限公司 Acquisition methods, device, server, terminal and the storage medium of map styles

Also Published As

Publication number Publication date
CN113779175A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
US10726195B2 (en) Filtered stylesheets
CN105069118B (en) A kind of application scenarios management method and system based on GIS configurations
US7870482B2 (en) Web browser extension for simplified utilization of web services
CN109683998A (en) Internationalize implementation method, device and system
CN106909361B (en) Web development method and device based on template engine
US9967370B2 (en) OData enabled mobile software applications
US9876879B2 (en) Distributed network page generation
CN113485927B (en) Test data generation method, device, equipment and storage medium
US11032683B2 (en) Method and apparatus for publishing cloud resource
CN111294395A (en) Terminal page transmission method, device, medium and electronic equipment
CN108021594B (en) Webpage display method, device and system
CN113779175B (en) Data processing method, map service providing method, electronic device, and storage medium
CN111090533A (en) Notice information sending method and device, electronic equipment and storage medium
CN114553971B (en) Application framework design method, system, equipment and medium
CN114168853A (en) Data visualization display method, device, medium and electronic equipment
CN114756228A (en) Page processing method, device, equipment and storage medium
CN113360106A (en) Webpage printing method and device
CN113055348A (en) Cross-platform data request method and device and electronic equipment
CN103150334A (en) Method and system for requesting picture file
CN114676671A (en) Document online editing method and device and computer readable storage medium
CN115686492A (en) H5 page editing method and device
CN112130817A (en) Multi-version interface implementation method, system, device and readable storage medium
CN111079050B (en) Page information acquisition method, page information acquisition device and computer storage medium
CN101184090A (en) Information sharing method, system and device
CN114547571A (en) Python-based intelligent authentication method and system

Legal Events

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