CN113568995B - Dynamic tile map manufacturing method and tile map system based on search conditions - Google Patents

Dynamic tile map manufacturing method and tile map system based on search conditions Download PDF

Info

Publication number
CN113568995B
CN113568995B CN202110699435.XA CN202110699435A CN113568995B CN 113568995 B CN113568995 B CN 113568995B CN 202110699435 A CN202110699435 A CN 202110699435A CN 113568995 B CN113568995 B CN 113568995B
Authority
CN
China
Prior art keywords
tile
file
image
executing
map
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110699435.XA
Other languages
Chinese (zh)
Other versions
CN113568995A (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.)
Shujian Technology Suzhou Co ltd
Original Assignee
Shujian Technology Suzhou 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 Shujian Technology Suzhou Co ltd filed Critical Shujian Technology Suzhou Co ltd
Publication of CN113568995A publication Critical patent/CN113568995A/en
Application granted granted Critical
Publication of CN113568995B publication Critical patent/CN113568995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Remote Sensing (AREA)
  • Computational Linguistics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a dynamic tile map manufacturing method and a tile map system based on search conditions, wherein the method comprises the following steps: s1, performing service access on a pre-created image map information database, and transmitting map browsing parameters as search conditions; s2, searching from a database according to the input search condition to obtain a target image data list; s3, analyzing the target image data list, and coding the analysis result of the target image data list and the personalized browsing parameters; s4, acquiring corresponding tiles from the specific storage area according to the coding result, if the acquisition is successful, directly returning the acquired tiles to the client, otherwise, executing S5-S6; s5, generating corresponding tiles according to the target image data list and the analysis result; s6, writing the generated tile and the coding result of the corresponding analysis result into a specific storage area, and returning. And a full-filling and return tile generation mechanism and a retrieval response mechanism for constructing a cache key value are adopted, so that the system performance is ensured.

Description

