[go: up one dir, main page]

CN111290718B - Map processing method, device and electronic device - Google Patents

Map processing method, device and electronic device Download PDF

Info

Publication number
CN111290718B
CN111290718B CN202010063478.4A CN202010063478A CN111290718B CN 111290718 B CN111290718 B CN 111290718B CN 202010063478 A CN202010063478 A CN 202010063478A CN 111290718 B CN111290718 B CN 111290718B
Authority
CN
China
Prior art keywords
layer
map
vector data
picture
target map
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
CN202010063478.4A
Other languages
Chinese (zh)
Other versions
CN111290718A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010063478.4A priority Critical patent/CN111290718B/en
Publication of CN111290718A publication Critical patent/CN111290718A/en
Application granted granted Critical
Publication of CN111290718B publication Critical patent/CN111290718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a map processing method, a map processing device and electronic equipment, and relates to the technical field of geographic information. The specific implementation scheme of the map processing method is as follows: acquiring vector data of a target map layer requested by a map printing request, wherein the target map layer comprises a base map layer of a map; rendering the vector data of the target map layer; generating a picture to be printed based on the vector data of the rendered target map layer; and outputting the picture to be printed to printing equipment. One embodiment of the present application has the following advantages or benefits: the resolution ratio of the picture to be printed can be improved, the problem that the display quality of the printed paper map is low due to the fact that the resolution ratio of the picture to be printed is limited in the existing map printing process is solved, and the technical effect of improving the display quality of the printed paper map is achieved.

Description

