CN111651536A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN111651536A
CN111651536A CN202010349105.3A CN202010349105A CN111651536A CN 111651536 A CN111651536 A CN 111651536A CN 202010349105 A CN202010349105 A CN 202010349105A CN 111651536 A CN111651536 A CN 111651536A
Authority
CN
China
Prior art keywords
map
service
data
engine
service data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010349105.3A
Other languages
Chinese (zh)
Inventor
张伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ping An Medical Health Technology Service Co Ltd
Original Assignee
Ping An Medical and Healthcare Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Medical and Healthcare Management Co Ltd filed Critical Ping An Medical and Healthcare Management Co Ltd
Priority to CN202010349105.3A priority Critical patent/CN111651536A/en
Publication of CN111651536A publication Critical patent/CN111651536A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • 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/22Indexing; Data structures therefor; Storage structures
    • 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/25Integrating or interfacing systems involving database management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Remote Sensing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a data processing method and a data processing device, which are applied to a server, wherein the method comprises the following steps: the map processing method comprises the steps of obtaining a plurality of service data, wherein the service data are used for expanding the functions of the map engine system, determining a service requirement corresponding to each service data in the plurality of service data to obtain a plurality of service requirements, calling the map engine according to the plurality of service requirements, carrying out data processing on the plurality of service data based on the map engine to obtain a plurality of map data, and finally generating map information according to the plurality of map data. Wherein the map information may be stored in a block chain. This application can be applied to wisdom city field. The method and the device realize decoupling between the business function and the map engine, reduce data pressure of the whole map engine system, and are beneficial to improving data processing efficiency.

Description