Dynamic tile map manufacturing method and tile map system based on search conditions
Technical Field
The invention relates to the field of maps, in particular to a dynamic tile map manufacturing method and a tile map system based on search conditions.
Background
Conventional raster tile map service (Web Map Tile Service, WMTS) is manufactured by first performing raster data slicing, organizing the data in an orderly fashion, and then performing tile map slicing and map distribution. The traditional processing mode can not meet the personalized browsing requirement of a user, and the slicing of raster data and the storage of sliced data consume a large amount of time and occupy a large amount of storage, so that the requirements of continuous increase of user data and personalized search condition setting can not be met.
The "user-customized browsing requirement" refers to that in the daily browsing of the grid tile map service, as the grid data of the user continuously increases, the user wants to dynamically browse the tile map service of a certain area according to the user-defined search conditions (such as product type, satellite, sensor, shooting time, etc.) and arrangement mode, etc.
The user's raster data may be accumulated over time, and the raster data may include expansion information such as a production department, a product level, a product type, a photographing time, a photographing satellite sensor type, and the like, in addition to basic location information. According to the traditional tile map manufacturing mode, N tile map services are required to be manufactured to meet the personalized browsing requirements of users, so that management trouble can be brought to the users, a large amount of time and storage space can be wasted, and after data are updated, the corresponding services need to be sliced again, so that the daily requirements of the users can not be met.
At present, a manufacturing method of a high-efficiency grid dynamic tile map meeting the search conditions and personalized browsing requirements on the premise of guaranteeing browsing efficiency is lacking.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a dynamic tile map manufacturing method and a tile map system based on search conditions, and a user can browse grid tile map services of a corresponding area through the service directly according to the search conditions set by the user without performing operations such as data slicing after data updating.
The general concept of the invention is as follows: the method comprises the steps of inputting raster data space information, paths and expansion information into a database, creating indexes in space fields and attribute fields, and generating unique number identifiers for each raster picture; when a user browses a certain area based on the search conditions, calculating the area range corresponding to the tile, and acquiring a grid file list meeting the conditions from a database in combination with other search conditions and a sequencing mode; and (3) calculating MD5 codes (or other unique codes) according to the returned data number list and personalized tile browsing parameters (tile formats png, jpg, transparency, brightness and the like), acquiring cached pictures from a cache (a data database, a memory hash table and the like) according to the MD5 codes, returning if the acquisition is successful, generating new grid tiles according to the image list and the tile request information if the acquisition is unsuccessful, writing into the cache and returning. The specific technical scheme is as follows:
the invention provides a WMTS dynamic tile map manufacturing method based on search conditions, which is executed by a tile map system, wherein the tile map system comprises a database and a tile generation module, and the WMTS dynamic tile map manufacturing method comprises the following steps:
s1, performing service access on a pre-created image map information database, and introducing map browsing parameters as search conditions, wherein the search conditions comprise a hierarchy of tile requests, a line number, a range corresponding to column number calculation and attribute conditions aiming at image file expansion, and the attribute conditions aiming at image file expansion are one or more of image auxiliary information defined when the image map information database is pre-created;
s2, searching to obtain a target image data list from the image map information database according to the input search condition;
s3, analyzing the target image data list, and carrying out tile data coding by combining the target image data list and the personalized browsing parameters to obtain a coding result;
s4, acquiring corresponding tiles from the specific storage area according to the coding result, if the acquisition is successful, directly returning the acquired tiles to the client, otherwise, executing S5-S6; wherein the specific storage area is different from the storage address of the image map information database;
s5, calling a tile generation module according to the target image data list and the analysis result thereof to generate a corresponding tile;
and S6, writing the generated tiles and the coding results of the corresponding analysis results into the specific storage area, and returning the generated tiles to the client.
Further, the step of calling the tile generation module to generate the corresponding tile includes:
s501, acquiring the number of image files of the target image data list, traversing the list to acquire image files i, initializing the i to 0, executing S502 if the i is smaller than the number of the files, otherwise executing S507;
s502, if the coordinate system of the image file i is inconsistent with the tile coordinate system, executing S503-S505,
otherwise, executing S506;
s503, converting an image external rectangle corresponding to a tile to be generated into a coordinate range corresponding to the image file i, and performing cutting operation on an area of the image file i in the converted image external rectangle range to obtain a first cutting file;
s504, the first clipping file is put into a memory and is subjected to memory file reprojection transformation,
enabling the memory file coordinate system to be consistent with the tile coordinate system;
s505, clipping the memory file after the re-projection transformation according to the external rectangular range of the image corresponding to the tile to be generated to obtain a second clipping file, filling the second clipping file into the corresponding buffer area of the tile to be generated, and executing S507;
s506, clipping the image file i according to the external rectangular range of the image corresponding to the tile to be generated to obtain a third clipping file, filling the third clipping file into a corresponding buffer area of the tile to be generated, and executing S507;
s507, if all areas of the tile to be generated are filled, executing S508, otherwise, executing self-addition and update numerical value operation on i, and returning to executing S501;
s508, the filled file is processed according to the personalized browsing parameters of the tiles and compressed into tile images.
Further, S1 is preceded by pre-creating an image map information database by:
s001, defining an auxiliary information category of the image raster data stored in the database, and creating an index between the auxiliary information and the image raster data, wherein the auxiliary information category comprises one or more of a file path, affine transformation information, space information, coordinate system information, satellite type, sensor type, product type, shooting time, production department information and arrangement mode;
s002, reading the file list in the appointed directory, and recording the image files in the file list and the corresponding auxiliary information thereof into the database one by one.
Further, in step S002, before entering the image file into the database, the method further includes:
and judging whether the image file is the image data of EPSG 4326, if so, recording the image file into a database, otherwise, converting the corresponding image external rectangle into the EPSG 4326 format, and recording the image file with the converted format into the database.
Further, in step S3, the personalized browsing parameters include one or more of tile format, transparent color, brightness, and RGB color values, the target image data list and the personalized browsing parameters are formatted into character strings, and the formatted character strings are encoded.
Further, the formatted character string is encoded by means of encryption or non-encryption.
Further, step S2 further includes:
the input search conditions comprise space information of a hierarchy, a line number and a column number corresponding to the tile and other parameters, and a target image data list meeting other parameter conditions is searched from the image map information database according to the space information.
Optionally, the specific storage area is a cache, a database or a memory hash table.
In another aspect, the present invention provides a tile map system comprising a server, a database, and a tile generation module, the server configured to execute instructions for:
s1, performing service access on a pre-created image map information database, and introducing map browsing parameters as search conditions, wherein the search conditions comprise a hierarchy of tile requests, a line number, a range corresponding to column number calculation and attribute conditions aiming at image file expansion, and the attribute conditions aiming at image file expansion are one or more of image auxiliary information defined when the image map information database is pre-created;
s2, searching to obtain a target image data list from the image map information database according to the input search condition;
s3, analyzing the target image data list, and carrying out tile data coding by combining the target image data list and the personalized browsing parameters to obtain a coding result;
s4, acquiring corresponding tiles from the specific storage area according to the coding result, if the acquisition is successful, directly returning the acquired tiles to the client, otherwise, executing S5-S6; wherein the specific storage area is different from the storage address of the image map information database;
s5, calling a tile generation module according to the target image data list and the analysis result thereof to generate a corresponding tile;
and S6, writing the generated tiles and the coding results of the corresponding analysis results into the specific storage area, and returning the generated tiles to the client.
Further, after the server calls the tile generation module, the following instructions are executed:
s501, acquiring the number of image files of the target image data list, traversing the list to acquire image files i, initializing the i to 0, executing S502 if the i is smaller than the number of the files, otherwise executing S507;
s502, if the coordinate system of the image file i is inconsistent with the tile coordinate system, executing S503-S505,
otherwise, executing S506;
s503, converting an image external rectangle corresponding to a tile to be generated into a coordinate range corresponding to the image file i, and performing cutting operation on an area of the image file i in the converted image external rectangle range to obtain a first cutting file;
s504, the first clipping file is put into a memory and is subjected to memory file reprojection transformation,
enabling the memory file coordinate system to be consistent with the tile coordinate system;
s505, clipping the memory file after the re-projection transformation according to the external rectangular range of the image corresponding to the tile to be generated to obtain a second clipping file, filling the second clipping file into the corresponding buffer area of the tile to be generated, and executing S507;
s506, clipping the image file i according to the external rectangular range of the image corresponding to the tile to be generated to obtain a third clipping file, filling the third clipping file into a corresponding buffer area of the tile to be generated, and executing S507;
s507, if all areas of the tile to be generated are filled, executing S508, otherwise, executing self-addition and update numerical value operation on i, and returning to executing S501;
s508, the filled file is processed according to the personalized browsing parameters of the tiles and compressed into tile images.
The technical scheme provided by the invention has the following beneficial effects:
a. index information is established in the space and other attribute columns of the data, corresponding image data meeting the requirements is searched from the database according to the search conditions brought in real time and the browsing tile areas, and the purpose is achieved, and meanwhile, the performance bottleneck caused by the improvement of the data quantity is reduced;
b. for the browsed areas of other users, according to the file list corresponding to the tiles, constructing a cache key value by personalized tile parameter files, and reducing the response time of the system under the condition of meeting the requirements;
c. the mechanism of filling and returning is adopted in the tile file generation process, so that the number of files opened in the tile generation process is reduced under the condition of ensuring the display vision to be correct, the IO access of a system is reduced, and the system performance is ensured not to be limited by the data volume;
d. the personalized tile map returning mechanism based on the retrieval conditions can ensure the personalized tile browsing requirement of the user and meet the retrieval requirement of the user.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a general flow chart of a WMTS dynamic tile map making method provided by an embodiment of the present invention;
FIG. 2 is a flow chart of tile generation provided by an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or device.
In one embodiment of the present invention, there is provided a WMTS dynamic tile map making method based on search conditions, executed by a tile map system including a database and a tile generation module, see fig. 1, the WMTS dynamic tile map making method including the steps of:
firstly, a video map information database is pre-created, secondly, a target video is searched in the pre-created video map information database according to search conditions, the tile map data is uniquely encoded according to a target video list and personalized tile browsing parameters (tile formats png, jpg, transparency, brightness and the like), corresponding tiles are obtained from a cache according to the unique codes, if the unique codes succeed, corresponding tile data are returned, otherwise, the tiles are generated to return to a client, and meanwhile, the generated tiles and corresponding encoding results are written into the cache so as to construct a cache key value for newly generated tile files. The following details the steps:
firstly, a pre-creating image map information database, which specifically comprises the following steps:
s001, defining an auxiliary information category of the image raster data stored in the database, and creating an index between the auxiliary information and the image raster data, wherein the auxiliary information category comprises one or more of a file path, affine transformation information, space information, coordinate system information, satellite type, sensor type, product type, shooting time, production department information and arrangement mode;
s002, reading the file list in the appointed directory, and recording the image files in the file list and the corresponding auxiliary information thereof into the database one by one.
In this embodiment, before the image file is recorded into the database, it is further required to determine whether the image file is the image data of EPSG 4326, if yes, the image file is recorded into the database, otherwise, the external rectangle of the corresponding image is converted into the EPSG 4326 format, and then the image file after the conversion format is recorded into the database.
In addition, when new data is generated in the business production process, namely data production and processing, the image files in the new data and the corresponding auxiliary information are input into the database.
Secondly, database retrieval operation, which specifically comprises:
s1, performing service access on a pre-created image map information database, and taking an incoming map browsing parameter as a retrieval condition, wherein the retrieval condition comprises: the hierarchy (Z), the line number (X) and the column number (Y) of the tile request calculate the corresponding range and the attribute condition (one or more of image auxiliary information defined when the image map information database is pre-created) of the expansion of the image file.
As described above, the auxiliary information category of the image raster data includes one or more of file path, affine transformation information, space information, coordinate system information, satellite type, sensor type, product type, shooting time, production department information, and arrangement mode; thus, service access is performed with parameters that are passed into one or more of the categories described above.
And S2, searching and obtaining a target image data list from the image map information database according to the input searching conditions.
Specifically, for example, parameters transmitted in a request of service access have spatial information, and corresponding tile ranges are calculated according to a hierarchy (Z), a row number (X) and a column number (Y) of the request; and integrating other expansion auxiliary information, and retrieving a target Image data List image_List meeting the requirements from the system space database.
Index information is established in space and other auxiliary information of data, corresponding image data meeting requirements is searched from a database according to search conditions brought in real time and browsing tile areas, and performance bottlenecks caused by data volume improvement are reduced while the search purpose is achieved.
S3, analyzing the target image data list, and carrying out tile data coding by combining the target image data list and the personalized browsing parameters to obtain a coding result.
Specifically, the target image data list and the personalized browsing parameters include tile format, transparent color, brightness, RGB color values, etc., the file number and the personalized browsing parameters are formatted into character strings respectively, and the formatted character strings are encoded, and specifically, the formatted character strings can be encoded in an encrypted or unencrypted manner.
The encoding method may adopt a conventional encoding method, for example, file numbers in a data list are formatted into a character string a according to a sequence, personalized browsing parameters are formatted into a character string B, and unique codes tcid=md5 (z+x+y+a+b) are calculated. It should be noted that, the MD5 encoding method is only an example and is not used as a basis for limiting the protection scope of the present invention, because other encoding methods in the prior art can implement the technical scheme of the present invention.
S4, acquiring corresponding tiles from the specific storage area according to the coding result, if the acquisition is successful, directly returning the acquired tiles to the client, otherwise, executing S5-S6; wherein the specific storage area is different from the storage address of the image map information database.
As described above, if the area is actually not browsed for the first time, that is, the user has browsed the area before, or for the area that has been browsed by other users, tile information may be directly obtained in the buffer according to the unique coding result and returned;
if it is actually the first time to browse the area, S5-S6 are performed.
S5, calling a tile generation module according to the target image data list and the analysis result thereof to generate a corresponding tile.
The specific steps of calling the tile generation module to generate the corresponding tile are shown in fig. 2, and include the following steps:
s500, analyzing tile parameters and parameters of the target image data list, and initializing a tile memory structure;
s501, acquiring the number of image files of the target image data list, traversing the list to acquire image files i, initializing the i to 0, if i is smaller than the number of the files, indicating that the traversal is not finished, executing S502, otherwise, indicating that the traversal is finished, and executing S507;
s502, if the coordinate system of the image file i is inconsistent with the tile coordinate system, executing S503-S505 (for coordinate system conversion), otherwise executing S506;
s503, converting an image external rectangle corresponding to a tile to be generated into a coordinate range corresponding to the image file i, and performing cutting operation on an area of the image file i in the converted image external rectangle range to obtain a first cutting file;
s504, the first clipping file is put into a memory and is subjected to memory file reprojection transformation,
enabling the memory file coordinate system to be consistent with the tile coordinate system;
s505, clipping the memory file after the re-projection transformation according to the external rectangular range of the image corresponding to the tile to be generated to obtain a second clipping file, filling the second clipping file into the corresponding buffer area of the tile to be generated, and executing S507;
s506, clipping the image file i according to the external rectangular range of the image corresponding to the tile to be generated to obtain a third clipping file, filling the third clipping file into a corresponding buffer area of the tile to be generated, and executing S507;
s507, if all areas of the tile to be generated are filled, executing S508, otherwise, executing self-addition and update numerical value operation on i, and returning to executing S501;
s508, the filled file is processed according to the personalized browsing parameters of the tiles and compressed into tile images.
Because the step S506/507 adopts a filling-in-return mechanism, redundant pictures do not need to be generated after filling is finished, the number of files opened in the tile generation process is reduced under the condition that the display vision is correct, the IO access of the system is reduced, and the system performance is ensured not to be limited by the data volume. The personalized tile map returning mechanism based on the retrieval conditions can ensure the personalized tile browsing requirement of the user and can meet the retrieval requirement of the user.
And S6, writing the generated tiles and the coding results of the corresponding analysis results into the specific storage area, and returning the generated tiles to the client.
The specific storage area is a cache, a database or a memory hash table, taking the cache as an example, the steps S5-S6 generate tiles to return to the client, and write the generated tiles and corresponding coding results into the cache so as to construct a cache key value for the newly generated tile file, so that when the area browses for the next time, tile information can be directly acquired in the cache area according to the unique coding results, the efficiency of matching tiles in the cache area through the cache key value is far higher than that of searching image information in the database through expanding grid tile map parameters, and the system response time can be reduced under the condition that the search requirement is met by constructing the cache key value.
In one embodiment of the invention, a tile map system is provided, the tile map system comprising a server, a database, and a tile generation module, the server configured to execute instructions for:
s1, performing service access on a pre-created image map information database, and introducing map browsing parameters as search conditions, wherein the search conditions comprise a hierarchy of tile requests, a line number, a range corresponding to column number calculation and attribute conditions aiming at image file expansion, and the attribute conditions aiming at image file expansion are one or more of image auxiliary information defined when the image map information database is pre-created;
s2, searching to obtain a target image data list from the image map information database according to the input search condition;
s3, analyzing the target image data list, and carrying out tile data coding by combining the target image data list and the personalized browsing parameters to obtain a coding result;
s4, acquiring corresponding tiles from the specific storage area according to the coding result, if the acquisition is successful, directly returning the acquired tiles to the client, otherwise, executing S5-S6; wherein the specific storage area is different from the storage address of the image map information database;
s5, calling a tile generation module according to the target image data list and the analysis result thereof to generate a corresponding tile;
and S6, writing the generated tiles and the coding results of the corresponding analysis results into the specific storage area, and returning the generated tiles to the client.
Further, after the server calls the tile generation module, the following instructions are executed:
s501, acquiring the number of image files of the target image data list, traversing the list to acquire image files i, initializing the i to 0, executing S502 if the i is smaller than the number of the files, otherwise executing S507;
s502, if the coordinate system of the image file i is inconsistent with the tile coordinate system, executing S503-S505,
otherwise, executing S506;
s503, converting an image external rectangle corresponding to a tile to be generated into a coordinate range corresponding to the image file i, and performing cutting operation on an area of the image file i in the converted image external rectangle range to obtain a first cutting file;
s504, the first clipping file is put into a memory and is subjected to memory file reprojection transformation,
enabling the memory file coordinate system to be consistent with the tile coordinate system;
s505, clipping the memory file after the re-projection transformation according to the external rectangular range of the image corresponding to the tile to be generated to obtain a second clipping file, filling the second clipping file into the corresponding buffer area of the tile to be generated, and executing S507;
s506, clipping the image file i according to the external rectangular range of the image corresponding to the tile to be generated to obtain a third clipping file, filling the third clipping file into a corresponding buffer area of the tile to be generated, and executing S507;
s507, if all areas of the tile to be generated are filled, executing S508, otherwise, executing self-addition and update numerical value operation on i, and returning to executing S501;
s508, the filled file is processed according to the personalized browsing parameters of the tiles and compressed into tile images.
The embodiment of the tile map system provided by the embodiment and the WMTS dynamic tile map manufacturing method based on the search condition provided by the embodiment belong to the same conception, and the specific implementation process of the embodiment of the method is detailed in the embodiment of the method, that is, all the features in the embodiment of the WMTS dynamic tile map manufacturing method based on the search condition can be introduced into the embodiment of the tile map system by a reference way.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely exemplary of the application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the application and are intended to be comprehended within the scope of the application.