Map processing method and device and electronic equipment
Technical Field
The present disclosure relates to computer technologies, and in particular, to the field of geographic information technologies, and in particular, to a map processing method, a map processing device, and an electronic device.
Background
With the rapid development of internet technology and geographic information technology, the resolution and the aesthetic property of an electronic map are greatly improved, and the electronic map is also widely applied to traffic travel and geographic information construction of departments such as government, army, civil air defense and the like. In some situations, there may be a need for printing an electronic map as a paper map, for example, the user needs to make a label on the paper map during communication or a brainstorming process.
Currently, in the map printing process, a user typically directly prints a picture on a web page of an electronic map. However, since the resolution of the picture of the web page of the electronic map is generally limited, the resolution of the picture in the paper map may be reduced when the picture is enlarged and printed, thereby reducing the display quality of the paper map.
As can be seen, the current map printing has a problem that the display quality of the printed paper map is low.
Disclosure of Invention
The application provides a map processing method, a map processing device and electronic equipment, and aims to solve the problem that the display quality of a printed paper map is low in the current map printing.
In order to solve the technical problems, the application is realized as follows:
In a first aspect, the present application provides a map processing method, including:
acquiring vector data of a target map layer requested by a map printing request, wherein the target map layer comprises a base map layer of a map;
rendering the vector data of the target map layer;
generating a picture to be printed based on the vector data of the rendered target map layer;
and outputting the picture to be printed to printing equipment.
Optionally, in the case that the target map layer further includes at least one layer of a thematic layer and a map finishing layer, the obtaining vector data of the target map layer includes:
determining a target map layer of the map print request;
constructing a data search condition corresponding to a first layer, wherein the first layer is any layer in the target map layers;
and searching vector data of the first layer in a layer database corresponding to the first layer based on the data searching condition.
Optionally, the data search condition includes at least one of a data filtering rule and a data return format.
Optionally, in the case that the target map layer further includes at least one layer of a thematic layer and a map finishing layer, the generating the picture to be printed based on the vector data of the rendered target map layer includes:
Generating a picture of vector data of each layer in the rendered target map layers;
and superposing the pictures of the vector data of each layer to obtain the picture to be printed.
Optionally, in a case where the target map layer further includes at least one layer of a thematic layer and a map finishing layer, the rendering the vector data of the target map layer includes:
obtaining rendering configuration parameters corresponding to a second layer, wherein the second layer is any layer in the target map layers;
and rendering the second layer based on the rendering configuration parameters.
In a second aspect, the present application further provides a map processing device, including:
the vector data acquisition module is used for acquiring vector data of a target map layer requested by a map printing request, wherein the target map layer comprises a base map layer of a map;
the rendering module is used for rendering the vector data of the target map layer;
the picture generation module is used for generating a picture to be printed based on the vector data of the rendered target map layer;
and the output module is used for outputting the picture to be printed to the printing equipment.
Optionally, in the case that the target map layer further includes at least one layer of a thematic layer and a map finishing layer, the vector data obtaining module includes:
a layer determining unit, configured to determine a target map layer requested by the map print request;
the search condition construction unit is used for constructing a data search condition corresponding to a first layer, wherein the first layer is any layer in the target map layers;
and the vector data searching unit is used for searching the vector data of the first layer in the layer database corresponding to the first layer based on the data searching condition.
Optionally, the data search condition includes at least one of a data filtering rule and a data return format.
Optionally, in the case that the target map layer further includes at least one layer of a thematic layer and a map finishing layer, the picture generation module includes:
the image generation unit is used for generating an image of the vector data of each layer in the rendered target map layers;
and the picture superposition unit is used for superposing the pictures of the vector data of each layer to obtain the picture to be printed.
Optionally, in a case where the target map layer further includes at least one layer of a thematic layer and a map finishing layer, the rendering module includes:
the parameter acquisition unit is used for acquiring rendering configuration parameters corresponding to a second layer, wherein the second layer is any layer in the target map layers;
and the rendering unit is used for rendering the second layer based on the rendering configuration parameters.
In a third aspect, the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the methods of the first aspect.
In a fourth aspect, the present application provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform any of the methods of the first aspect.
One embodiment of the above application has the following advantages or benefits: acquiring vector data of a target map layer requested by a map printing request, wherein the target map layer comprises a base map layer of a map; rendering the vector data of the target map layer; generating a picture to be printed based on the vector data of the rendered target map layer; and outputting the picture to be printed to printing equipment. By adopting the technical means, the resolution of the picture to be printed can be improved, the problem that the display quality of the printed paper map is low due to the limited resolution of the picture to be printed in the existing map printing process is solved, and the technical effect of improving the display quality of the printed paper map is achieved.
In addition, by setting different layer databases corresponding to different map layers, when the processing device of the map determines the target map layer of the paper map to be printed, the data search condition of each map layer (namely the first layer) in the target map layer can be constructed, and vector data is searched in the corresponding layer databases according to the data search condition of each map layer, so that vector data of the corresponding map layer can be searched in the different layer databases at the same time, the data search efficiency is improved, and the printing efficiency of the paper map is further improved.
The rendering configuration parameters corresponding to each map layer in the target map layers are obtained, and the map layers are rendered based on the rendering parameters corresponding to each map layer, so that the rendering configuration parameters used in rendering construction of each map layer are more suitable, the rendering effect of each map layer is improved, and the display quality of the printed paper map is further improved.
By superposing the pictures generated based on the vector data of each rendered map layer to generate the picture to be printed, not only can at least one of the map themes and the map finishings be output, but also the resolution of the picture to be printed can be ensured under the condition of at least one of the map themes and the map finishings to be output, and the display quality of the printed paper map is further improved.
Other effects of the above alternative will be described below in connection with specific embodiments.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
fig. 1 is a flowchart of a processing method of a map according to a first embodiment of the present application;
fig. 2 is a schematic structural view of a map processing system according to a first embodiment of the present application;
fig. 3 is a schematic structural view of a map processing apparatus according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of a vector data acquisition module according to a second embodiment of the present application;
fig. 5 is a schematic structural diagram of a picture generation module according to a second embodiment of the present application;
fig. 6 is a schematic structural view of a rendering module according to a second embodiment of the present application;
fig. 7 is a block diagram of an electronic device used to implement the map processing method of the embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The application provides a map processing method which can be applied to a map processing device. As shown in fig. 1, the map processing method includes the following steps:
step 101, obtaining vector data of a target map layer requested by a map printing request.
In this step, the above-mentioned map print request may be a request generated by the processing apparatus of the map according to the received operation input by the user, that is: when the user needs to print the paper map, the user can input configuration parameters of the paper map to be printed in the map processing device, and the map processing device generates a map printing request according to the configuration parameters input by the user.
For example, as shown in fig. 2, the processing device of the map is provided with a visual console, and the visual console can provide a visual parameter configuration function of printing the map, when the user needs to print the paper map, the user can input the configuration parameters of the paper map to be printed at the visual console, and the visual console generates a map printing request corresponding to the configuration parameters input by the user.
In this application, the vector data of the target map layer requested by the map print request may be the target map layer of the paper map that the user needs to print when the map print request is generated by the map processing device.
For example, as shown in fig. 2, the map processing device is further provided with a map printing service module, after the visualization console generates the map printing request, the visualization console sends the map printing request to the map printing service module, the printing service module analyzes the received map printing request, and determines a map layer (i.e., a target map layer) corresponding to the map printing request according to the analysis result.
The target map layer at least comprises a base map layer of the map. Thus, the configuration parameters input by the user at least include parameters associated with the base layer, for example, the configuration parameters may include longitude and latitude parameters of the base layer, and so on.
In addition, the target map layer may further include at least one of a theme layer and a map finishing layer, where the theme layer may be a layer including a theme identifier or information of a map, and for example, may include at least one of a traffic route identifier, a forest lake identifier, a military facility identifier, and the like; the map finishing layer may be a layer including finishing identification or information of a map, for example, at least one of a legend, compass, and title.
In the case where the target map layer further includes at least one of a map layer such as a theme layer and a map finishing layer, the configuration parameters input by the user also include parameters associated with at least one of the map layers such as the theme layer and the map finishing layer, which are not exemplified herein.
In the process of determining the target map layer requested by the map print request by the map processing device, the map processing device may further verify the request parameters of each map layer obtained by analyzing the map print request, that is, determine whether the request parameters of the map layer are correct according to a rule for determining the request parameters of the map layer, if the request parameters of a certain map layer are correct, determine that the map layer passes the verification, and use the map layer as a layer in the target map layer; if the request parameter of a map layer is incorrect, corresponding error information is acquired and returned to the requesting user, wherein the judgment rule of the request parameter may include at least one of whether the format is correct, whether the parameter is supported, whether the map layer exists, and the like.
In this application, after the processing device of the map determines the target map layer requested by the map print request, the processing device of the map may query the vector database of the map for vector data of the target map layer.
Specifically, in the case where the target map layer further includes at least one layer of the thematic layer and the map finishing layer, the acquiring vector data of the target map layer may include:
determining a target map layer of the map print request;
constructing a data search condition corresponding to a first layer, wherein the first layer is any layer in the target map layers;
and searching vector data of the first layer in a layer database corresponding to the first layer based on the data searching condition.
Here, the processing device of the map may set different layer databases corresponding to different map layers, when the processing device of the map determines a target map layer of the paper map to be printed, the data search condition of each map layer (i.e. the first layer) in the target map layer may be constructed, and vector data may be searched in the corresponding layer databases according to the data search condition of each map layer, so that vector data of the corresponding map layer may be searched in different layer databases at the same time, and the efficiency of data search may be improved, thereby improving the printing efficiency of the paper map.
For example, as shown in fig. 2, the map processing device is further provided with a map management service module, a data search engine, a base map database, a thematic database and a map finishing database, where, in the case that the map printing service module determines a target map layer requested by a map printing request, the map management service module obtains layer information of each map layer in the target map layer and transmits the layer information of each map layer to the data search engine, the data search engine constructs data search conditions corresponding to each map layer according to the layer information of each map layer, and searches vector data of each map layer in the database corresponding to each map layer through the data search conditions corresponding to each map layer, specifically, it is assumed that the target base map layer includes the base map layer, the thematic layer and the map finishing layer, and the data search engine constructs data search conditions of the base map layer and searches vector data of the base map layer in the base map database according to the data search conditions of the base map layer; constructing data search conditions of the thematic layer, and searching vector data of the thematic layer in a thematic database according to the data search conditions of the thematic layer; and constructing data search conditions of the map finishing layer, searching vector data of the map finishing layer in the map finishing database according to the data search conditions of the map finishing layer, and the like.
It should be noted that, the map layer management service module in fig. 2 may have other functions besides the function of acquiring the map layer information of each map layer in the target map layer, for example, at least one of issuing a map layer, updating a map layer, deleting a map layer, managing a map layer style, and the like for each map layer in the target map layer; in addition, each of the base map database, the thematic database, and the map finishing database may have a function of storing corresponding vector data, and may manage data, for example, at least one of adding data, updating data, querying data, deleting data, and the like.
In addition, the above-mentioned data search condition may be any condition for the processing device of the map to perform data search in the database corresponding to each map layer, specifically, the data search condition includes at least one of a data filtering rule, a data return format, and the like, where the data filtering rule may be a rule for filtering data other than vector data of the map layer; the data return format may be a data format for indicating vector data of the returned map layer.
And 102, rendering the vector data of the target map layer.
In this step, after the processing device of the map acquires the vector data of the target base map layer, the processing device of the map may render the vector data of the target map layer.
In this application, the above-mentioned rendering of the vector data of the target map layer may be that the map processing device performs rendering processing on the vector data of each map layer in the target map layer according to the rendering configuration parameters of the target base map layer.
For example, in the case where the target map layer includes only the base map layer, the map processing device may render the vector data of the searched base map layer according to a preset rendering configuration parameter.
Here, the above-described rendering configuration parameters may include parameters of at least one of a symbol of a point, a color of a line, a transparency of a line, a thickness of a line, a color of a face, a background color of a face, and the like.
It should be noted that, the rendering configuration parameters of the target map layer may be configuration parameters for rendering all map layers, and only rendering all map layers in the target map layer is implemented based on a certain rendering configuration parameter.
Or, in the case that the target map layer further includes at least one layer of a thematic layer and a map finishing layer, the rendering the vector data of the target map layer includes:
Obtaining rendering configuration parameters corresponding to a second layer, wherein the second layer is any layer in the target map layers;
and rendering the second layer based on the rendering configuration parameters.
Here, the map processing device may obtain rendering configuration parameters corresponding to each map layer in the target map layers, and render the map layers based on the rendering parameters corresponding to each map layer, so that the rendering configuration parameters used in rendering construction of each map layer are more suitable, the rendering effect of each map layer is improved, and the display quality of the printed paper map is further improved.
For example, as shown in fig. 2, the map processing device is further provided with a base map service module, a thematic service module (such as GeoServer, etc.), a map finishing management service module and a rendering engine, where the base map service module can provide a rendering function for vector data of a base map, that is, provide rendering configuration parameters corresponding to a base map layer for the rendering engine; the thematic service module can provide a layer rendering function of vector data of the thematic layer, namely, rendering configuration parameters corresponding to the thematic layer are provided for a rendering engine; the map finishing management service module can provide rendering configuration parameters corresponding to the map finishing layers for the layer rendering function of the vector data of the map finishing layers, namely, the rendering engine; and the rendering engine can respectively render the vector data of the corresponding map layers according to rendering configuration parameters respectively provided by the base map service module, the thematic service module and the map finishing management service module under the condition that the data search engine searches the vector data of each map layer.
And step 103, generating a picture to be printed based on the vector data of the rendered target map layer.
In this step, after the processing device of the map renders the vector data of the target map layer, the processing device of the map may acquire the vector data of the target map layer after rendering, and generate a map picture (i.e. a picture to be printed) that the user needs to print based on the vector data of the target map layer after rendering.
In the present application, when the target map layer includes only the map layer, the map processing device may generate a base map picture based on the vector data of the rendered base map layer, and use the base map picture as the tape print picture.
Alternatively, in the case where the target map layer further includes at least one layer of the thematic layer and the map finishing layer, the step 103 may include:
generating a picture of vector data of each layer in the rendered target map layers;
and superposing the pictures of the vector data of each layer to obtain the picture to be printed.
Here, the processing device of the map generates the picture to be printed by superposing the pictures generated based on the vector data of each rendered map layer, so that not only can at least one of the map themes and the map finishings be output, but also the resolution of the picture to be printed can be ensured under the condition of at least one of the map themes and the map finishings being output, and the display quality of the printed paper map is further improved.
For example, as shown in fig. 2, the base map service module may also provide a base map for the map printing service, that is, after the rendering engine renders the vector data of the base map layer, the base map service module generates a base map through the vector data of the rendered base map layer and transmits the base map to the map printing service module; the thematic service module can also provide Web Map Service (WMS) and Web element service (WFS) which meet certain standards (such as OGC standard and the like), namely after the rendering engine renders the vector data of the thematic layer, the thematic service module generates a thematic map through the vector data of the rendered thematic layer and transmits the thematic map to the map printing service module; the map finishing management service module can also provide a basic map finishing map for the map printing service, namely after the rendering engine renders the vector data of the map finishing map layer, the map finishing management service module generates the map finishing map through the vector data of the rendered map finishing map layer and transmits the map finishing map to the map printing service module; the map printing service may further superimpose the input pictures according to a preset sequence to obtain a picture to be printed, and if the target map layer includes a base map layer, a thematic map layer and a map finishing map layer, the map printing service may superimpose the input base map, thematic map and map finishing map according to the preset sequence to obtain the picture to be printed.
The pictures of the map layers generated above may be any format, for example, jpg or png, and the like, and are not limited thereto.
Step 104, outputting the picture to be printed to printing equipment.
In this step, after the processing device of the map generates the picture to be printed, the processing device of the map may output the picture to be printed to the printing apparatus, and the printing apparatus prints the picture to be printed into the paper map.
For example, as shown in fig. 2, after the map printing service module obtains the picture to be printed, the map printing service module may directly output the picture to be printed to the printing device for printing; or, the map printing service may transmit the picture to be printed to the visual console, and the visual console displays the picture to be printed, and outputs the picture to be printed to the printing device for printing according to the printing instruction of the user for the picture to be printed.
For easy understanding, the application also provides an application process of the map processing method in actual engineering, which comprises the following steps:
first, the user configures parameters of the printed map (i.e., the configuration parameters input by the user) at the visualization console as shown in fig. 2, creates a task of the printed map, such as a printed map rectangular range of [ longitude1, latitudide 1, longitude2, latitudide 2], wherein longitude1 and latitudide 1 are longitude and latitude of the upper left corner of the rectangular range, respectively, longitude2 and latitudide 2 are longitude and latitude of the upper right corner of the rectangular range, respectively, a zoom level scale=10 of the printed map, and a title of the printed base map is "map for test";
Secondly, the back-end service receives a request of the visual console, acquires data (i.e. vector data) of a layer to be printed (target map layer), for example, the layer to be printed can comprise a bottom map layer and a map finishing layer; the rendering engine renders according to the data returned by the data search engine and generates pictures corresponding to each layer of the layers to be printed, and then the map printing service superimposes the pictures corresponding to each layer, for example, a base map and a map finishing map are superimposed to generate a complete map picture, and the complete map picture is returned to the visual console;
the visual console displays the picture returned by the back-end service to the user;
after the user performs a printing operation (i.e., a printing instruction of the user), the visualization console outputs the map picture to the printer, and prints out the map (i.e., a paper map).
It should be noted that, the various alternative embodiments described in the present application may be implemented in combination with each other, or may be implemented separately, which is not limited to this application.
In the embodiment of the application, vector data of a target map layer requested by a map printing request is acquired, wherein the target map layer comprises a base map layer of a map; rendering the vector data of the target map layer; generating a picture to be printed based on the vector data of the rendered target map layer; and outputting the picture to be printed to printing equipment. Therefore, the resolution of the picture to be printed can be improved by directly rendering the vector data of the map layer and generating the picture to be printed, and the display quality of the printed paper map is further improved.
The present application also provides a map processing device, as shown in fig. 3, the map processing device 300 includes:
a vector data obtaining module 301, configured to obtain vector data of a target map layer requested by a map print request, where the target map layer includes a base map layer of a map;
a rendering module 302, configured to render vector data of the target map layer;
a picture generation module 303, configured to generate a picture to be printed based on the vector data of the rendered target map layer;
and the output module 304 is configured to output the picture to be printed to a printing device.
Optionally, in the case where the target map layer further includes at least one layer of a thematic layer and a map finishing layer, as shown in fig. 4, the vector data obtaining module 301 includes:
a layer determining unit 3011 for determining a target map layer requested by the map print request;
a search condition construction unit 3012, configured to construct a data search condition corresponding to a first layer, where the first layer is any layer in the target map layers;
and a vector data searching unit 3013, configured to search, based on the data searching condition, vector data of the first layer in a layer database corresponding to the first layer.
Optionally, the data search condition includes at least one of a data filtering rule and a data return format.
Optionally, in the case where the target map layer further includes at least one layer of a thematic layer and a map finishing layer, as shown in fig. 5, the picture generation module 303 includes:
a picture generating unit 3031, configured to generate a picture of vector data of each layer in the rendered target map layers;
and the picture superposition unit 3032 is used for superposing the pictures of the vector data of each layer to obtain the picture to be printed.
Optionally, in the case that the target map layer further includes at least one layer of a thematic layer and a map finishing layer, as shown in fig. 6, the rendering module 302 includes:
a parameter obtaining unit 3021, configured to obtain a rendering configuration parameter corresponding to a second layer, where the second layer is any layer in the target map layers;
and a rendering unit 3022, configured to render the second layer based on the rendering configuration parameter.
The map processing device 300 provided in the present application can implement each process implemented by the map processing device in the map processing method embodiment, and can achieve the same beneficial effects, so that repetition is avoided, and no description is repeated here.
According to embodiments of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 7, a block diagram of an electronic device according to a map processing method according to an embodiment of the present application is shown. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 7, the electronic device includes: one or more processors 701, memory 702, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 701 is illustrated in fig. 7.
Memory 702 is a non-transitory computer-readable storage medium provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of processing a map provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to execute the processing method of the map provided by the present application.
The memory 702 is used as a non-transitory computer readable storage medium, and may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the vector data acquisition module 301, the rendering module 302, the picture generation module 303, and the output module 304 shown in fig. 3) corresponding to the map processing method in the embodiment of the present application. The processor 701 executes various functional applications of the server and data processing, that is, implements the processing method of the map in the above-described method embodiment, by running a non-transitory software program, instructions, and modules stored in the memory 702.
Memory 702 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the electronic device of the processing method of the map, and the like. In addition, the memory 702 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 702 may optionally include memory remotely located with respect to the processor 701, which may be connected to the map processing method electronics via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the map processing method may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected by a bus or otherwise, in fig. 7 by way of example.
The input device 703 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device of the map processing method, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, etc. The output device 704 may include a display apparatus, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, vector data of a target map layer requested by a map printing request is obtained, wherein the target map layer comprises a base map layer of a map; rendering the vector data of the target map layer; generating a picture to be printed based on the vector data of the rendered target map layer; and outputting the picture to be printed to printing equipment. By adopting the technical means, the resolution of the picture to be printed can be improved, the problem that the display quality of the printed paper map is low due to the limited resolution of the picture to be printed in the existing map printing process is solved, and the technical effect of improving the display quality of the printed paper map is achieved.
In addition, by setting different layer databases corresponding to different map layers, when the processing device of the map determines the target map layer of the paper map to be printed, the data search condition of each map layer (namely the first layer) in the target map layer can be constructed, and vector data is searched in the corresponding layer databases according to the data search condition of each map layer, so that vector data of the corresponding map layer can be searched in the different layer databases at the same time, the data search efficiency is improved, and the printing efficiency of the paper map is further improved.
The rendering configuration parameters corresponding to each map layer in the target map layers are obtained, and the map layers are rendered based on the rendering parameters corresponding to each map layer, so that the rendering configuration parameters used in rendering construction of each map layer are more suitable, the rendering effect of each map layer is improved, and the display quality of the printed paper map is further improved.
By superposing the pictures generated based on the vector data of each rendered map layer to generate the picture to be printed, not only can at least one of the map themes and the map finishings be output, but also the resolution of the picture to be printed can be ensured under the condition of at least one of the map themes and the map finishings to be output, and the display quality of the printed paper map is further improved.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (12)