Data processing method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data processing method and apparatus.
Background
When a traditional Geographic Information System (GIS) is developed, a structure is based on a common map engine Application Program Interface (API), and only a specified API Interface can be developed, so that in the face of a complex business scene, functions on the map engine do not necessarily meet requirements.
Disclosure of Invention
The embodiment of the application provides a data processing method and device, which achieve decoupling between a service function and a map engine and are beneficial to improving data processing efficiency.
A first aspect of an embodiment of the present application provides a data processing method, which is applied to a map engine system, and the method includes:
acquiring a plurality of service data, wherein the service data are used for expanding the function of the map engine system;
determining a service requirement corresponding to each service data in the plurality of service data to obtain a plurality of service requirements;
calling a map engine according to the plurality of business requirements, and performing data processing on the plurality of business data based on the map engine to obtain a plurality of map data;
and generating map information according to the map data.
A second aspect of the embodiments of the present application provides a data processing apparatus, which is applied to a map engine system, and the apparatus includes: an acquisition unit, a determination unit, a processing unit and a generation unit, wherein,
the acquisition unit is used for acquiring a plurality of service data, and the service data is used for expanding the function of the map engine system;
the determining unit is configured to determine a service requirement corresponding to each service data in the plurality of service data, so as to obtain a plurality of service requirements;
the processing unit is used for calling a map engine according to the plurality of business requirements, and performing data processing on the plurality of business data based on the map engine to obtain a plurality of map data;
the generating unit is used for generating map information according to the map data.
A third aspect of embodiments of the present application provides a server, where the server includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method according to the first aspect of embodiments of the present application.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps as described in the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has at least the following beneficial effects:
through the embodiment of the application, the method is applied to a map engine system, and comprises the following steps: the map engine is called according to the plurality of business requirements, the plurality of business data are subjected to data processing based on the map engine to obtain a plurality of map data, and finally, map information is generated according to the plurality of map data.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1A is a schematic diagram of a map engine system according to an embodiment of the present application;
fig. 1B is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to better understand the embodiments of the present application, methods of applying the embodiments of the present application will be described below.
The map engine system mentioned in the embodiments of the present application may include, but is not limited to, a background server, a component server, a cloud server, a service system server, or a software server, which are merely examples, and are not exhaustive and include, but are not limited to, the above devices.
Referring to fig. 1A, as shown in fig. 1A, the map engine system according to the embodiment of the present application includes a plurality of business modules 101, a business common function module 102, a business base module 103, and a map engine module 104, wherein,
the plurality of business modules 101 are used for acquiring a plurality of business data, each business module corresponds to one business data, and the business data is used for expanding the function of the map engine system;
the service public function module 102 is configured to determine a service requirement corresponding to each service data in the plurality of service data, obtain a plurality of service requirements, and invoke a map engine according to the plurality of service requirements;
the map engine module 103 is configured to perform data processing on the plurality of service data based on the map engine according to the plurality of service requirements, so as to obtain a plurality of map data;
the service basic module 104 is configured to generate map information according to the plurality of map data.
In a possible example, in the aspect of determining the service requirement corresponding to the service data, the service common function module 102 is specifically configured to:
determining a service interface corresponding to each service data in the plurality of service data to obtain a plurality of service interfaces;
determining a service type corresponding to each service data in the plurality of service data based on the plurality of service interfaces to obtain a plurality of service types;
and determining a service requirement corresponding to each service type in the plurality of service types based on the plurality of service types to obtain a plurality of service requirements.
In a possible example, in the aspect that the map engine performs data processing on the plurality of service data according to the plurality of service requirements to obtain a plurality of map data, the map engine module 103 is specifically configured to:
determining a map parameter corresponding to each business requirement in the multiple business requirements to obtain multiple map parameters, wherein the map parameters include at least one of the following: location longitude and latitude, administrative district grouping, geo-fence information and traffic information;
constructing a map object corresponding to each map parameter based on the map parameters to obtain a plurality of map objects;
and performing data encapsulation on each map object through the map engine to obtain a plurality of map data, wherein the data formats corresponding to the plurality of map data are the same.
Optionally, before determining the service requirement through the service common function module, the service common function module may further establish a connection with the plurality of service modules, where the establishment connection may use a hypertext transfer protocol (HTTP), a hypertext transfer protocol over secure socket layer (HTTPs), and other protocols, and is not limited herein. The map engine module may include at least one map engine, and the map engine module may include one or more map modules, and the service common function module may interface with the one or more service modules according to a uniform standard interface document.
In one possible example, in terms of the generating map information, the business infrastructure module 104 is specifically configured to:
acquiring at least one calling instruction corresponding to the map engine module;
generating the map information based on the at least one call instruction and the plurality of map data.
In a possible example, in the aspect of invoking the map engine according to the plurality of business requirements, the business base module 104 is further specifically configured to:
determining a zone bit contained in each service data in the plurality of service data according to the plurality of service requirements to obtain a plurality of zone bits;
based on the plurality of flag bits, invoking the map engine.
In a possible example, after the generating the map information, the business infrastructure module 104 is further specifically configured to:
calling a preset map layer interface, and sending the map information to the preset map layer interface;
acquiring a preset dom node corresponding to the preset layer interface;
and performing map rendering on the map information based on the preset dom node.
In a possible example, in terms of performing map rendering on the map information based on the preset dom node, the service base module 104 is specifically configured to:
constructing a virtual layer based on the preset dom node;
constructing event information corresponding to the map information in the virtual layer to obtain a target virtual layer;
and rendering the target virtual layer into a map layer, and finishing the step of rendering the map information.
It can be seen that the map engine system provided by the embodiment of the present application may include a plurality of service modules 101, a service common function module 102, a service basic module 103, and a map engine module 104, and the map engine module is separated from the service modules, the service common function module, and the service basic module, so as to implement data separation between the map engine and the service modules, facilitate decoupling between the service functions and the map engine, reduce data pressure of the entire map engine system, and facilitate improvement of data processing efficiency.
Referring to fig. 1B, fig. 1B is a schematic flowchart of a data processing method provided in an embodiment of the present application, and the method is applied to a map engine system, and the method includes the following steps:
101. and acquiring a plurality of service data, wherein the service data is used for expanding the function of the map engine system.
The service data can be understood as code data developed by developers and can be used for expanding the function of a map engine, the embodiment of the application can be applied to a server, the server can comprise a map engine system or a GIS system, the system can comprise a plurality of service modules, the server can receive the service data from different platforms through the plurality of service modules to obtain a plurality of service data, the data types corresponding to the service data input into the system by each service module can be different, and the service data can provide basic data bases for service basic modules; the service data may include Json text, xml text, ProtoBuf or binary coded data, and the like, which is not limited herein.
In a specific implementation, the method for obtaining the plurality of service data may include techniques such as SDK, restful api, and message queue, and the technical methods for obtaining the plurality of service data are all solutions for communication between program architecture modules, and the starting point is to provide a data transmission channel between modules in a system or a server, for example, the service data may be obtained by calling a senior api interface, or data processing may be performed through a restful interface, and the obtained data is transmitted to a corresponding service module.
Optionally, any service data in the plurality of service data may include service data required by one service request, or may include service data required by a batch of requests. For example, for a call requiring a series of map information, a batch interface can be used for calling all the required information at one time so as to improve the transmission and processing efficiency of the whole system.
102. And determining a service requirement corresponding to each service data in the plurality of service data to obtain a plurality of service requirements.
In a specific implementation, different service data can be distributed to different developers, and each developer can be responsible for one service type, for example, a part of developers need to develop and design a map administrative region part, another part of developers need to develop and design a UI part of a map interface, and the like, so that a plurality of service requirements can be obtained.
In a possible example, in the step 102, determining a service requirement corresponding to each of the plurality of service data to obtain a plurality of service requirements, the method may include the following steps:
21. determining a service interface corresponding to each service data in the plurality of service data to obtain a plurality of service interfaces;
22. determining a service type corresponding to each service data in the plurality of service data based on the plurality of service interfaces to obtain a plurality of service types;
23. and determining a service requirement corresponding to each service type in the plurality of service types based on the plurality of service types to obtain a plurality of service requirements.
The server may establish communication with other platforms based on different interfaces, each interface may correspond to one service type, and thus, a service type corresponding to each interface in the plurality of interfaces may be obtained, and the service type may also be understood as a map parameter corresponding to each service data, and may include at least one of the following: data such as place longitude and latitude, administrative district grouping, geo-fence information, traffic situation and the like are not limited herein; the service type also represents different service modes corresponding to different service data in the plurality of service data. In addition, the service interface may be set by the user or default to the system, which is not limited herein, for example, the service interface may be a JS interface.
103. And calling a map engine according to the plurality of business requirements, and performing data processing on the plurality of business data based on the map engine to obtain a plurality of map data.
The server may include at least one map engine, and the map engine may include any one of the following: the map engine only provides data, development of map functionality can depend on a service module, after service requirements corresponding to the plurality of service data are determined, data processing can be performed on the plurality of service data through the map engine according to the plurality of service requirements so as to meet the plurality of service requirements, meanwhile, a plurality of map data can be obtained, each service data can obtain a processing result after being processed according to the corresponding service requirement, and the processing result can correspond to one map data.
In a possible example, the step 103, performing data processing on the plurality of service data to obtain a plurality of map data, includes the following steps:
311. determining a map parameter corresponding to each business requirement in the multiple business requirements to obtain multiple map parameters, wherein the map parameters include at least one of the following: location longitude and latitude, administrative district grouping, geo-fence information and traffic information;
312. constructing a map object corresponding to each map parameter based on the map parameters to obtain a plurality of map objects;
313. and performing data encapsulation on each map object through the map engine to obtain a plurality of map data, wherein the data formats corresponding to the plurality of map data are the same.
Wherein, the map parameter may include at least one of the following: the map engine can be set by a user or defaulted by the system, can adapt to different map engines aiming at the system, and can be called when the map engine is required to provide data, so that the map engine can be uniformly packaged aiming at different map engines, development and calling of developers are facilitated, and the expansibility of the whole system or a server is enriched.
In specific implementation, a map parameter corresponding to each of the plurality of business requirements may be determined, that is, data required for a demand purpose to be achieved by each business requirement may be determined, different business requirements may correspond to different map parameters, and further, a map object corresponding to each map parameter may be constructed according to the plurality of map parameters to obtain a plurality of map objects corresponding to the plurality of map parameters, and the plurality of map objects may be subjected to data encapsulation by the map engine in a preset encapsulation manner to obtain a plurality of map data, that is, the plurality of business data may be encapsulated into a uniform format, which is beneficial to subsequent steps of generating map information, and the data formats corresponding to the plurality of map data are the same.
In addition, a predetermined encapsulation manner may be preset in the server, where the predetermined encapsulation manner may be set by a user or default of a system, and the data may be encapsulated into a uniform predetermined format by the predetermined encapsulation manner, for example, the predetermined format may be set to { x }, which is not limited herein; a Promise object may be used to represent a final state (completion or failure) of an asynchronous operation and a value returned by the asynchronous operation, where the Promise may refer to a constructor set by a user or defaulted by a system, that is, map data included in a service requirement corresponding to the service data is encapsulated and encapsulated into a uniform basic module, so as to facilitate subsequent data processing.
In a possible example, the step 103 of invoking the map engine according to the plurality of business requirements may include the following steps:
321. determining a zone bit contained in each service data in the plurality of service data according to the plurality of service requirements to obtain a plurality of zone bits;
322. based on the plurality of flag bits, invoking the map engine.
The map engine system may include at least one map engine, and therefore, functions corresponding to each map engine may be different, a flag bit may be set in advance for each map engine, the flag bit represents a mapping relationship between a service requirement and the map engine, the map engine corresponding to the flag bit may be determined according to the flag bit included in service data, and finally, the system may call the map engine according to the flag bit.
104. And generating map information according to the map data.
The map information may be in a text format or a binary format, which is not limited herein; the map information may include data such as location longitude and latitude, administrative district grouping, geo-fence information, traffic situation, and the like, which is not limited herein; the map information may be generated in the map engine from a plurality of map data.
In a possible example, the step 104 of generating the map information may include the following steps:
41. acquiring at least one calling instruction corresponding to the map engine;
42. generating the map information based on the at least one call instruction and the plurality of map data.
In a specific implementation, when the system needs to call map data, a call instruction can be obtained according to an interface corresponding to a map engine, and the system or the server can send at least one call instruction to the map engine, so that the server can obtain at least one call instruction corresponding to the map engine, and finally, the server can generate the map information based on the at least one call instruction and a plurality of map data.
In one possible example, after step 42 above, the map information is stored in a block chain.
Map information may be stored in a block created on a blockchain network, with the sharing of information between different platforms being achieved through blockchains. The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
In a possible example, after the step 104, after generating the map information, the following steps may be further included:
a1, calling a preset map layer interface, and sending the map information to the preset map layer interface;
a2, acquiring a preset dom node corresponding to the preset layer interface;
and A3, performing map rendering on the map information based on the preset dom node.
After the map information is generated, the map information can be rendered at the front end to obtain a rendered map, so that the map can be used by a user conveniently.
In addition, a layer interface can be preset in the server, the layer interface can be set by a user or default to a system, and the layer interface can be used for connecting communication between the server and the front end, in a specific implementation, a preset layer interface can be called to send the map information to the preset layer interface, a preset dom (document object Model) node corresponding to the preset image interface is obtained, the preset dom node can be set by the user or default to the system, the preset dom node can be used for rendering the map information to complete rendering of a map, the server can include a plurality of preset dom nodes, and therefore the server can render the map information layer by layer based on each of the preset dom nodes, and finally complete rendering of the map.
In a possible example, in the step a3, performing map rendering on the map information based on the preset dom node may include the following steps:
a31, constructing a virtual layer based on the preset dom node;
a32, constructing event information corresponding to the map information in the virtual layer to obtain a target virtual layer;
a33, rendering the target virtual layer to a map layer, and finishing the step of map rendering the map information.
The server can send the map information to the preset layer interface, send the map information to the map layer based on a preset dom node corresponding to the preset layer interface, and finally render the map through the map layer.
In a specific implementation, a specific preset dom (Document Object Model) node may be bound to the map layer, and other dom operations may be performed based on a virtual layer, so that a virtual layer may be constructed with the preset dom node, where the virtual layer may be a node element or a canvas element.
In addition, if a map position operation is needed, a structure, an event method needed by the structure and the like are added in the virtual layer, then the virtual layer can be rendered into a map layer by using a map engine interface, so that a business party or a user only needs to pay attention to a business function performed in the virtual layer, in addition, if the business party or the user does not need operations such as a map position or map pixel points and the like, only certain dom elements are added in a page, a virtual layer can also be established, and then the virtual layer is added into the page, so that the business function can be bound into the map engine under the condition of not influencing various business functions in the system.
It can be seen that, the data processing method described in the embodiment of the present application is applied to a server, and the method includes: the map engine is called according to the plurality of business requirements, the plurality of business data are subjected to data processing based on the map engine to obtain a plurality of map data, and finally map information is generated according to the plurality of map data.
In accordance with the above, please refer to fig. 2, fig. 2 is a flowchart illustrating a data processing method disclosed in an embodiment of the present application, applied to a server, where the data processing method may include the following steps:
201. and acquiring a plurality of service data, wherein the service data is used for expanding the function of the map engine system.
202. And determining a service requirement corresponding to each service data in the plurality of service data to obtain a plurality of service requirements.
203. And calling a map engine according to the plurality of business requirements, and performing data processing on the plurality of business data based on the map engine to obtain a plurality of map data.
204. And generating map information according to the map data.
205. And calling a preset map layer interface, and sending the map information to the preset map layer interface.
206. And acquiring a preset dom node corresponding to the preset layer interface.
207. And constructing a virtual layer based on the preset dom node.
208. And constructing event information corresponding to the map information in the virtual layer to obtain a target virtual layer.
209. And rendering the target virtual layer into a map layer, and finishing the step of performing map rendering on the map information.
The workflow-based service method described in the above steps 201 to 209 may refer to corresponding steps of the data processing method described in fig. 1B.
It can be seen that the data processing method described in the embodiment of the present application may obtain a plurality of service data, where the plurality of service data are used to expand the function of the map engine system, determine a service requirement corresponding to each service data in the plurality of service data, obtain a plurality of service requirements, invoke a map engine according to the plurality of service requirements, perform data processing on the plurality of service data based on the map engine, obtain a plurality of map data, generate map information according to the plurality of map data, invoke a preset layer interface, send the map information to the preset layer interface, obtain a preset dom node corresponding to the preset layer interface, construct a virtual layer based on the preset dom node, construct event information corresponding to the map information in the virtual layer, obtain a target virtual layer, render the target virtual layer into the map layer, and complete the step of performing map rendering on the map information, therefore, by separating the service data from the data of the map engine, the decoupling between the service function and the map engine is realized after the expansion service of the map engine function is separated from the map engine, and the service function can be bound into the map engine under the condition of not influencing various service functions in the system under the condition of realizing the decoupling between the service function and the map engine, so that the smooth proceeding of the whole development can be ensured, and the data processing efficiency can be improved.
In accordance with the above, please refer to fig. 3, fig. 3 is a flowchart illustrating a data processing method disclosed in an embodiment of the present application, applied to a server, where the data processing method may include the following steps:
301. and acquiring a plurality of service data, wherein the service data is used for expanding the function of the map engine system.
302. And determining a service interface corresponding to each service data in the plurality of service data to obtain a plurality of service interfaces.
303. Determining a service type corresponding to each service data in the plurality of service data based on the plurality of service interfaces to obtain a plurality of service types;
304. and determining a service requirement corresponding to each service type in the plurality of service types based on the plurality of service types to obtain a plurality of service requirements.
305. And calling a map engine according to the plurality of business requirements, and performing data processing on the plurality of business data based on the map engine to obtain a plurality of map data.
306. And generating map information according to the map data.
The workflow-based service method described in the above steps 301 to 306 may refer to the corresponding steps of the data processing method described in fig. 1B.
It can be seen that the data processing method described in the embodiment of the present application can obtain a plurality of service data, where the service data is used to expand the function of the map engine system, determine a service interface corresponding to each service data in the plurality of service data, obtain a plurality of service interfaces, determine a service type corresponding to each service data in the plurality of service data based on the plurality of service interfaces, obtain a plurality of service types, determine a service requirement corresponding to each service type in the plurality of service types based on the plurality of service types, obtain a plurality of service requirements, call the map engine according to the plurality of service requirements, perform data processing on the plurality of service data based on the map engine, obtain a plurality of map data, and generate map information according to the plurality of map data, so that different service interfaces correspond to different service interfaces, and different service interfaces correspond to different service types, different service types correspond to different service requirements, so that different service functions corresponding to the different service requirements can be bound into the map engine under the condition of not influencing various service functions in the system, decoupling between the service functions and the map engine is realized, and the data processing efficiency is improved. This application can be applied to fields such as wisdom government affairs and wisdom traffic, can promote the construction in wisdom city through this scheme.
In accordance with the above, please refer to fig. 4, fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application, and as shown in fig. 4, the server includes a processor, a communication interface, a memory and one or more programs, where the processor, the communication interface and the memory are connected to each other, the memory is used for storing a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the one or more program programs include instructions for performing the following steps:
acquiring a plurality of service data, wherein the service data is used for expanding the function of the map engine system;
determining a service requirement corresponding to each service data in the plurality of service data to obtain a plurality of service requirements;
calling a map engine according to the plurality of business requirements, and performing data processing on the plurality of business data based on the map engine to obtain a plurality of map data;
and generating map information according to the map data.
It can be seen that, in the embodiment of the present application, the server obtains a plurality of service data, where the service data is used to expand the function of the map engine system, determine a service requirement corresponding to each service data in the plurality of service data, obtain a plurality of service requirements, call the map engine according to the plurality of service requirements, perform data processing on the plurality of service data based on the map engine, obtain a plurality of map data, and finally generate map information according to the plurality of map data.
In a possible example, in the aspect of determining a service requirement corresponding to each service data in the plurality of service data and obtaining a plurality of service requirements, the processor is specifically configured to:
determining a service interface corresponding to each service data in the plurality of service data to obtain a plurality of service interfaces;
determining a service type corresponding to each service data in the plurality of service data based on the plurality of service interfaces to obtain a plurality of service types;
and determining a service requirement corresponding to each service type in the plurality of service types based on the plurality of service types to obtain a plurality of service requirements.
In a possible example, in the invoking a map engine according to the plurality of business requirements, the processor is specifically configured to:
determining a zone bit contained in each service data in the plurality of service data according to the plurality of service requirements to obtain a plurality of zone bits;
based on the plurality of flag bits, invoking the map engine.
In a possible example, in the aspect that the map engine performs data processing on the plurality of service data to obtain a plurality of map data, the processor is specifically configured to:
determining a map parameter corresponding to each business requirement in the multiple business requirements to obtain multiple map parameters, wherein the map parameters include at least one of the following: location longitude and latitude, administrative district grouping, geo-fence information and traffic information;
constructing a map object corresponding to each map parameter based on the map parameters to obtain a plurality of map objects;
and performing data encapsulation on each map object based on the map engine to obtain a plurality of map data, wherein the data formats corresponding to the plurality of map data are the same.
In one possible example, in the aspect of generating map information, the processor is specifically configured to:
acquiring at least one calling instruction corresponding to the map engine;
generating the map information based on the at least one call instruction and the plurality of map data.
In one possible example, in the generating map information, the processor is further configured to:
storing the map information in a blockchain.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the server includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the server may be divided into the functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In accordance with the above, please refer to fig. 5, fig. 5 is a schematic structural diagram of a data processing apparatus disclosed in the embodiment of the present application, applied to a server, the apparatus including: an obtaining unit 501, a determining unit 502, a processing unit 503 and a generating unit 504, wherein:
the obtaining unit 501 is configured to obtain a plurality of service data, where the service data is used to expand the function of the map engine system;
the determining unit 502 is configured to determine a service requirement corresponding to each service data in the plurality of service data, so as to obtain a plurality of service requirements;
the processing unit 503 is configured to invoke a map engine according to the multiple service requirements, and perform data processing on the multiple service data based on the map engine to obtain multiple map data;
the generating unit 504 is configured to generate map information according to the plurality of map data.
It can be seen that the data processing apparatus described in the embodiments of the present application, applied to a server, may obtain a plurality of service data, the business data is used for expanding the function of the map engine system, determining the business requirement corresponding to each business data in a plurality of business data to obtain a plurality of business requirements, calling a map engine according to a plurality of service requirements, performing data processing on a plurality of service data based on the map engine to obtain a plurality of map data, finally generating map information according to the plurality of map data, in this way, by separating the business data from the map engine data means that after the business of expanding the map engine function is separated from the map engine, the decoupling between the business function and the map engine is realized, the data pressure of the whole map engine system is reduced, and the data processing efficiency is improved.
In a possible example, in the aspect of determining a service requirement corresponding to each service data in the plurality of service data to obtain a plurality of service requirements, the determining unit 502 is specifically configured to:
determining a service interface corresponding to each service data in the plurality of service data to obtain a plurality of service interfaces;
determining a service type corresponding to each service data in the plurality of service data based on the plurality of service interfaces to obtain a plurality of service types;
and determining a service requirement corresponding to each service type in the plurality of service types based on the plurality of service types to obtain a plurality of service requirements.
In a possible example, in the aspect of invoking the map engine according to the plurality of business requirements, the processing unit 503 is specifically configured to:
determining a zone bit contained in each service data in the plurality of service data according to the plurality of service requirements to obtain a plurality of zone bits;
based on the plurality of flag bits, invoking the map engine.
In a possible example, in terms of obtaining a plurality of map data by performing data processing on the plurality of service data based on the map engine, the processing unit 503 is specifically configured to:
determining a map parameter corresponding to each business requirement in the multiple business requirements to obtain multiple map parameters, wherein the map parameters include at least one of the following: location longitude and latitude, administrative district grouping, geo-fence information and traffic information;
constructing a map object corresponding to each map parameter based on the map parameters to obtain a plurality of map objects;
and performing data encapsulation on each map object based on the map engine to obtain a plurality of map data, wherein the data formats corresponding to the plurality of map data are the same.
In a possible example, in terms of the map information generation, the generating unit 504 is specifically configured to:
acquiring at least one calling instruction corresponding to the map engine;
generating the map information based on the at least one call instruction and the plurality of map data.
In one possible example, in terms of the generating map information, the generating unit 504 is further configured to:
storing the map information in a blockchain.
Embodiments of the present application also provide a computer-readable storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the data processing methods as described in the above method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the data processing methods as set forth in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A data processing method is applied to a map engine system, and comprises the following steps:
acquiring a plurality of service data, wherein the service data are used for expanding the function of the map engine system;
determining a service requirement corresponding to each service data in the plurality of service data to obtain a plurality of service requirements;
calling a map engine according to the plurality of business requirements, and performing data processing on the plurality of business data based on the map engine to obtain a plurality of map data;
and generating map information according to the map data.
2. The method of claim 1, wherein the determining the service requirement corresponding to each of the plurality of service data to obtain a plurality of service requirements comprises:
determining a service interface corresponding to each service data in the plurality of service data to obtain a plurality of service interfaces;
determining a service type corresponding to each service data in the plurality of service data based on the plurality of service interfaces to obtain a plurality of service types;
and determining a service requirement corresponding to each service type in the plurality of service types based on the plurality of service types to obtain a plurality of service requirements.
3. The method of claim 1, wherein said invoking a map engine based on said plurality of business requirements comprises:
determining a zone bit contained in each service data in the plurality of service data according to the plurality of service requirements to obtain a plurality of zone bits;
based on the plurality of flag bits, invoking the map engine.
4. The method of claim 2, wherein the performing data processing on the plurality of business data based on the map engine to obtain a plurality of map data comprises:
determining a map parameter corresponding to each business requirement in the multiple business requirements to obtain multiple map parameters, wherein the map parameters include at least one of the following: location longitude and latitude, administrative district grouping, geo-fence information and traffic information;
constructing a map object corresponding to each map parameter based on the map parameters to obtain a plurality of map objects;
and performing data encapsulation on each map object based on the map engine to obtain a plurality of map data, wherein the data formats corresponding to the plurality of map data are the same.
5. The method of claim 4, wherein the generating map information comprises:
acquiring at least one calling instruction corresponding to the map engine;
generating the map information based on the at least one call instruction and the plurality of map data.
6. The method of claim 1, wherein after the generating map information, the method further comprises:
calling a preset map layer interface, and sending the map information to the preset map layer interface;
acquiring a preset dom node corresponding to the preset layer interface;
and performing map rendering on the map information based on the preset dom node.
7. The method of claim 6, wherein the map rendering the map information based on the preset dom node comprises:
constructing a virtual layer based on the preset dom node;
constructing event information corresponding to the map information in the virtual layer to obtain a target virtual layer;
and rendering the target virtual layer into a map layer, and finishing the step of performing map rendering on the map information.
8. A data processing device, applied to a map engine system, the device comprising: an acquisition unit, a determination unit, a processing unit and a generation unit, wherein,
the acquisition unit is used for acquiring a plurality of service data, and the service data is used for expanding the function of the map engine system;
the determining unit is configured to determine a service requirement corresponding to each service data in the plurality of service data, so as to obtain a plurality of service requirements;
the processing unit is used for calling a map engine according to the plurality of business requirements, and performing data processing on the plurality of business data based on the map engine to obtain a plurality of map data;
the generating unit is used for generating map information according to the map data.
9. A server comprising a processor, an input device, an output device, and a memory, the processor, the input device, the output device, and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.
CN202010349105.3A 2020-04-28 2020-04-28 Data processing method and device Pending CN111651536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010349105.3A CN111651536A (en) 2020-04-28 2020-04-28 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010349105.3A CN111651536A (en) 2020-04-28 2020-04-28 Data processing method and device

