CN113076440A - Map tile image processing method, device, equipment and storage medium - Google Patents

Map tile image processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113076440A
CN113076440A CN202110360111.3A CN202110360111A CN113076440A CN 113076440 A CN113076440 A CN 113076440A CN 202110360111 A CN202110360111 A CN 202110360111A CN 113076440 A CN113076440 A CN 113076440A
Authority
CN
China
Prior art keywords
tile
information
map
description information
determining
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
CN202110360111.3A
Other languages
Chinese (zh)
Other versions
CN113076440B (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.)
South Digital Technology Co ltd
Original Assignee
South Digital 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 South Digital Technology Co ltd filed Critical South Digital Technology Co ltd
Priority to CN202110360111.3A priority Critical patent/CN113076440B/en
Publication of CN113076440A publication Critical patent/CN113076440A/en
Application granted granted Critical
Publication of CN113076440B publication Critical patent/CN113076440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information

Landscapes

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

Abstract

The application provides a map tile image processing method, device, equipment and storage medium, and belongs to the technical field of computer geographic mapping. The method comprises the following steps: receiving a map tile obtaining request sent by a calling party, wherein the map tile obtaining request comprises tile description information which is contained in the map obtaining request in a wildcard form; according to the tile description information, determining the tile service description information corresponding to the tile description information, wherein the tile service description information comprises: the method comprises the following steps of (1) layer information, coordinate system information, tile level information, tile column number information and tile row number information; determining the actual coordinate range of the tile according to the tile service description information; generating a corresponding map tile image according to the actual coordinate range and a preset template library; the map tile image is returned to the calling party. The method and the device can improve the efficiency of data transmission and meet the application scene with higher timeliness.

Description