1. A method for processing a map, comprising:
acquiring vector data of a target map layer requested by a map printing request, wherein the target map layer comprises a base map layer of a map;
rendering the vector data of the target map layer;
generating a picture to be printed based on the vector data of the rendered target map layer;
and outputting the picture to be printed to printing equipment.
2. The method of claim 1, wherein, in the case where the target map layer further includes at least one of a thematic layer and a map finishing layer, the acquiring vector data of the target map layer includes:
determining a target map layer of the map print request;
constructing a data search condition corresponding to a first layer, wherein the first layer is any layer in the target map layers;
and searching vector data of the first layer in a layer database corresponding to the first layer based on the data searching condition.
3. The method of claim 2, wherein the data search conditions include at least one of data filtering rules and data return formats.
4. The method of claim 1, wherein, in the case where the target map layer further includes at least one of a thematic layer and a map finishing layer, the generating a picture to be printed based on the vector data of the rendered target map layer includes:
generating a picture of vector data of each layer in the rendered target map layers;
and superposing the pictures of the vector data of each layer to obtain the picture to be printed.
5. The method of claim 1, wherein, in the case where the target map layer further includes at least one of a thematic layer and a map finishing layer, the rendering vector data of the target map layer comprises:
obtaining rendering configuration parameters corresponding to a second layer, wherein the second layer is any layer in the target map layers;
and rendering the second layer based on the rendering configuration parameters.
6. A map processing apparatus, comprising:
the vector data acquisition module is used for acquiring vector data of a target map layer requested by a map printing request, wherein the target map layer comprises a base map layer of a map;
the rendering module is used for rendering the vector data of the target map layer;
the picture generation module is used for generating a picture to be printed based on the vector data of the rendered target map layer;
and the output module is used for outputting the picture to be printed to the printing equipment.
7. The apparatus of claim 6, wherein, in the case where the target map layer further includes at least one of a thematic layer and a map finishing layer, the vector data acquisition module comprises:
A layer determining unit, configured to determine a target map layer requested by the map print request;
the search condition construction unit is used for constructing a data search condition corresponding to a first layer, wherein the first layer is any layer in the target map layers;
and the vector data searching unit is used for searching the vector data of the first layer in the layer database corresponding to the first layer based on the data searching condition.
8. The apparatus of claim 7, wherein the data search conditions comprise at least one of data filtering rules and data return formats.
9. The apparatus of claim 6, wherein, in the case where the target map layer further includes at least one of a thematic layer and a map finishing layer, the picture generation module comprises:
the image generation unit is used for generating an image of the vector data of each layer in the rendered target map layers;
and the picture superposition unit is used for superposing the pictures of the vector data of each layer to obtain the picture to be printed.
10. The apparatus of claim 6, wherein, in the case where the target map layer further includes at least one of a thematic layer and a map finishing layer, the rendering module comprises:
The parameter acquisition unit is used for acquiring rendering configuration parameters corresponding to a second layer, wherein the second layer is any layer in the target map layers;
and the rendering unit is used for rendering the second layer based on the rendering configuration parameters.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 5.
12. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1 to 5.
CN202010063478.4A 2020-01-20 2020-01-20 Map processing method, device and electronic device Active CN111290718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010063478.4A CN111290718B (en) 2020-01-20 2020-01-20 Map processing method, device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010063478.4A CN111290718B (en) 2020-01-20 2020-01-20 Map processing method, device and electronic device