Publications (1)

Publication Number Publication Date
CN111651536A true CN111651536A (en) 2020-09-11

Family

ID=72352641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010349105.3A Pending CN111651536A (en) 2020-04-28 2020-04-28 Data processing method and device

Country Status (1)

Country Link
CN (1) CN111651536A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287048A (en) * 2020-09-28 2021-01-29 珠海大横琴科技发展有限公司 Map service processing method and device
CN112882846A (en) * 2021-02-19 2021-06-01 深圳市云网万店科技有限公司 Data processing method and device of message queue, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170108347A1 (en) * 2015-10-16 2017-04-20 Oracle International Corporation Generating virtual map tiles according to an ad hoc specification
CN106775632A (en) * 2016-11-21 2017-05-31 中国科学院遥感与数字地球研究所 A kind of operation flow can flexible expansion high-performance geographic information processing method and system
CN110597941A (en) * 2019-09-11 2019-12-20 广州力挚网络科技有限公司 Map display method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170108347A1 (en) * 2015-10-16 2017-04-20 Oracle International Corporation Generating virtual map tiles according to an ad hoc specification
CN106775632A (en) * 2016-11-21 2017-05-31 中国科学院遥感与数字地球研究所 A kind of operation flow can flexible expansion high-performance geographic information processing method and system
CN110597941A (en) * 2019-09-11 2019-12-20 广州力挚网络科技有限公司 Map display method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287048A (en) * 2020-09-28 2021-01-29 珠海大横琴科技发展有限公司 Map service processing method and device
CN112882846A (en) * 2021-02-19 2021-06-01 深圳市云网万店科技有限公司 Data processing method and device of message queue, computer equipment and storage medium
CN112882846B (en) * 2021-02-19 2024-02-09 深圳市云网万店科技有限公司 Data processing method and device for message queue, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108449418B (en) Hybrid cloud platform management system and method
CN111182025B (en) Message processing method, device, server and storage medium
CN111490878B (en) Key generation method, device, equipment and medium
CN110543510B (en) Bill data processing method, device, storage medium and computer equipment
CN111259037B (en) Data query method and device based on rule configuration, storage medium and terminal
CN111722947A (en) Service calling method and system
CN111698205B (en) Service calling method and related equipment
CN111988418B (en) Data processing method, device, equipment and computer readable storage medium
CN111651536A (en) Data processing method and device
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN109525550B (en) Data message processing method, device and system
CN113392350B (en) Page routing processing method, device, equipment and storage medium
CN110781523B (en) Method and apparatus for processing information
CN112416619A (en) Interface configuration method, equipment, terminal and storage medium
CN113918245A (en) Data calling method, device, equipment and computer readable storage medium
CN112732835A (en) Block chain-based heterogeneous data storage method and electronic equipment
CN112818266A (en) Rendering method, rendering device, storage medium and electronic equipment
CN113098957B (en) Data transmission method and related product
CN115118727B (en) Data transmission method, device, equipment and storage medium of distributed computing architecture
CN113419776B (en) Application compatibility method, computer device, and storage medium
CN111986029A (en) Data processing method and device and electronic equipment
CN115242866A (en) Micro-service calling method and device, electronic equipment and storage medium
CN114697315A (en) Picture transmission method, device and system
CN114416744A (en) Identification data generation method and device, computer equipment and storage medium
CN116185297A (en) Transaction processing method and device based on blockchain and electronic equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20220523

Address after: 518000 China Aviation Center 2901, No. 1018, Huafu Road, Huahang community, Huaqiang North Street, Futian District, Shenzhen, Guangdong Province

Applicant after: Shenzhen Ping An medical and Health Technology Service Co.,Ltd.

Address before: Room 12G, Area H, 666 Beijing East Road, Huangpu District, Shanghai 200001

Applicant before: PING AN MEDICAL AND HEALTHCARE MANAGEMENT Co.,Ltd.

TA01 Transfer of patent application right