Claims (10)

1. A WMTS dynamic tile map production method based on search conditions, executed by a tile map system comprising a database and a tile generation module, characterized in that the WMTS dynamic tile map production method comprises the steps of:
s1, performing service access on a pre-created image map information database, and introducing map browsing parameters as search conditions, wherein the search conditions comprise a hierarchy of tile requests, a line number, a range corresponding to column number calculation and attribute conditions aiming at image file expansion, and the attribute conditions aiming at image file expansion are one or more of image auxiliary information defined when the image map information database is pre-created;
s2, searching to obtain a target image data list from the image map information database according to the input search condition;
s3, analyzing the target image data list, and carrying out tile data coding by combining the target image data list and the personalized browsing parameters to obtain a coding result;
s4, acquiring corresponding tiles from the specific storage area according to the coding result, if the acquisition is successful, directly returning the acquired tiles to the client, otherwise, executing S5-S6; wherein the specific storage area is different from the storage address of the image map information database;
s5, calling a tile generation module according to the target image data list and the analysis result thereof to generate a corresponding tile;
and S6, writing the generated tiles and the coding results of the corresponding analysis results into the specific storage area, and returning the generated tiles to the client.
2. The WMTS dynamic tile map production method of claim 1, wherein the step of invoking the tile generation module to generate the corresponding tile comprises:
s501, acquiring the number of image files of the target image data list, traversing the list to acquire image files i, initializing the i to 0, executing S502 if the i is smaller than the number of the files, otherwise executing S507;
s502, if the coordinate system of the image file i is inconsistent with the tile coordinate system, executing S503-S505, otherwise executing S506;
s503, converting an image external rectangle corresponding to a tile to be generated into a coordinate range corresponding to the image file i, and performing cutting operation on an area of the image file i in the converted image external rectangle range to obtain a first cutting file;
s504, placing the first clipping file into a memory and carrying out memory file reprojection transformation on the first clipping file so that a memory file coordinate system is consistent with a tile coordinate system;
s505, clipping the memory file after the re-projection transformation according to the external rectangular range of the image corresponding to the tile to be generated to obtain a second clipping file, filling the second clipping file into the corresponding buffer area of the tile to be generated, and executing S507;
s506, clipping the image file i according to the external rectangular range of the image corresponding to the tile to be generated to obtain a third clipping file, filling the third clipping file into a corresponding buffer area of the tile to be generated, and executing S507;
s507, if all areas of the tile to be generated are filled, executing S508, otherwise, executing self-addition and update numerical value operation on i, and returning to executing S501;
s508, the filled file is processed according to the personalized browsing parameters of the tiles and compressed into tile images.
3. The WMTS dynamic tile map production method according to claim 1, wherein S1 is preceded by pre-creating an image map information database by:
s001, defining an auxiliary information category of the image raster data stored in the database, and creating an index between the auxiliary information and the image raster data, wherein the auxiliary information category comprises one or more of a file path, affine transformation information, space information, coordinate system information, satellite type, sensor type, product type, shooting time, production department information and arrangement mode;
s002, reading the file list in the appointed directory, and recording the image files in the file list and the corresponding auxiliary information thereof into the database one by one.
4. The WMTS dynamic tile map production method according to claim 3, wherein in step S002, before entering the image file into the database, further comprises:
and judging whether the image file is the image data of EPSG 4326, if so, recording the image file into a database, otherwise, converting the corresponding image external rectangle into the EPSG 4326 format, and recording the image file with the converted format into the database.
5. The WMTS dynamic tile map manufacturing method according to claim 1, wherein the personalized browsing parameters include one or more of tile format, transparent color, brightness, RGB color values, the target image data list and the personalized browsing parameters are formatted into character strings, respectively, and the formatted character strings are encoded.
6. The WMTS dynamic tile map production method according to claim 5, wherein the formatted character string is encoded by encryption or non-encryption.
7. The WMTS dynamic tile map production method according to claim 1, wherein step S2 further comprises:
the input search conditions comprise space information of a hierarchy, a line number and a column number corresponding to the tile and other parameters, and a target image data list meeting other parameter conditions is searched from the image map information database according to the space information.
8. The WMTS dynamic tile map production method according to claim 1, wherein the specific storage area is a cache, a database, or a memory hash table.
9. A tile map system, comprising a server, a database, and a tile generation module, the server configured to execute instructions for:
s1, performing service access on a pre-created image map information database, and introducing map browsing parameters as search conditions, wherein the search conditions comprise a hierarchy of tile requests, a line number, a range corresponding to column number calculation and attribute conditions aiming at image file expansion, and the attribute conditions aiming at image file expansion are one or more of image auxiliary information defined when the image map information database is pre-created;
s2, searching to obtain a target image data list from the image map information database according to the input search condition;
s3, analyzing the target image data list, and carrying out tile data coding by combining the target image data list and the personalized browsing parameters to obtain a coding result;
s4, acquiring corresponding tiles from the specific storage area according to the coding result, if the acquisition is successful, directly returning the acquired tiles to the client, otherwise, executing S5-S6; wherein the specific storage area is different from the storage address of the image map information database;
s5, calling a tile generation module according to the target image data list and the analysis result thereof to generate a corresponding tile;
and S6, writing the generated tiles and the coding results of the corresponding analysis results into the specific storage area, and returning the generated tiles to the client.
10. The tile map system of claim 9, wherein the server, upon invoking the tile generation module, executes instructions to:
s501, acquiring the number of image files of the target image data list, traversing the list to acquire image files i, initializing the i to 0, executing S502 if the i is smaller than the number of the files, otherwise executing S507;
s502, if the coordinate system of the image file i is inconsistent with the tile coordinate system, executing S503-S505, otherwise executing S506;
s503, converting an image external rectangle corresponding to a tile to be generated into a coordinate range corresponding to the image file i, and performing cutting operation on an area of the image file i in the converted image external rectangle range to obtain a first cutting file;
s504, placing the first clipping file into a memory and carrying out memory file reprojection transformation on the first clipping file so that a memory file coordinate system is consistent with a tile coordinate system;
s505, clipping the memory file after the re-projection transformation according to the external rectangular range of the image corresponding to the tile to be generated to obtain a second clipping file, filling the second clipping file into the corresponding buffer area of the tile to be generated, and executing S507;
s506, clipping the image file i according to the external rectangular range of the image corresponding to the tile to be generated to obtain a third clipping file, filling the third clipping file into a corresponding buffer area of the tile to be generated, and executing S507;
s507, if all areas of the tile to be generated are filled, executing S508, otherwise, executing self-addition and update numerical value operation on i, and returning to executing S501;
s508, the filled file is processed according to the personalized browsing parameters of the tiles and compressed into tile images.
CN202110699435.XA 2021-05-11 2021-06-23 Dynamic tile map manufacturing method and tile map system based on search conditions Active CN113568995B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2021105098561 2021-05-11
CN202110509856 2021-05-11