Publications (2)

Publication Number Publication Date
CN111290718A CN111290718A (en) 2020-06-16
CN111290718B true CN111290718B (en) 2023-06-23

Family

ID=71023209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010063478.4A Active CN111290718B (en) 2020-01-20 2020-01-20 Map processing method, device and electronic device

Country Status (1)

Country Link
CN (1) CN111290718B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112907689B (en) * 2020-11-06 2025-01-10 北京完美知识科技有限公司 Historical map editing method and device, storage medium, and computer equipment
CN113420106B (en) * 2021-07-09 2023-05-16 广东博媒广告传播有限公司 Geographic position information design and generation system and method thereof
CN115547171A (en) * 2022-11-07 2022-12-30 山东省地图院 Online mapping method and device, electronic equipment and storage medium
CN115964004B (en) * 2022-12-19 2023-08-29 北京天域北斗文化科技集团有限公司 Map printing method and device, storage medium and server
CN118279461B (en) * 2024-05-31 2024-08-20 杭州靖安科技有限公司 GIS real-time map generation method, system, device and medium
CN119313550A (en) * 2024-09-12 2025-01-14 武汉科信云图信息技术有限公司 Web-oriented 2D and 3D map export method, device and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5966135A (en) * 1996-10-30 1999-10-12 Autodesk, Inc. Vector-based geographic data

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150170385A1 (en) * 2012-06-22 2015-06-18 Google Inc. Editing a feature within a map
CN108509546A (en) * 2018-03-12 2018-09-07 浙江省地理信息中心 It is a kind of based on shared safe map vector dicing strategy and method
CN110457512B (en) * 2018-05-08 2022-03-25 腾讯科技(深圳)有限公司 Map display method, map display device, server, terminal and storage medium
CN109753546A (en) * 2018-11-13 2019-05-14 北京码牛科技有限公司 Map vector generation method, device, Electronic Design and computer-readable medium
CN110032614B (en) * 2019-04-18 2020-02-07 成都四方伟业软件股份有限公司 Map vector rendering method and device based on wasm
CN110489499B (en) * 2019-05-31 2022-11-18 武汉大学 On-line intelligent thematic map compiling method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5966135A (en) * 1996-10-30 1999-10-12 Autodesk, Inc. Vector-based geographic data