Map tile image processing method, device, equipment and storage medium
Technical Field
The application relates to the technical field of computer geographic mapping, in particular to a map tile image processing method, device, equipment and storage medium.
Background
A GIS (Geographic Information System) platform generally needs to symbolize and display the feature elements. Specifically, the GIS platform publishes the map service based on the symbolic definition file or the workspace file, and publishes the map service in a tile form. The tiles are square slices in the three-dimensional map, each tile corresponds to multiple elements, when the map information needs to be displayed by the front-end application, the GIS platform performs rendering and other processing according to the elements corresponding to the tiles to obtain displayable images and provides the displayable images for the front-end application to display.
The current symbolized display mode is to render the same type of elements through a determined symbol library, or to achieve different types of rendering of the same type of elements through simple screening of attribute fields.
The tile image generated by the method adopted at present cannot meet the application scene with high timeliness, and excessive release service can bring performance pressure to the GIS platform and even cause the server to be down.
Disclosure of Invention
The application aims to provide a map tile image processing method, device, equipment and storage medium, which can improve the efficiency of data transmission and meet the requirement of application scenes with high timeliness.
The embodiment of the application is realized as follows:
in one aspect of the embodiments of the present application, a method for processing a map tile image is provided, including:
receiving a map tile obtaining request sent by a calling party, wherein the map tile obtaining request comprises tile description information which is contained in the map obtaining request in a wildcard form;
according to the tile description information, determining the tile service description information corresponding to the tile description information, wherein the tile service description information comprises: the method comprises the following steps of (1) layer information, coordinate system information, tile level information, tile column number information and tile row number information;
determining the actual coordinate range of the tile according to the tile service description information;
generating a corresponding map tile image according to the actual coordinate range and a preset template library;
the map tile image is returned to the calling party.
Optionally, the tile description information includes wildcard parameters, and the wildcard parameters include: the identification code and the layer identification;
determining the tile service description information corresponding to the tile description information according to the tile description information, wherein the tile service description information comprises:
determining an object represented by the layer identifier according to the identification code;
and reading the tile service description information from the object according to the object characterized by the layer identifier.
Optionally, receiving a map tile obtaining request sent by a caller includes:
receiving a map tile obtaining request sent by a calling party by using a first calling interface;
returning the map tile image to the calling party, comprising:
the map tile image is returned to the calling party using the first calling interface.
Optionally, after determining the tile service description information corresponding to the tile description information according to the tile description information, the method further includes:
generating a tile service description according to the type of the object and the storage address of the object;
the tile service description is returned to the caller using the second call interface.
Optionally, generating a corresponding map tile image according to the actual coordinate range and a preset template library, including:
acquiring element information in an actual coordinate range, wherein the element information comprises at least one of the following: point-like elements, linear elements, planar elements;
determining a symbol definition corresponding to the element information from a preset template library;
and drawing the map tile image according to the element information and the symbol definition.
Optionally, drawing the map tile image according to the element information and the symbol definition includes:
determining symbolic graphic information of the tile according to the element information and the symbol definition;
and drawing the map tile image according to the symbolic graphic information of the tile.
Optionally, determining the actual coordinate range of the tile according to the tile service description information includes:
determining an initial coordinate range of the tile according to tile level information, tile row number information and tile column number information in the tile service description information;
and carrying out range expansion processing on the initial coordinate range of the tile to obtain an actual coordinate range corresponding to the initial coordinate range.
In another aspect of the embodiments of the present application, there is provided a map tile image processing apparatus, including: the device comprises a receiving module, a layer determining module, a range determining module, an image determining module and a returning module;
the receiving module is used for receiving a map tile obtaining request sent by a calling party, wherein the map tile obtaining request comprises tile description information, and the tile description information is contained in the map obtaining request in a wildcard form;
the layer determining module is configured to determine, according to the tile description information, tile service description information corresponding to the tile description information, where the tile service description information includes: the method comprises the following steps of (1) layer information, coordinate system information, tile level information, tile column number information and tile row number information;
the range determining module is used for determining the actual coordinate range of the tile according to the tile service description information;
the image determining module is used for generating a corresponding map tile image according to the actual coordinate range and a preset template library;
and the return module is used for returning the map tile image to the calling party.
Optionally, the tile description information includes wildcard parameters, and the wildcard parameters include: the identification code and the layer identification; the layer determining module is specifically used for determining an object represented by the layer identifier according to the identification code; and reading the tile service description information from the object according to the object characterized by the layer identifier.
Optionally, the receiving module is specifically configured to receive, by using the first invoking interface, a map obtaining request sent by the invoking party; and the return module is specifically used for returning the map tile image to the calling party by using the first calling interface.
Optionally, the returning module is further configured to generate a tile service description according to the type of the object and the storage address of the object; the tile service description is returned to the caller using the second call interface.
Optionally, the image determining module is specifically configured to acquire element information in an actual coordinate range, where the element information includes at least one of: point-like elements, linear elements, planar elements; determining a symbol definition corresponding to the element information from a preset template library; and drawing the map tile image according to the element information and the symbol definition.
Optionally, the image determining module is specifically configured to determine symbolic graphic information of the tile according to the element information and the symbol definition; and drawing the map tile image according to the symbolic graphic information of the tile.
Optionally, the range determining module is specifically configured to determine an initial coordinate range of a tile according to tile level information, tile row number information, and tile column number information in the tile service description information; and carrying out range expansion processing on the initial coordinate range of the tile to obtain an actual coordinate range corresponding to the initial coordinate range.
In another aspect of the embodiments of the present application, there is provided a computer device, including: the map tile image processing method comprises the following steps of a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and the steps of the map tile image processing method are realized when the processor executes the computer program.
In another aspect of the embodiments of the present application, there is provided a storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the map tile image processing method described above.
The beneficial effects of the embodiment of the application include:
in the map tile image processing method, apparatus, device, and storage medium provided in the embodiments of the present application, a map tile acquisition request sent by a caller may be received, where the map tile acquisition request includes tile description information, and the tile description information is included in the map acquisition request in a wildcard form; according to the tile description information, determining the tile service description information corresponding to the tile description information, wherein the tile service description information comprises: the method comprises the following steps of (1) layer information, coordinate system information, tile level information, tile column number information and tile row number information; determining the actual coordinate range of the tile according to the tile service description information; generating a corresponding map tile image according to the actual coordinate range and a preset template library; the map tile image is returned to the calling party. The map acquisition request comprises tile description information, the tile description information is contained in the map acquisition request in a wildcard form, and the tile description information is transmitted in the wildcard form, so that a tile image can be dynamically generated in real time without issuing service and returned to a caller, the data transmission efficiency can be improved, and the tile image can be displayed in an application scene with high timeliness.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view of an application scenario of a map tile image processing method according to an embodiment of the present application;
FIG. 2 is a first flowchart illustrating a map tile image processing method according to an embodiment of the present disclosure;
FIG. 3 is a second flowchart illustrating a map tile image processing method according to an embodiment of the present disclosure;
FIG. 4 is a third schematic flowchart of a map tile image processing method according to an embodiment of the present disclosure;
FIG. 5 is a fourth flowchart illustrating a map tile image processing method according to an embodiment of the present disclosure;
FIG. 6 is a fifth flowchart illustrating a map tile image processing method according to an embodiment of the present disclosure;
FIG. 7 is a sixth schematic flowchart of a map tile image processing method according to an embodiment of the present application;
FIG. 8 is a schematic diagram of actual coordinate ranges provided by embodiments of the present application;
FIG. 9 is a schematic diagram of a map tile image processing device provided by an embodiment of the present application;
fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is noted that the terms "first", "second", "third", and the like are used merely for distinguishing between descriptions and are not intended to indicate or imply relative importance.
An application scenario of the map tile image processing method provided in the embodiment of the present application is specifically explained below.
Fig. 1 is a schematic view of an application scenario of the map tile image processing method provided in the embodiment of the present application, please refer to fig. 1, where the map tile image processing method provided in the embodiment of the present application is applied to a back end 120 of a GIS (Geographic Information System) platform System, and the GIS platform System may include a front end 110 and the back end 120.
The application program in the front end 110 may be a calling party, the back end 120 is a receiving party, and the front end 110 and the back end 120 may be connected through a plurality of interfaces to implement operations such as information transmission.
In the actual working process, a user may perform various operation processes on some application programs in the front end 110 to enable the front end to generate corresponding requests, the application programs of the front end 110 may send the requests to the back end 120, and the back end 120 may return the processing results to the front end 110 to display the processing results to the user after performing corresponding processing according to the requests.
For example: the front end can send a map acquisition request to the back end, the back end returns the tile image obtained by processing to the front end after a series of processing is carried out according to the map acquisition request, and the front end can display the obtained tile image for a user.
A specific implementation procedure of the map tile image processing method provided in the embodiment of the present application is specifically explained below.
Fig. 2 is a first flowchart illustrating a map tile image processing method according to an embodiment of the present application, and referring to fig. 2, the map tile image processing method includes:
s210: and receiving a map tile acquisition request sent by a calling party.
The map tile obtaining request comprises tile description information, and the tile description information is contained in the map tile obtaining request in a wildcard form.
Optionally, the caller is an application in the front end, for example: the internet geographic information system program (WebGIS), map tile acquisition request may be used to request the back end to return a corresponding tile image to the front end.
Alternatively, the tile description information may be source information of data, that is, information such as addresses where the data are stored at the back end, and the information may be included in the map tile obtaining request in a wildcard form.
Optionally, the wildcard is a special statement used to obscure the search file. When looking up a folder, it can be used instead of one or more real characters; when the true character is not known, wildcards are often used in place of one or more of the true characters.
S220: and determining the tile description service information corresponding to the tile description information according to the tile description information.
Wherein the tile service description information comprises at least one of: the information comprises layer information, coordinate system information, tile level information, tile column number information and tile row number information.
Optionally, after receiving the tile description information, the tile description information may be analyzed and processed, and further, the tile service description information corresponding to the tile description information in the data stored at the back end may be determined. Wherein, in each tile service description, the hierarchy of the layer corresponding to the tile service description information is included, for example: a layer includes multiple levels, each level may have a corresponding level index, and the level index is information of the layer level. Correspondingly, each layer also includes a corresponding line number and a corresponding column number, and the line numbers and the column numbers are the information of the line number and the column number of the layer.
S230: and determining the actual coordinate range of the tile according to the tile service description information.
Optionally, after determining tile level information, tile row number information, and tile column number information in the tile service description information, a preset coordinate calculation mode may be adopted to calculate an actual coordinate range of the tile, so as to obtain the actual coordinate range.
Alternatively, since a tile is square, the coordinates of two vertices on any pair of diagonals of the tile can be calculated to represent the actual coordinate range.
S240: and generating a corresponding map tile image according to the actual coordinate range and a preset template library.
Optionally, after the actual coordinate range is determined, the map tile image in the actual coordinate range may be determined according to the corresponding relationship in the preset template library. The preset template library may be a template library pre-stored in the back end.
S250: the map tile image is returned to the calling party.
Optionally, after obtaining the map tile image within the actual coordinate range, the back end may return the map tile image to the caller through a specific interface.
Upon receiving the map tile images, the caller may display the images via a display device at the front end.
In the map tile image processing method provided by the embodiment of the application, a map tile obtaining request sent by a calling party can be received, wherein the map tile obtaining request comprises tile description information, and the tile description information is contained in the map obtaining request in a wildcard form; according to the tile description information, determining the tile service description information corresponding to the tile description information, wherein the tile service description information comprises: the method comprises the following steps of (1) layer information, coordinate system information, tile level information, tile column number information and tile row number information; determining the actual coordinate range of the tile according to the tile service description information; generating a corresponding map tile image according to the actual coordinate range and a preset template library; the map tile image is returned to the calling party. The map acquisition request comprises tile description information, the tile description information is contained in the map acquisition request in a wildcard form, and the tile description information is transmitted in the wildcard form, so that a tile image can be dynamically generated in real time without issuing service and returned to a caller, the data transmission efficiency can be improved, and the tile image can be displayed in an application scene with high timeliness.
Another specific implementation of the map tile image processing method provided in the embodiment of the present application is explained below.
Fig. 3 is a second flowchart illustrating a map tile image processing method according to an embodiment of the present application, please refer to fig. 3, where tile description information includes wildcard parameters, and the wildcard parameters include: the identification code and the layer identification; determining the tile service description information corresponding to the tile description information according to the tile description information, wherein the tile service description information comprises:
s310: and determining the object represented by the layer identifier according to the identification code.
Alternatively, the identification code may be a parameter for identifying each layer identifier, and an object represented by the layer identifier may be determined by the identification code, where the layer identifier may be a specific certain file name.
In the actual process, the identification code may be any file format code, such as: the layer identifier represented by the identification code in the shp format is a root directory file name corresponding to the layer in the shp format, and if the file is named as: shp, wherein shp is an identification code, and abc is an image layer identification; similar identification codes are also: dwg format, dxf format, gdb format, mdb format, etc.
In addition, the identification code may also be in a macro format, and the layer identifier corresponding to the identification code is a character string encoded by base64 (binary data is represented based on 64 printable characters) based on the macro path of the service system file download service.
The identification code may also be in a bjson format, where the layer identifier corresponding to the identification code is a relatively complex data source connection json (JavaScript Object notification, lightweight data exchange format) character string and a character string encoded by base64, and for the identification code, a data source parameter definition based on the json character string may be set, for example: the map-layer File in the shp format stored in the server, the geographical database gdb format stored in the server, the geographical database using a File Transfer Protocol (FTP) server, the spatial database stored in an Oracle database, and the like.
Optionally, the identifier code may also be a parameter in another format, and the layer identifier may be a file name of a root directory of a connection file in a format corresponding to sde, and a connection file in a format sde connected to a spatial geographic database in a corresponding sde format needs to be generated by connecting the root directory of the connection file in a format sde of the server in advance, and the purpose of using the connection file in a format sde is to avoid transferring complex connection parameters in a format sde, so that the information security can be improved.
S320: and reading the layer information from the object according to the object represented by the layer identifier.
Optionally, according to the correspondence between the identification code and the layer identifier, an object represented by the layer identifier may be determined, for example: the layer information in the layer file can be determined according to the file name under the layer root directory in a certain format.
Specifically, after an object (e.g., a file) represented by an image layer identifier is determined, reading processing may be performed on an image layer included in the file, so as to obtain image layer information of the image layer.
Optionally, during the interaction between the front end and the back end, a plurality of call interfaces may be provided, for example: a first calling interface and a second calling interface, wherein the first calling interface can be a get tile interface, the second calling interface can be a get tile service description interface, and the roles of the two interfaces are explained below respectively:
optionally, receiving a map tile obtaining request sent by a caller includes:
and receiving a map tile obtaining request sent by a calling party by using a first calling interface.
Returning the map tile image to the calling party, comprising:
the map tile image is returned to the calling party using the first calling interface.
Optionally, the first call receiving interface may send a map obtaining request by the caller, or may return a map tile image to the caller, specifically, the map tile image may be returned in an image or png format.
Optionally, in addition to the two calling interfaces, two auxiliary interfaces may be provided, and the two auxiliary interfaces may be respectively used for performing base64 encryption on the character string and decrypting the encrypted base64 character string.
Another specific implementation procedure of the map tile image processing method provided in the embodiment of the present application and a specific role of the second invocation interface are specifically explained below.
Fig. 4 is a third flowchart illustrating a map tile image processing method according to an embodiment of the present application, please refer to fig. 4, and after determining tile service description information corresponding to the tile description information according to the tile description information, the method further includes:
s410: and generating the tile service description according to the type of the object and the storage address of the object.
Optionally, the tile service description information further includes a type and a storage address of the layer, and after the tile service description information is determined, a corresponding tile service description may be generated according to the type and the storage address of the layer in the tile service description information, where the tile service description specifically may be: and information such as an image layer, a tile size, a picture DPI (Dots Per Inch), a tile grading scale and resolution definition.
S420: the tile service description is returned to the caller using the second call interface.
Optionally, after determining the tile service description, the tile service description may be returned to the caller through a second call interface, and the second call interface may specifically return the relevant information of the tile service description in a string in json format.
Next, a still further specific implementation of the map tile image processing method provided in the embodiment of the present application will be explained.
Fig. 5 is a fourth schematic flowchart of a map tile image processing method according to an embodiment of the present application, please refer to fig. 5, in which a corresponding map tile image is generated according to an actual coordinate range and a preset template library, including:
s510: and acquiring element information in the actual coordinate range.
The element information includes at least one of: dot elements, linear elements, planar elements.
Alternatively, after determining the actual coordinate range, the element information in the layer may be obtained from the actual coordinate range, and the element information may be a point element, a linear element, a planar element, where the point element includes a color of a point, and the like; linear elements including line width, line color, and the like; the surface elements include a filling effect of the surface, a filling color of the surface, a border width of the surface, a border color of the surface, and the like.
S520: and determining the symbol definition corresponding to the element information from a preset template library.
Optionally, a preset template library may store symbolic expressions corresponding to each type of element information, for example, for a dot-shaped element, the template library may include information such as color and symbolic expressions; for the linear elements, the template library can comprise information such as line width, color, symbolic expression and the like; for the planar elements, the template library may include information such as filling effect, filling color, edge width, edge color, symbol expression, etc., and the form of the symbol expression of each element may be determined by the preset template library, so that the symbol definition may be determined. Wherein a symbol definition is an element that each symbol represents.
S530: and drawing the map tile image according to the element information and the symbol definition.
Alternatively, after the symbol definition is determined, the map tile image may be drawn based on the element information and the symbol definition.
The specific implementation process for drawing map tile images provided in the present application is explained below by specific embodiments.
Fig. 6 is a fifth flowchart illustrating a map tile image processing method according to an embodiment of the present application, please refer to fig. 6, in which drawing a map tile image according to element information and symbol definitions includes:
s610: and determining symbolic graphic information of the tile according to the element information and the symbol definition.
Optionally, symbolic graphic information in the tile may be determined according to the element information and the symbol definition, where the symbolic graphic information is information obtained by performing symbolic processing on an element in an actual coordinate range, and the information may be displayed in a tile form.
S620: and drawing the map tile image according to the symbolic graphic information of the tile.
Optionally, after the symbolic graphic information of the tile is determined, the symbolic component may be called to return the symbolic graphic coordinates, and the symbolic component may return the symbolic graphic coordinates and the style in a callback form according to the element information and the symbol definition corresponding to the symbolic graphic information of the tile, and then draw the map tile image according to the symbolic graphic coordinates and the style. The element information may be stored in a form of a code, that is, the symbolization component may determine the graphic coordinate and the style after symbolization through the element code and the symbol definition corresponding to the element information.
According to the map tile image processing method provided by the embodiment of the application, symbolic graphic information of a tile can be determined according to element information and symbol definition, and then the map tile image can be drawn according to the symbolic graphic information of the tile.
The specific implementation process for determining the actual coordinate range of a tile provided in the embodiments of the present application is specifically explained below.
Fig. 7 is a sixth schematic flowchart of a map tile image processing method according to an embodiment of the present application, please refer to fig. 7, where determining an actual coordinate range of a tile according to layer information includes:
s710: and determining the initial coordinate range of the tile according to the tile level information, the tile row number information and the tile column number information in the tile service description information.
Optionally, after obtaining the tile service description information, an initial coordinate range of a tile may be calculated according to tile level information, tile row number information, and tile column number information in the tile service description, where the specific calculation method is as follows:
the coordinates of the two vertices on the diagonal in the tile initial coordinate range are (x1, y1) and (x2, y2), respectively, where:
x1=originx+256×col×resolution0/2i
x2=x1+256×resolution0/2i
y1=originy-256×(row+1)×resolution0/2i
y2=y1+256×resolution0/2i
the above originx-20037508.34, originy-20037508.34, tile size 256 × 256 pixels, level range from 0 to 20 to 21 levels, and resolution (resolution) of 0 level is: 156543.033928, scale bar (scale) is: 591657527.592, the higher the level is, the lower the resolution is, the larger the scale is, the ith resolution calculation formula is: resolutioni=resolution0/2iThe calculation formula of the ith scale is as follows: scalei=Sacle0/2iRow is the row number (i.e., tile row number information), col is the column number (i.e., tile column number information), and i is the level index (i.e., tile level information).
S720: and carrying out range expansion processing on the initial coordinate range of the tile to obtain an actual coordinate range corresponding to the initial coordinate range.
Optionally, since text labeling is usually performed on tiles, in order to ensure that the text labeling on the edges is not lost, the initial coordinate range may be appropriately expanded to obtain the actual coordinate range, specifically, the width of each of the expanded tiles above and below the tile in the initial coordinate range may be half of the length of each of the expanded tiles above and below the tile in the initial coordinate range, and the length of each of the expanded tiles above and below the tile in the initial coordinate range may be half of the length of each of the:
x3=originx+256×col×resolution0/2i–0.5×256×resolution0/2i
x4=x3+256×resolution0/2i×1.5;
y3=originy-256×(row+1)×resolution0/2i–0.5×256×resolution0/2i
y4=y3+256×resolution0/2i*1.5;
the two obtained points (x3, y3) and (x4, y4) are coordinates of two points on a diagonal line in the actual coordinate range of the tile, that is, the actual coordinate range of the tile can be represented by (x3, y3) and (x4, y 4).
The following is a concrete explanation of the schematic representation of the actual coordinate ranges as well as the initial coordinate ranges provided in the embodiments of the present application.
Fig. 8 is a schematic diagram of an actual coordinate range provided by an embodiment of the present application, please refer to fig. 8, in which a square marked by a middle solid line is an initial coordinate range 810 of a tile, and a square marked by a peripheral dashed line is an actual coordinate range 820 of the tile.
Wherein, the two vertexes of the diagonal line of the initial coordinate range 810 are (x1, y1) and (x2, y2), respectively; the two vertices of the diagonal of the actual coordinate range 820 are (x3, y3) and (x4, y4), respectively.
The following describes a device, an apparatus, a storage medium, and the like corresponding to the map tile image processing method provided by the present application for execution, and specific implementation processes and technical effects thereof are referred to above and will not be described again below.
Fig. 9 is a schematic structural diagram of a map tile image processing apparatus according to an embodiment of the present application, please refer to fig. 9, which includes: a receiving module 910, a layer determining module 920, a range determining module 930, an image determining module 940, and a returning module 950;
a receiving module 910, configured to receive a map tile obtaining request sent by a caller, where the map tile obtaining request includes tile description information, and the tile description information is included in the map obtaining request in a wildcard form;
the layer determining module 920 is configured to determine, according to the tile description information, tile service description information corresponding to the tile description information, where the tile service description information includes: the method comprises the following steps of (1) layer information, coordinate system information, tile level information, tile column number information and tile row number information;
a range determining module 930, configured to determine an actual coordinate range of the tile according to the tile service description information;
an image determining module 940, configured to generate a corresponding map tile image according to the actual coordinate range and a preset template library;
a return module 950 for returning the map tile image to the calling party.
Optionally, the tile description information includes wildcard parameters, and the wildcard parameters include: the identification code and the layer identification; the layer determining module 920 is specifically configured to determine, according to the identification code, an object represented by the layer identifier; and reading the tile service description information from the object according to the object characterized by the layer identifier.
Optionally, the receiving module 910 is specifically configured to receive, by using a first invoking interface, a map obtaining request sent by an invoking party; a returning module 950, specifically for returning the map tile image to the caller using the first call interface.
Optionally, the returning module 950 is further configured to generate a tile service description according to the type of the object and the storage address of the object; the tile service description is returned to the caller using the second call interface.
Optionally, the image determining module 940 is specifically configured to obtain element information in the actual coordinate range, where the element information includes at least one of the following: point-like elements, linear elements, planar elements; determining a symbol definition corresponding to the element information from a preset template library; and drawing the map tile image according to the element information and the symbol definition.
Optionally, the image determining module 940 is specifically configured to determine symbolic graphic information of the tile according to the element information and the symbol definition; and drawing the map tile image according to the symbolic graphic information of the tile.
Optionally, the range determining module 930 is specifically configured to determine an initial coordinate range of a tile according to tile level information, tile row number information, and tile column number information in the tile service description information; and carrying out range expansion processing on the initial coordinate range of the tile to obtain an actual coordinate range corresponding to the initial coordinate range.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present application, and referring to fig. 10, the computer device includes: a memory 210 and a processor 220, wherein the memory 210 stores a computer program operable on the processor 220, and the processor 220 implements the steps of the map tile image processing method when executing the computer program.
In another aspect of the embodiments of the present application, there is also provided a storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the map tile image processing method described above.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A map tile image processing method, comprising:
receiving a map tile obtaining request sent by a caller, wherein the map tile obtaining request comprises tile description information, and the tile description information is contained in the map obtaining request in a wildcard form;
according to the tile description information, determining tile service description information corresponding to the tile description information, wherein the tile service description information comprises: the method comprises the following steps of (1) layer information, coordinate system information, tile level information, tile column number information and tile row number information;
determining the actual coordinate range of the tile according to the tile service description information;
generating a corresponding map tile image according to the actual coordinate range and a preset template library;
returning the map tile image to the caller.
2. The method of claim 1, wherein the tile description information comprises wildcard parameters, the wildcard parameters comprising: the identification code and the layer identification;
the determining the tile service description information corresponding to the tile description information according to the tile description information includes:
determining an object represented by the layer identifier according to the identification code;
and reading the tile service description information from the object according to the object represented by the layer identifier.
3. The method of claim 1, wherein receiving a map tile acquisition request sent by a caller comprises:
receiving a map tile obtaining request sent by a calling party by using a first calling interface;
the returning the map tile image to the caller comprises:
returning the map tile image to the caller using a first call interface.
4. The method of claim 2, wherein after determining the tile service description information corresponding to the tile description information according to the tile description information, the method further comprises:
generating a tile service description according to the type of the object and the storage address of the object;
returning the tile service description to the caller using a second call interface.
5. The method of any one of claims 1-4, wherein generating a corresponding map tile image from the actual coordinate range and a preset template library comprises:
acquiring element information in the actual coordinate range, wherein the element information comprises at least one of the following: point-like elements, linear elements, planar elements;
determining the symbol definition corresponding to the element information from the preset template library;
and drawing the map tile image according to the element information and the symbol definition.
6. The method of claim 5, wherein said rendering the map tile image according to the element information and the symbol definition comprises:
determining symbolic graphic information of the tile according to the element information and the symbol definition;
and drawing the map tile image according to the symbolic graphic information of the tile.
7. The method of any of claims 1-4, wherein said determining an actual coordinate range of a tile from said tile service description information comprises:
determining an initial coordinate range of the tile according to tile level information, tile row number information and tile column number information in the tile service description information;
and carrying out range expansion processing on the initial coordinate range of the tile to obtain an actual coordinate range corresponding to the initial coordinate range.
8. A map tile image processing apparatus, comprising: the device comprises a receiving module, a layer determining module, a range determining module, an image determining module and a returning module;
the receiving module is used for receiving a map tile obtaining request sent by a calling party, wherein the map tile obtaining request comprises tile description information, and the tile description information is contained in the map obtaining request in a wildcard form;
the layer determining module is configured to determine, according to the tile description information, tile service description information corresponding to the tile description information, where the tile service description information includes: the method comprises the following steps of (1) layer information, coordinate system information, tile level information, tile column number information and tile row number information;
the range determining module is used for determining the actual coordinate range of the tile according to the tile service description information;
the image determining module is used for generating a corresponding map tile image according to the actual coordinate range and a preset template library;
the return module is used for returning the map tile image to the calling party.
9. A computer device, comprising: memory in which a computer program is stored which is executable on the processor, and a processor which, when executing the computer program, carries out the steps of the method according to any one of the preceding claims 1 to 7.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110360111.3A 2021-04-01 2021-04-01 Map tile image processing method, device, equipment and storage medium Active CN113076440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110360111.3A CN113076440B (en) 2021-04-01 2021-04-01 Map tile image processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110360111.3A CN113076440B (en) 2021-04-01 2021-04-01 Map tile image processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113076440A true CN113076440A (en) 2021-07-06
CN113076440B CN113076440B (en) 2024-07-09