Publications (2)

Publication Number Publication Date
CN113568995A CN113568995A (en) 2021-10-29
CN113568995B true CN113568995B (en) 2023-08-01

Family

ID=78162593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110699435.XA Active CN113568995B (en) 2021-05-11 2021-06-23 Dynamic tile map manufacturing method and tile map system based on search conditions

Country Status (1)

Country Link
CN (1) CN113568995B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114185613A (en) * 2021-11-30 2022-03-15 广州景骐科技有限公司 Semantic map partitioning method and device, vehicle and storage medium
CN114494082B (en) * 2022-04-02 2022-07-08 成都理工大学工程技术学院 Image map tile map processing method based on image recognition
CN114996600B (en) * 2022-08-03 2022-10-21 成都经纬达空间信息技术有限公司 Multi-temporal image management database data writing and reading method and device
CN116149561B (en) * 2023-02-22 2024-03-12 中科星图数字地球合肥有限公司 Tile data transmission method and device, electronic equipment and storage medium
CN116701701B (en) * 2023-08-03 2023-10-13 数简科技(苏州)有限公司 Tile map release method, system and storage medium supporting arbitrary coordinate system
CN116994721A (en) * 2023-08-09 2023-11-03 北京透彻未来科技有限公司 Quick processing system of digital pathological section graph

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301194A (en) * 2016-10-09 2017-10-27 上海炬宏信息技术有限公司 The compression storage of tile type grating map and dissemination method
CN110263116A (en) * 2019-06-21 2019-09-20 苏州超擎图形软件科技发展有限公司 A kind of tile map dissemination method and device for supporting dynamic projection to convert

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102046910B1 (en) * 2013-03-08 2019-11-22 한국전자통신연구원 System and method for providing tile-map using electronic navigation chart

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301194A (en) * 2016-10-09 2017-10-27 上海炬宏信息技术有限公司 The compression storage of tile type grating map and dissemination method
CN110263116A (en) * 2019-06-21 2019-09-20 苏州超擎图形软件科技发展有限公司 A kind of tile map dissemination method and device for supporting dynamic projection to convert

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于"便携式多源遥感影像即时服务***"地图切片数据管理技术研究;关雷;曹景庆;郭慧宇;徐雷;;经纬天地(06);全文 *