Also Published As

Publication number Publication date
CN111290718A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN111290718B (en) Map processing method, device and electronic device
US11361005B2 (en) Method for processing map data, device, and storage medium
JP7258066B2 (en) POSITIONING METHOD, POSITIONING DEVICE, AND ELECTRONIC DEVICE
KR102721447B1 (en) Road information processing method and apparatus, electronic device, storage medium and computer program
CN111695488A (en) Interest plane identification method, device, equipment and storage medium
US20130097197A1 (en) Method and apparatus for presenting search results in an active user interface element
US11587533B2 (en) Method for displaying point of information of map, device, and readable storage medium
US11727200B2 (en) Annotation tool generation method, annotation method, electronic device and storage medium
US9778889B2 (en) Managing print jobs based on planned routes
CN112507249B (en) Method and device for generating interest points, electronic equipment and storage medium
US11423650B2 (en) Visual positioning method and apparatus, and computer-readable storage medium
CN111666029A (en) Vehicle-mounted machine map operation method, device, equipment and readable storage medium
EP3819789A2 (en) Method, apparatus, device and storage medium for map retrieval test
US11630827B2 (en) Method for recommending chart, electronic device, and storage medium
CA3043210C (en) Position reporting and navigation in an integrated flight application using bullseye
US11838294B2 (en) Method for identifying user, storage medium, and electronic device
WO2023050744A1 (en) Map editing method, system, apparatus, computer device, program product, and storage medium
CN112035751B (en) Information recommendation method, device, equipment and storage medium
WO2016090352A1 (en) Customized synthetic data creation
US20210042966A1 (en) Dynamic generation and delivery of scalable graphic images in web applications
CN113392336B (en) A method, device, electronic device and storage medium for displaying points of interest
CA3053023A1 (en) Method and system for processing military training routes
US12210855B2 (en) Method and apparatus for rendering dynamic user interfaces
CN110719202A (en) Object state display method and device
JP2015031980A (en) Information processing device, information processing method and program

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