Family

ID=76614897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110360111.3A Active CN113076440B (en) 2021-04-01 2021-04-01 Map tile image processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113076440B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061989A (en) * 2022-06-07 2022-09-16 云南省地矿测绘院有限公司 GIS data sharing method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002116949A (en) * 2000-10-06 2002-04-19 Canon Inc Image processing method and device and storage medium
CN103309944A (en) * 2013-05-14 2013-09-18 广东南方数码科技有限公司 Surface feature symbolization method for realizing map library integration
CN103488760A (en) * 2013-09-26 2014-01-01 中国测绘科学研究院 Provision method of geographic information tile services and device for implementing provision method
CN105339938A (en) * 2013-05-15 2016-02-17 谷歌公司 Efficient fetching of map tile data
CN106021436A (en) * 2016-05-16 2016-10-12 武汉大学 Vector tile map making method
CN106991153A (en) * 2017-03-29 2017-07-28 武大吉奥信息技术有限公司 A kind of third party's map tile service cut-in method and system based on Web client
CN107239531A (en) * 2017-05-31 2017-10-10 国电南瑞科技股份有限公司 A kind of extension GeoServer issues the implementation method of self-defined tile WMS services
CN110362593A (en) * 2019-07-11 2019-10-22 上海达梦数据库有限公司 A kind of data query method, apparatus, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002116949A (en) * 2000-10-06 2002-04-19 Canon Inc Image processing method and device and storage medium
CN103309944A (en) * 2013-05-14 2013-09-18 广东南方数码科技有限公司 Surface feature symbolization method for realizing map library integration
CN105339938A (en) * 2013-05-15 2016-02-17 谷歌公司 Efficient fetching of map tile data
CN103488760A (en) * 2013-09-26 2014-01-01 中国测绘科学研究院 Provision method of geographic information tile services and device for implementing provision method
CN106021436A (en) * 2016-05-16 2016-10-12 武汉大学 Vector tile map making method
CN106991153A (en) * 2017-03-29 2017-07-28 武大吉奥信息技术有限公司 A kind of third party's map tile service cut-in method and system based on Web client
CN107239531A (en) * 2017-05-31 2017-10-10 国电南瑞科技股份有限公司 A kind of extension GeoServer issues the implementation method of self-defined tile WMS services
CN110362593A (en) * 2019-07-11 2019-10-22 上海达梦数据库有限公司 A kind of data query method, apparatus, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061989A (en) * 2022-06-07 2022-09-16 云南省地矿测绘院有限公司 GIS data sharing method and system