Also Published As

Publication number Publication date
CN113568995A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN113568995B (en) Dynamic tile map manufacturing method and tile map system based on search conditions
CN111723221B (en) Mass remote sensing data processing method and system based on distributed architecture
CN104866497B (en) The metadata updates method, apparatus of distributed file system column storage, host
CN106294798B (en) Image sharing method and terminal based on thumbnail
CN108664582B (en) Enterprise relation query method and device, computer equipment and storage medium
CN104820714A (en) Mass small tile file storage management method based on hadoop
CN106874348A (en) File is stored and the method for indexing means, device and reading file
CN103425653A (en) Method and system for realizing DICOM (digital imaging and communication in medicine) image quadratic search
CN115114356B (en) Real-time decryption method based on vector data front-end display
US10013474B2 (en) System and method for hierarchical synchronization of a dataset of image tiles
WO2021196551A1 (en) Image retrieval method and apparatus, computer device, and storage medium
CN116361494A (en) Real-time generation method for satellite remote sensing image tiles
WO2019085591A1 (en) Intelligent hardware device, intelligent disk data processing method, and storage medium
CN113312823B (en) Finite element post-processing data processing method, system, equipment and storage medium
CN115587084A (en) Comprehensive management system and method for geographic information data
CN113672831A (en) Hierarchical cutting and automatic index construction method based on raster image
CN103631774B (en) Date storage method and system
KR100831550B1 (en) Video Searching Apparatus and its Method using XML Hierarchy Structure
CN116821102B (en) Data migration method, device, computer equipment and storage medium
CN114647630A (en) File synchronization method, information generation method, file synchronization device, information generation device, computer equipment and storage medium
CN115118616B (en) Display result testing method, device, computer equipment and storage medium
CN115168409B (en) Data query method and device for database sub-tables and computer equipment
CN116760844A (en) Data synchronization method, device, equipment and storage medium of digital twin model
CN116910069A (en) Database updating method, device, computer equipment and storage medium
CN118132656A (en) Knowledge graph construction method, knowledge graph construction device, computer equipment and storage medium

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