CN111290718A - Map processing method and device and electronic equipment - Google Patents

Map processing method and device and electronic equipment Download PDF

Info

Publication number
CN111290718A
CN111290718A CN202010063478.4A CN202010063478A CN111290718A CN 111290718 A CN111290718 A CN 111290718A CN 202010063478 A CN202010063478 A CN 202010063478A CN 111290718 A CN111290718 A CN 111290718A
Authority
CN
China
Prior art keywords
map
layer
vector data
target
picture
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.)
Granted
Application number
CN202010063478.4A
Other languages
Chinese (zh)
Other versions
CN111290718B (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; CALCULATING OR 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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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

Abstract

The application discloses a map processing method and 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 bottom map layer of a map; rendering the vector data of the target map layer; generating a picture to be printed based on the rendered vector data of the target map layer; and outputting the picture to be printed to printing equipment. One embodiment in the present application has the following advantages or benefits: the resolution ratio of waiting to print the picture can be promoted, the problem that the display quality of the printed paper map is low due to the limited resolution ratio of waiting to print the picture in the existing map printing process is solved, and the technical effect of promoting the display quality of the printed paper map is achieved.

Description

Map processing method and device and electronic equipment
Technical Field
The present application relates to computer technologies, and in particular, to the field of geographic information technologies, and in particular, to a map processing method and apparatus, and an electronic device.
Background
With the rapid development of internet technology and geographic information technology, the resolution and the aesthetic property of the electronic map are greatly improved, and the electronic map is also widely applied to the traffic trip and the geographic information construction of departments such as governments, armies, civil defense and the like. In some scenarios, a user may have a need to print an electronic map into a paper map, for example, the user needs to label the paper map during a communication or a brainstorming process.
At present, in a map printing process, a user usually directly prints a picture on a webpage 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 is reduced when the picture is printed in an enlarged manner, which may result in the clarity of the picture in the paper map.
It can be seen that the current map printing has the problem of low display quality of printed paper maps.
Disclosure of Invention
The application provides a map processing method and device and electronic equipment, and aims to solve the problem that the display quality of a printed paper map is low in the existing map printing.
In order to solve the technical problem, the present application is implemented 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 bottom map layer of a map;
rendering the vector data of the target map layer;
generating a picture to be printed based on the rendered vector data of the target map layer;
and outputting the picture to be printed to printing equipment.
Optionally, under the condition that the target map layer further includes at least one of a thematic layer and a map finishing layer, the obtaining of the vector data of the target map layer includes:
determining a target map layer of the map printing request;
constructing a data search condition corresponding to a first map layer, wherein the first map layer is any one of the target map layers;
and searching the vector data of the first layer in a layer database corresponding to the first layer based on the data search condition.
Optionally, the data search condition includes at least one of a data filtering rule and a data return format.
Optionally, in a case that the target map layer further includes at least one of a thematic layer and a map finishing layer, the generating a to-be-printed picture based on vector data of the rendered target map layer includes:
generating a picture of vector data of each rendered target map layer;
and superposing the pictures of the vector data of each layer to obtain the picture to be printed.
Optionally, under the condition that the target map layer further includes at least one of a thematic layer and a map finishing layer, the rendering of the vector data of the target map layer includes:
obtaining rendering configuration parameters corresponding to a second map layer, wherein the second map layer is any one of the target map layers;
and rendering the second image layer based on the rendering configuration parameters.
In a second aspect, the present application further provides a map processing apparatus, including:
the map printing module is used for printing a map on a target map layer according to the map printing request, wherein the target map layer comprises a base map layer of the 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 rendered vector data of the target map layer;
and the output module is used for outputting the picture to be printed to printing equipment.
Optionally, under the condition that the target map layer further includes at least one 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 of the map print request;
the search condition construction unit is used for constructing a data search condition corresponding to a first map layer, wherein the first map layer is any one of 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 a case that the target map layer further includes at least one of a thematic layer and a map finishing layer, the image generating module includes:
the picture generating unit is used for generating a picture of the vector data of each rendered target map layer;
and the picture superposition unit is used for superposing the pictures of the vector data of each layer to obtain the pictures to be printed.
Optionally, in a case that the target map layer further includes at least one of a thematic layer and a map finishing layer, the rendering module includes:
a parameter obtaining unit, configured to obtain a rendering configuration parameter corresponding to a second map layer, where the second map layer is any one of the target map layers;
and the rendering unit is used for rendering the second image layer based on the rendering configuration parameters.
In a third aspect, the present application provides an electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the methods of the first aspect.
In a fourth aspect, the present application provides a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of the first aspects.
One embodiment in 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 bottom map layer of a map; rendering the vector data of the target map layer; generating a picture to be printed based on the rendered vector data of the target map layer; and outputting the picture to be printed to printing equipment. By adopting the technical means, 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 limited resolution ratio 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 a processing device of the map determines a target map layer of a paper map to be printed, a data search condition of each map layer (namely, a first layer) in the target map layer can be constructed, and vector data can be searched in the corresponding layer database according to the data search condition of each map layer, so that the vector data of the corresponding map layer can be searched in different layer databases at the same time, the efficiency of data search is improved, and the printing efficiency of the paper map is improved.
The rendering configuration parameters corresponding to each map layer in the target map layer are obtained, and the map layer is rendered based on the rendering parameters corresponding to each map layer, so that the rendering configuration parameters used in the 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 improved.
The pictures generated based on the vector data of each rendered map layer are overlapped to generate the pictures to be printed, so that at least one of map thematic output and map finishing can be realized, the resolution of the pictures to be printed can be ensured under the condition of outputting at least one of the map thematic output and the map finishing, and the display quality of the printed paper map is improved.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a flowchart of a map processing method according to a first embodiment of the present application;
FIG. 2 is a schematic block diagram of a map processing system according to a first embodiment of the present application;
fig. 3 is a schematic structural diagram of a map processing apparatus according to a second embodiment of the present application;
FIG. 4 is a block diagram of a vector data acquisition module according to a second embodiment of the present application;
FIG. 5 is a schematic diagram of a picture generation module according to a second embodiment of the present application;
FIG. 6 is a block diagram of a rendering module according to a second embodiment of the present application;
fig. 7 is a block diagram of an electronic device for implementing a map processing method according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those 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 map print request may be a request generated by the map processing device according to a received operation input by the user, that is: when a user needs to print a paper map, the user can input configuration parameters of the paper map to be printed in a 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 map processing apparatus is provided with a visualization console, and the visualization console can provide a visualization parameter configuration function for printing a map, and when a user needs to print a paper map, the user can input configuration parameters of the paper map to be printed on the visualization console, and the visualization console generates a map printing request corresponding to the configuration parameters input by the user.
In this application, the obtaining of the vector data of the target map layer requested by the map printing request may be that the processing device of the map analyzes the map printing request and determines the target map layer of the paper map that the user needs to print when generating the map printing request.
For example, as shown in fig. 2, the map processing apparatus is further provided with a map printing service module, after the visualization console generates a map printing request, the visualization console sends the map printing request to the map printing service module, and the print 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 an analysis result.
The target map layer at least comprises a bottom map layer of the map. Therefore, the configuration parameters input by the user at least include parameters associated with the base map layer, for example, the configuration parameters may include longitude and latitude parameters of the base map layer, and the like.
In addition, the target map layer may further include at least one of a theme layer and a map finishing layer, and the theme layer may be a layer including theme identifiers or information of a map, and may include at least one of a traffic route identifier, a forest and lake identifier, a military facility identifier, and the like; the map finishing layer may be a layer including finishing identification or information of the map, and may include at least one of a legend, a compass, and a title, for example.
In addition, when the target map layer further includes at least one of a theme layer and a map finishing layer, the configuration parameter input by the user also includes a parameter related to at least one of the theme layer and the map finishing layer, which is not illustrated here.
It should be noted that, in the process that the processing device of the map determines the target map layer requested by the map print request, the processing device of the map may further check the request parameter of each map layer obtained by analyzing the map print request, that is, determine whether the request parameter of the map layer is correct according to the determination rule of the request parameter of the map layer, and if the request parameter of a certain map layer is correct, determine that the map layer passes the check and use the map layer as the layer in the target map layer; if the request parameter of a certain map layer is incorrect, acquiring corresponding error information and returning the error information to the requesting user, wherein the judgment rule of the request parameter can comprise at least one of whether the format is correct, whether the parameter is supported, whether the map layer exists and the like.
In the present 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 data of the target map layer in the vector database of the map.
Specifically, in a case that the target map layer further includes at least one of a thematic layer and a map finishing layer, the obtaining of the vector data of the target map layer may include:
determining a target map layer of the map printing request;
constructing a data search condition corresponding to a first map layer, wherein the first map layer is any one of the target map layers;
and searching the vector data of the first layer in a layer database corresponding to the first layer based on the data search condition.
Here, the processing device of the map may set different map layer databases corresponding to different map layers, and when the processing device of the map determines a target map layer of a paper map to be printed, a data search condition of each map layer (i.e., a first map layer) in the target map layer may be constructed, and vector data may be searched in the corresponding map layer database according to the data search condition of each map layer, so that vector data of the corresponding map layer may be searched in different map layer databases at the same time, and the efficiency of data search is improved, thereby improving the printing efficiency of the paper map.
For example, as shown in fig. 2, the map processing apparatus is further provided with a layer management service module, a data search engine, an underlying map database, a topic database, and a map finishing database, where in a case that the map printing service module determines a target map layer requested by a map printing request, the layer 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 a data search condition corresponding to each map layer according to the layer information of each map layer, and searches vector data of each map layer in a database corresponding to each map layer according to the data search condition corresponding to each map layer, specifically, assuming that the target underlying map layer includes an underlying map layer, a topic map layer, and a map finishing layer, the data search engine constructs the data search condition of the underlying map layer, searching vector data of the bottom map layer in the bottom map database according to the data searching condition of the bottom map layer; constructing a data search condition of the thematic map layer, and searching vector data of the thematic map layer in a thematic database according to the data search condition of the thematic map layer; and constructing a data search condition of the map finishing layer, searching vector data of the map finishing layer in a map finishing database according to the data search condition of the map finishing layer, and the like.
It should be noted that the layer management service module in fig. 2 may have, in addition to the function of acquiring layer information of each map layer in the target map layer, other functions, for example, at least one of a release layer, an update layer, a delete layer, a management layer pattern, and the like for each map layer in the target map layer; in addition, each of the base database, the topic 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, searching data, deleting data, and the like.
In addition, the data search condition may be any condition for the map processing device to perform data search on the database corresponding to each map layer, specifically, the data search condition includes at least one of a data filtering rule and a data returning format, 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 vector data indicating returned map layers.
And 102, rendering the vector data of the target map layer.
In this step, after the processing device of the map obtains 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 vector data on the target map layer is rendered, and the processing device on the map may render the vector data on each map layer in the target map layer according to the rendering configuration parameters on the target base map layer.
For example, in a case that the target map layer only includes the base map layer, the processing device of the map may render the vector data of the searched base map layer according to a preset rendering configuration parameter.
Here, the above-mentioned 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 surface, a background color of a surface, and the like.
It should be noted that the rendering configuration parameter of the target map layer may be a configuration parameter for rendering of all map layers, and only the rendering of all map layers in the target map layer is implemented based on a certain rendering configuration parameter.
Or, in a case that the target map layer further includes at least one of a thematic layer and a map finishing layer, the rendering of the vector data of the target map layer includes:
obtaining rendering configuration parameters corresponding to a second map layer, wherein the second map layer is any one of the target map layers;
and rendering the second image 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 layer, and render the map layer based on the rendering parameters corresponding to each map layer, so that rendering configuration parameters used in rendering the map layers are more appropriate, rendering effects of the map layers are improved, and display quality of a printed paper map is improved.
For example, as shown in fig. 2, the map processing apparatus is further provided with a base map service module, a topic service module (such as GeoServer), 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 for vector data of a thematic layer, namely, provides rendering configuration parameters corresponding to the thematic layer for a rendering engine; the map finishing management service module can provide rendering configuration parameters corresponding to the map finishing layer for the layer rendering function of the vector data of the map finishing layer, namely, the rendering configuration parameters are provided for a rendering engine; and the rendering engine can respectively render the vector data of the corresponding map layer 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 vector data of each map layer is searched by the data search engine.
And 103, generating a picture to be printed based on the rendered vector data of the 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 rendered target map layer, and generate a map picture (i.e., a picture to be printed) that needs to be printed by the user based on the vector data of the rendered target map layer.
In this application, in a case where the target map layer only includes the map layer, the map processing apparatus may generate a base image picture based on vector data of the rendered base image layer, and use the base image picture as the image with print.
Or, in a case that the target map layer further includes at least one of a thematic layer and a map finishing layer, the step 103 may include:
generating a picture of vector data of each rendered target map layer;
and superposing the pictures of the vector data of each layer to obtain the picture to be printed.
The map processing device generates the to-be-printed picture by superposing the pictures generated based on the vector data of each rendered map layer, so that at least one of map specials and map finishing can be output, the resolution of the to-be-printed picture can be ensured under the condition of outputting at least one of the map specials and the map finishing, and the display quality of the printed paper map is improved.
For example, as shown in fig. 2, the base map service module may further 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 rendered vector data of the 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 accord with a certain standard (such as OGC standard and the like), namely after the vector data of the thematic layer is rendered by the rendering engine, the thematic service module generates a thematic map through the rendered vector data of the 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 layer, the map finishing management service module generates the map finishing map through the rendered vector data of the map finishing layer and transmits the map finishing map to the map printing service module; the map printing service can also superpose the input pictures according to a preset sequence to obtain the pictures to be printed, and if the target map layer comprises a base map layer, a thematic map layer and a map finishing map layer, the map printing service can superpose the input base map, thematic map and map finishing map according to the preset sequence to obtain the pictures to be printed.
The pictures of the map layers generated as described above may be pictures of any format, such as jpg or png, and the like, and are not limited herein.
And 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 device, and the printing device 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 visualization console, and the visualization 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 convenience of understanding, the application also provides an application process of the map processing method in actual engineering, which is specifically as follows:
first, a user configures parameters of a printed map (i.e., the configuration parameters input by the user) at a visualization console as shown in fig. 2, and a task of creating the printed map, such as that a rectangular range of the printed map is [ long 1, late 1, long 2, and late 2], where long 1 and late 1 are respectively the longitude and latitude of the upper left corner of the rectangular range, long 2 and late 2 are respectively the longitude and latitude of the upper right corner of the rectangular range, a zoom level scale of the printed map is 10, and a base map of the printed map is titled "map for testing";
secondly, the back-end service receives a request of the visual control console, and obtains data (namely vector data) of a layer to be printed (a target map layer), for example, the layer to be printed can comprise a base map layer and a map finishing layer; rendering by the rendering engine according to data returned by the data search engine, generating pictures corresponding to all layers of the layers to be printed, then superposing the pictures corresponding to all the layers by the map printing service, and generating a complete map picture if superposing the base map and the map finishing map, and returning the complete map picture to the visual console;
the visual console displays the pictures 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 a printer, and the map (i.e., a paper map) is printed.
It should be noted that, the various alternative embodiments described in this application may be implemented in combination with each other or separately, and the present application is not limited thereto.
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 bottom map layer of a map; rendering the vector data of the target map layer; generating a picture to be printed based on the rendered vector data of the target map layer; and outputting the picture to be printed to printing equipment. Therefore, vector data of the map layer are directly rendered and the picture to be printed is generated, so that the resolution of the picture to be printed can be improved, and the display quality of the printed paper map is improved.
The present application further provides a map processing apparatus, as shown in fig. 3, the map processing apparatus 300 includes:
a vector data obtaining module 301, configured to obtain vector data of a target map layer requested by a map printing request, where the target map layer includes a bottom map layer of a map;
a rendering module 302, configured to render the vector data of the target map layer;
the picture generation module 303 is configured to generate a picture to be printed based on the rendered vector data of the target map layer;
and the output module 304 is configured to output the picture to be printed to a printing device.
Optionally, in a case that the target map layer further includes at least one 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 configured to determine a target map layer of the request for the map print;
a search condition construction unit 3012, configured to construct a data search condition corresponding to a first map layer, where the first map layer is any one of the target map layers;
and a vector data searching unit 3013, configured to search, based on the data search 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 a case that the target map layer further includes at least one of a thematic layer and a map finishing layer, as shown in fig. 5, the picture generating module 303 includes:
a picture generating unit 3031, configured to generate a picture of vector data of each rendered target map layer;
and the picture superposing unit 3032 is configured to superpose pictures of the vector data of each layer to obtain a picture to be printed.
Optionally, in a case that the target map layer further includes at least one 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 one of the target map layers;
a rendering unit 3022, configured to render the second layer based on the rendering configuration parameter.
The map processing device 300 provided by the present application can implement each process implemented by the map processing device in the map processing method embodiments, and can achieve the same beneficial effects, and is not described here again to avoid repetition.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 7, the embodiment of the present application is a block diagram of an electronic device of a map processing method. 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 7, the electronic apparatus includes: one or more processors 701, a memory 702, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. 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 for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 7, one processor 701 is taken as an example.
The memory 702 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the map processing method provided by the application. 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, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the processing method of the map in the embodiment of the present application (for example, the vector data acquisition module 301, the rendering module 302, the picture generation module 303, and the output module 304 shown in fig. 3). The processor 701 executes various functional applications of the server and data processing, i.e., implements the processing method of the map in the above-described method embodiment, by running non-transitory software programs, instructions, and modules stored in the memory 702.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device of the processing method of the map, and the like. Further, 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 located remotely from the processor 701, and these remote memories may be connected to the map processing method electronics over 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 other means, and fig. 7 illustrates an example of a connection by a bus.
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 apparatus of the map processing method, such as an input device of a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 704 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating 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 can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. 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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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 clients and servers. A client and server are generally 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, the vector data of a target map layer requested by a map printing request is obtained, wherein the target map layer comprises a bottom map layer of a map; rendering the vector data of the target map layer; generating a picture to be printed based on the rendered vector data of the target map layer; and outputting the picture to be printed to printing equipment. By adopting the technical means, 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 limited resolution ratio 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 a processing device of the map determines a target map layer of a paper map to be printed, a data search condition of each map layer (namely, a first layer) in the target map layer can be constructed, and vector data can be searched in the corresponding layer database according to the data search condition of each map layer, so that the vector data of the corresponding map layer can be searched in different layer databases at the same time, the efficiency of data search is improved, and the printing efficiency of the paper map is improved.
The rendering configuration parameters corresponding to each map layer in the target map layer are obtained, and the map layer is rendered based on the rendering parameters corresponding to each map layer, so that the rendering configuration parameters used in the 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 improved.
The pictures generated based on the vector data of each rendered map layer are overlapped to generate the pictures to be printed, so that at least one of map thematic output and map finishing can be realized, the resolution of the pictures to be printed can be ensured under the condition of outputting at least one of the map thematic output and the map finishing, and the display quality of the printed paper map is improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

1. A map processing method is characterized by comprising the following steps:
acquiring vector data of a target map layer requested by a map printing request, wherein the target map layer comprises a bottom map layer of a map;
rendering the vector data of the target map layer;
generating a picture to be printed based on the rendered vector data of the target map layer;
and outputting the picture to be printed to printing equipment.
2. The method according to claim 1, wherein in a case that the target map layer further includes at least one 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 printing request;
constructing a data search condition corresponding to a first map layer, wherein the first map layer is any one of the target map layers;
and searching the vector data of the first layer in a layer database corresponding to the first layer based on the data search condition.
3. The method of claim 2, wherein the data search criteria comprises at least one of data filtering rules and data return formats.
4. The method according to claim 1, wherein in a 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 rendered target map layer;
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 that the target map layer further includes at least one of a thematic layer and a map finishing layer, the rendering the vector data of the target map layer comprises:
obtaining rendering configuration parameters corresponding to a second map layer, wherein the second map layer is any one of the target map layers;
and rendering the second image layer based on the rendering configuration parameters.
6. A map processing apparatus, comprising:
the map printing module is used for printing a map on a target map layer according to the map printing request, wherein the target map layer comprises a base map layer of the 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 rendered vector data of the target map layer;
and the output module is used for outputting the picture to be printed to printing equipment.
7. The apparatus according to claim 6, wherein in a case where the target map layer further includes at least one 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 of the map print request;
the search condition construction unit is used for constructing a data search condition corresponding to a first map layer, wherein the first map layer is any one of 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 criteria comprises at least one of data filtering rules and data return formats.
9. The apparatus according to claim 6, wherein in a case that the target map layer further includes at least one of a thematic layer and a map finishing layer, the image generation module includes:
the picture generating unit is used for generating a picture of the vector data of each rendered target map layer;
and the picture superposition unit is used for superposing the pictures of the vector data of each layer to obtain the pictures to be printed.
10. The apparatus of claim 6, wherein in the case that the target map layer further includes at least one of a thematic layer and a map finishing layer, the rendering module comprises:
a parameter obtaining unit, configured to obtain a rendering configuration parameter corresponding to a second map layer, where the second map layer is any one of the target map layers;
and the rendering unit is used for rendering the second image 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 content of the first and second substances,
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 a computer to perform the method of any one of claims 1 to 5.
CN202010063478.4A 2020-01-20 2020-01-20 Map processing method and device and electronic equipment 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 and device and electronic equipment

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN111290718A true CN111290718A (en) 2020-06-16
CN111290718B 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 and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111290718B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112907689A (en) * 2020-11-06 2021-06-04 北京完美知识科技有限公司 Editing method and device of history map, storage medium and computer equipment
CN113420106A (en) * 2021-07-09 2021-09-21 广东博媒广告传播有限公司 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
CN115964004A (en) * 2022-12-19 2023-04-14 北京天域北斗文化科技集团有限公司 Map printing method and device, storage medium and server

Citations (7)

* 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
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
CN109753546A (en) * 2018-11-13 2019-05-14 北京码牛科技有限公司 Map vector generation method, device, Electronic Design and computer-readable medium
CN110032614A (en) * 2019-04-18 2019-07-19 成都四方伟业软件股份有限公司 Map vector rendering method and device based on wasm
CN110457512A (en) * 2018-05-08 2019-11-15 腾讯科技(深圳)有限公司 A kind of map-indication method, device, server, terminal and storage medium
CN110489499A (en) * 2019-05-31 2019-11-22 武汉大学 A kind of on-line intelligence special map plotting method

Patent Citations (7)

* 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
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
CN110457512A (en) * 2018-05-08 2019-11-15 腾讯科技(深圳)有限公司 A kind of map-indication method, 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
CN110032614A (en) * 2019-04-18 2019-07-19 成都四方伟业软件股份有限公司 Map vector rendering method and device based on wasm
CN110489499A (en) * 2019-05-31 2019-11-22 武汉大学 A kind of on-line intelligence special map plotting method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
国家测绘地理信息局职业技能鉴定指导中心: "《测绘案例分析》", 31 May 2016, 测绘出版社, pages: 193 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112907689A (en) * 2020-11-06 2021-06-04 北京完美知识科技有限公司 Editing method and device of history map, storage medium and computer equipment
CN113420106A (en) * 2021-07-09 2021-09-21 广东博媒广告传播有限公司 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
CN115964004A (en) * 2022-12-19 2023-04-14 北京天域北斗文化科技集团有限公司 Map printing method and device, storage medium and server
CN115964004B (en) * 2022-12-19 2023-08-29 北京天域北斗文化科技集团有限公司 Map printing method and device, storage medium and server

Also Published As

Publication number Publication date
CN111290718B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN111290718B (en) Map processing method and device and electronic equipment
US11361005B2 (en) Method for processing map data, device, and storage medium
CN110595494B (en) Map error determination method and device
US20130097197A1 (en) Method and apparatus for presenting search results in an active user interface element
CN110705800B (en) Mixed travel route determination method, device, equipment and storage medium
US20200193679A1 (en) Two-part context based rendering solution for high fidelity augmented reality in virtualized environment
US20170123737A1 (en) Managing print jobs based on planned routes
JP7228627B2 (en) ROAD INFORMATION PROCESSING METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND PROGRAM
US11630827B2 (en) Method for recommending chart, electronic device, and storage medium
EP3916575A2 (en) Method and apparatus for assisting quality inspection of map data, electronic device, and storage medium
US20210225332A1 (en) Method for displaying point of information of map, device, and readable storage medium
US20210209160A1 (en) Method and apparatus for identifying map region words
CN111311743B (en) Three-dimensional reconstruction precision testing method and device and electronic equipment
CN112035209A (en) Map data processing method, map data processing device, map data processing equipment and computer storage medium
CN111858793A (en) Map road marking processing method and device, electronic equipment and storage medium
US11693764B2 (en) Method, apparatus, device and storage medium for map retrieval test
CN111597287A (en) Map generation method, device and equipment
CN111694914B (en) Method and device for determining resident area of user
CA3043210C (en) Position reporting and navigation in an integrated flight application using bullseye
US20210042966A1 (en) Dynamic generation and delivery of scalable graphic images in web applications
CN112507249A (en) Method and device for generating interest points, electronic equipment and storage medium
CN114428917A (en) Map-based information sharing method, map-based information sharing device, electronic equipment and medium
CN113701763A (en) Method and apparatus for generating information
CA3053023A1 (en) Method and system for processing military training routes
CN106569785B (en) Method and device for generating job form

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