Also Published As

Publication number Publication date
CN113076440B (en) 2024-07-09

Similar Documents

Publication Publication Date Title
CN109508681B (en) Method and device for generating human body key point detection model
CN109801205B (en) Traceable implicit watermark adding method and device
JP6266656B2 (en) System and method for resizing an image
US20200193372A1 (en) Information processing method and apparatus
CN114020756B (en) Remote sensing image real-time map service publishing method and device
CN111290931B (en) Method and device for visually displaying buried point data
CN111583381B (en) Game resource map rendering method and device and electronic equipment
CN110174114B (en) Lane line-level path generation method and device and storage medium
KR20170116022A (en) Service implementation
CN105447534A (en) Imaged-based information presenting method and device
CN108804445A (en) Heating power drawing generating method and device
CN113076440A (en) Map tile image processing method, device, equipment and storage medium
CN113157214B (en) Remote sensing image display method, device, equipment and storage medium
CN113298687B (en) Watermark image adding method and device
JPH11119970A (en) Article retrieval supporting device and record medium thereof
CN113342916B (en) Geographic tag image file format data processing method and device and electronic equipment
CN111429549B (en) Route image generation method, device and storage medium
CN106844502B (en) Data consistency processing method and equipment
KR102633817B1 (en) Service server that supports to be able to inquiring review information about franchisee based on the two-dimensional code and operating method thereof
CN118229788B (en) Geographic information data element symbol positioning method and device
CN117557711B (en) Method, device, computer equipment and storage medium for determining visual field
CN111586133B (en) Information pushing method and related device
US10410052B2 (en) Stroke based skeletonizer
CN111857341B (en) Display control method and device
CN114625817A (en) Electronic map marking method and device and electronic equipment

Legal Events

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