CN113568995A - Dynamic tile map making method based on retrieval conditions and tile map system - Google Patents

Dynamic tile map making method based on retrieval conditions and tile map system Download PDF

Info

Publication number
CN113568995A
CN113568995A CN202110699435.XA CN202110699435A CN113568995A CN 113568995 A CN113568995 A CN 113568995A CN 202110699435 A CN202110699435 A CN 202110699435A CN 113568995 A CN113568995 A CN 113568995A
Authority
CN
China
Prior art keywords
tile
file
image
executing
generated
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
CN202110699435.XA
Other languages
Chinese (zh)
Other versions
CN113568995B (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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • 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)
  • Computational Linguistics (AREA)
  • Remote Sensing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a dynamic tile map manufacturing method based on retrieval conditions and a tile map system, wherein the method comprises the following steps: s1, performing service access on the pre-created image map information database, and transmitting map browsing parameters as retrieval conditions; s2, retrieving a target image data list from the database according to the transmitted retrieval conditions; s3, analyzing the target image data list, and coding the analysis result and the personalized browsing parameters of the target image data list; s4, acquiring the corresponding tile from the specific storage area according to the encoding result, if the acquisition is successful, directly returning the acquired tile to the client, otherwise, executing S5-S6; s5, generating a corresponding tile according to the target image data list and the analysis result; and S6, writing the generated tiles and the coding results of the corresponding analysis results into a specific storage area, and returning. And the system performance is guaranteed by adopting a tile generation mechanism of filling and returning and a retrieval response mechanism of constructing cache key values.

Description

Dynamic tile map making method based on retrieval conditions and tile map system
Technical Field
The invention relates to the field of maps, in particular to a dynamic tile map manufacturing method based on retrieval conditions and a tile map system.
Background
When a traditional grid Tile Map Service (Web Map Tile Service, WMTS) is manufactured, grid data slicing processing is required to be performed first, data is organized in an ordered manner, and then Tile Map slicing processing and Map publishing are performed. The traditional processing mode can not meet the personalized browsing requirements of users, and slicing of raster data and storage of sliced data can consume a large amount of time and occupy a large amount of storage, and can not meet the requirements of continuous increase of user data and setting of personalized retrieval conditions.
The "user personalized browsing requirement" means that in a daily browsing grid tile map service, as the grid data of a user continuously accumulates and increases, the user wants to dynamically browse a certain area tile map service according to the self-defined retrieval conditions (product type, satellite, sensor, shooting time, and the like) and the arrangement mode and other conditions.
The accumulation of grid data of users will increase with time, and the grid data may contain development information such as production department, product grade, product type, shooting time, shooting satellite sensor type and the like besides basic position information. According to the traditional tile map making mode, N tile map services are needed to be made to possibly meet the personalized browsing requirements of users, so that management troubles are brought to the users, a large amount of time and storage space are wasted, and after data is updated, the corresponding services need to be sliced again, so that the daily requirements of the users cannot be met.
At present, a manufacturing method of a high-efficiency grid dynamic tile map which meets the retrieval conditions and personalized browsing requirements on the premise of ensuring the browsing efficiency is lacked.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a dynamic tile map making method based on retrieval conditions and a tile map system, and after data updating, a user can browse the grid tile map service of a corresponding area directly through the service according to the retrieval conditions set by the user without performing operations such as data slicing.
The general concept of the invention is as follows: inputting the spatial information, the path and the expansion information of the raster data into a database, creating indexes in the spatial fields and the attribute fields and generating a unique number identifier for each raster picture; when a user browses a certain area based on the retrieval conditions, calculating the area range corresponding to the tile, and acquiring a raster file list meeting the conditions from a database by combining with other retrieval conditions and a sorting mode; and calculating an MD5 code (or other unique codes) according to the returned data number list and personalized tile browsing parameters (tile format png, jpg, transparency, brightness and the like), acquiring cached pictures from a cache (a data database, an in-memory hash table and the like) according to the MD5 code, returning if the acquisition is successful, generating a new raster tile according to the image list and tile request information if the acquisition is unsuccessful, writing the new raster tile into the cache and returning. The specific technical scheme is as follows:
the invention provides a WMTS dynamic tile map manufacturing method based on retrieval 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 the pre-created image map information database, and introducing map browsing parameters as retrieval conditions, wherein the retrieval conditions comprise the levels, line numbers and column numbers of tile requests, the corresponding ranges of calculation and attribute conditions for image file expansion, and the attribute conditions for image file expansion are one or more of image accessory information defined when the image map information database is pre-created;
s2, retrieving a target image data list from the image map information database according to the transmitted retrieval conditions;
s3, analyzing the target image data list, and combining the target image data list and the personalized browsing parameters to perform tile data coding to obtain a coding result;
s4, acquiring the corresponding tile from the specific storage area according to the encoding result, if the acquisition is successful, directly returning the acquired tile 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 tile and the coding result of the corresponding analysis result into the specific storage area, and returning the generated tile to the client.
Further, the step of invoking the tile generation module to generate the corresponding tile comprises:
s501, acquiring the number of image files in the target image data list, traversing the list to acquire an image file i, initializing i to 0, if i is less than the number of the files, executing S502, otherwise executing S507;
s502, if the coordinate system of the image file i is not consistent 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 cut file;
s504, the first clipping file is put into a memory and memory file reprojection transformation is carried out on the first clipping file,
enabling the memory file coordinate system to be consistent with the tile coordinate system;
s505, performing clipping operation on the memory file after the reprojection 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 cache region of the tile to be generated, and executing S507;
s506, performing clipping operation on 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 the corresponding cache region 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 the self-adding and updating numerical value operation on the i, and returning to execute S501;
and S508, processing the filled file according to the personalized browsing parameters of the tiles, and compressing the file into a tile image.
Further, S1 is preceded by pre-creating a shadow map information database by:
s001, defining an accessory information category of image raster data stored in a database, and creating an index between the accessory information and the image raster data, wherein the accessory information category comprises 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;
and S002, reading the file list in the appointed directory, and inputting the image files in the file list and the corresponding auxiliary information into the database one by one.
Further, before the step S002, the method further includes:
judging whether the image file is the image data of the EPSG:4326, if so, recording the image file into a database, otherwise, converting the external rectangle of the corresponding image into the EPSG:4326 format and then recording the image file with the converted format into the database.
Further, in step S3, the personalized browsing parameter includes one or more of a tile format, a transparent color, a brightness, and an RGB color value, the target image data list and the personalized browsing parameter are formatted into a character string, and the character string after formatting is encoded.
And further, encoding the formatted character string in an encrypted or non-encrypted mode.
Further, step S2 further includes:
the transmitted retrieval conditions comprise spatial 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 the conditions of the other parameters is retrieved from the image map information database according to the spatial 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 being configured to execute the following instructions:
s1, performing service access on the pre-created image map information database, and introducing map browsing parameters as retrieval conditions, wherein the retrieval conditions comprise the levels, line numbers and column numbers of tile requests, the corresponding ranges of calculation and attribute conditions for image file expansion, and the attribute conditions for image file expansion are one or more of image accessory information defined when the image map information database is pre-created;
s2, retrieving a target image data list from the image map information database according to the transmitted retrieval conditions;
s3, analyzing the target image data list, and combining the target image data list and the personalized browsing parameters to perform tile data coding to obtain a coding result;
s4, acquiring the corresponding tile from the specific storage area according to the encoding result, if the acquisition is successful, directly returning the acquired tile 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 tile and the coding result of the corresponding analysis result into the specific storage area, and returning the generated tile to the client.
Further, the server executes the following instructions after calling the tile generation module:
s501, acquiring the number of image files in the target image data list, traversing the list to acquire an image file i, initializing i to 0, if i is less than the number of the files, executing S502, otherwise executing S507;
s502, if the coordinate system of the image file i is not consistent 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 cut file;
s504, the first clipping file is put into a memory and memory file reprojection transformation is carried out on the first clipping file,
enabling the memory file coordinate system to be consistent with the tile coordinate system;
s505, performing clipping operation on the memory file after the reprojection 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 cache region of the tile to be generated, and executing S507;
s506, performing clipping operation on 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 the corresponding cache region 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 the self-adding and updating numerical value operation on the i, and returning to execute S501;
and S508, processing the filled file according to the personalized browsing parameters of the tiles, and compressing the file into a tile image.
The technical scheme provided by the invention has the following beneficial effects:
a. index information is established in space and other attribute columns of data, and corresponding image data meeting requirements are retrieved from a database according to a retrieval condition brought in real time and a browsing tile area, so that the aim of reducing performance bottleneck brought by the improvement of data quantity is fulfilled;
b. for areas browsed by other users, according to the file list corresponding to the tiles, the personalized tile parameter files construct cache key values, and the response time of the system is reduced under the condition that the requirements are met;
c. a mechanism of full filling and returning is adopted in the tile file generating process, so that the number of files opened in the tile generating process is reduced, IO access of a system is reduced, and the system performance is not limited by data volume under the condition of ensuring correct display vision;
d. the retrieval condition-based personalized tile map returning mechanism can not only guarantee the requirements of users for browsing tiles in a personalized manner, but also meet the retrieval requirements of the users.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a general flowchart of a WMTS dynamic tile mapping method provided by an embodiment of the present invention;
FIG. 2 is a flowchart of generating a tile according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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, but may include other steps or elements not expressly listed or inherent to such process, method, article, or device.
In an embodiment of the present invention, a WMTS dynamic tile mapping method based on search criteria is provided, which is performed by a tile mapping system, the tile mapping system including a database and a tile generation module, and referring to fig. 1, the WMTS dynamic tile mapping method includes the following steps:
firstly, an image map information database is created in advance, then a target image is searched in the image map information database created in advance according to a search condition, unique coding is carried out on tile map data according to a target image 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 coding, if the unique coding is successful, the corresponding tile data are returned, otherwise, the tiles are generated to be returned to a client, and simultaneously, the generated tiles and the corresponding coding results are written into the cache so as to construct cache key values for newly generated tile files. The following is a detailed description of the various steps:
firstly, an image map information database is pre-created, and the method specifically comprises the following steps:
s001, defining an accessory information category of image raster data stored in a database, and creating an index between the accessory information and the image raster data, wherein the accessory information category comprises 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;
and S002, reading the file list in the appointed directory, and inputting the image files in the file list and the corresponding auxiliary information into the database one by one.
In this embodiment, before the image file is recorded into the database, it is further determined whether the image file is the image data of the EPSG:4326, if so, the image file is recorded into the database, otherwise, the external rectangle of the image corresponding to the image file is converted into the format of the EPSG:4326, and then the image file with the converted format is recorded into the database.
In addition, when new data are generated in the process of business production, namely data production and processing, the image files in the new data and the corresponding auxiliary information thereof are recorded into the database.
Secondly, database retrieval operation specifically comprises the following steps:
s1, performing service access on the pre-created image map information database, and introducing map browsing parameters as retrieval conditions, wherein the retrieval conditions comprise: the tile request level (Z), row number (X), column number (Y) calculate the corresponding range and attribute conditions for image file expansion (one or more of image accessory information defined when the image map information database is pre-created).
As described above, the accessory information category of the image raster data includes one or more of a file path, affine transformation information, spatial information, coordinate system information, a satellite type, a sensor type, a product type, shooting time, production department information, and an arrangement manner; thus, service access is made with parameters that pass into one or more of the categories described above.
And S2, retrieving a target image data list from the image map information database according to the transmitted retrieval conditions.
Specifically, for example, the parameters introduced in the request for service access have spatial information, and the corresponding tile range is calculated according to the level (Z), the row number (X) and the column number (Y) of the request; and integrating other expansion auxiliary information, and searching a target Image data List Image _ List meeting the requirement from a system space database.
Index information is established in space and other accessory information of data, corresponding image data meeting requirements are retrieved from a database according to a retrieval condition brought in real time and a browsing tile area, and the performance bottleneck brought by data quantity improvement is reduced while the retrieval purpose is achieved.
And S3, analyzing the target image data list, and combining the target image data list and the personalized browsing parameters to perform tile data coding to obtain a coding result.
Specifically, the target image data list and the personalized browsing parameters include a tile format, a transparent color, a brightness, RGB color values, and the like, the file number and the personalized browsing parameters are formatted into character strings respectively, and then the formatted character strings are encoded, specifically, the formatted character strings may be encoded in an encrypted or non-encrypted manner.
The encoding mode may adopt a conventional encoding mode, for example, file numbers in the data list are sequentially formatted into a character string a, personalized browsing parameters are formatted into a character string B, and a unique code TCID — MD5(Z + X + Y + a + B) is calculated. It should be noted that the MD5 encoding method is only an example, and is not taken as a basis for limiting the protection scope of the present invention, since other encoding methods in the prior art can implement the technical solution of the present invention.
S4, acquiring the corresponding tile from the specific storage area according to the encoding result, if the acquisition is successful, directly returning the acquired tile 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 areas browsed by other users, the tile information may be directly obtained in the cache area according to the unique encoding result and returned;
if the area is actually browsed for the first time, S5-S6 are executed.
And 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 invoking 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 in the target image data list, traversing the list to acquire an image file i, wherein i is initialized to 0, if i is less than the number of the files, the traversal is not finished, and S502 is executed, otherwise, the traversal is finished, and S507 is executed;
s502, if the coordinate system of the image file i is not consistent with the tile coordinate system, executing S503-S505 (for converting the coordinate system), 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 cut file;
s504, the first clipping file is put into a memory and memory file reprojection transformation is carried out on the first clipping file,
enabling the memory file coordinate system to be consistent with the tile coordinate system;
s505, performing clipping operation on the memory file after the reprojection 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 cache region of the tile to be generated, and executing S507;
s506, performing clipping operation on 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 the corresponding cache region 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 the self-adding and updating numerical value operation on the i, and returning to execute S501;
and S508, processing the filled file according to the personalized browsing parameters of the tiles, and compressing the file into a tile image.
Because the step S506/507 adopts a mechanism of filling and returning, redundant pictures do not need to be generated after filling, the number of files opened in the tile generation process is reduced, system IO access is reduced, and the system performance is not limited by data volume under the condition of ensuring correct display vision. The retrieval condition-based personalized tile map returning mechanism can not only guarantee the requirements of users for browsing tiles in a personalized manner, but also meet the retrieval requirements of the users.
And S6, writing the generated tile and the coding result of the corresponding analysis result into the specific storage area, and returning the generated tile 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 are to generate tiles to return to the client, and simultaneously write the generated tiles and the corresponding encoding results into the cache, so as to construct cache key values for newly generated tile files, so that when the area is browsed next time, tile information can be directly obtained in the cache area according to the unique encoding results, and the efficiency of matching the tiles in the cache area through the cache key values is far higher than that of retrieving image information in the database through expanding raster tile map parameters, so that constructing the cache key values can reduce the system response time under the condition of meeting the retrieval requirements.
In one embodiment of the present invention, a tile map system is provided, the tile map system comprising a server, a database, and a tile generation module, the server for executing the following instructions:
s1, performing service access on the pre-created image map information database, and introducing map browsing parameters as retrieval conditions, wherein the retrieval conditions comprise the levels, line numbers and column numbers of tile requests, the corresponding ranges of calculation and attribute conditions for image file expansion, and the attribute conditions for image file expansion are one or more of image accessory information defined when the image map information database is pre-created;
s2, retrieving a target image data list from the image map information database according to the transmitted retrieval conditions;
s3, analyzing the target image data list, and combining the target image data list and the personalized browsing parameters to perform tile data coding to obtain a coding result;
s4, acquiring the corresponding tile from the specific storage area according to the encoding result, if the acquisition is successful, directly returning the acquired tile 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 tile and the coding result of the corresponding analysis result into the specific storage area, and returning the generated tile to the client.
Further, the server executes the following instructions after calling the tile generation module:
s501, acquiring the number of image files in the target image data list, traversing the list to acquire an image file i, initializing i to 0, if i is less than the number of the files, executing S502, otherwise executing S507;
s502, if the coordinate system of the image file i is not consistent 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 cut file;
s504, the first clipping file is put into a memory and memory file reprojection transformation is carried out on the first clipping file,
enabling the memory file coordinate system to be consistent with the tile coordinate system;
s505, performing clipping operation on the memory file after the reprojection 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 cache region of the tile to be generated, and executing S507;
s506, performing clipping operation on 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 the corresponding cache region 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 the self-adding and updating numerical value operation on the i, and returning to execute S501;
and S508, processing the filled file according to the personalized browsing parameters of the tiles, and compressing the file into a tile image.
The tile map system embodiment provided by the above embodiment and the WMTS dynamic tile map making method based on search conditions provided by the above embodiment belong to the same concept, and a specific implementation process thereof is detailed in the method embodiment, that is, all features in the WMTS dynamic tile map making method based on search conditions may be introduced into the tile map system embodiment by way of reference.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing is directed to embodiments of the present application and it is noted that numerous modifications and adaptations may be made by those skilled in the art without departing from the principles of the present application and are intended to be within the scope of the present application.

Claims (10)

1. A WMTS dynamic tile map making method based on retrieval conditions is executed by a tile map system, the tile map system comprises a database and a tile generation module, and the WMTS dynamic tile map making method is characterized by comprising the following steps:
s1, performing service access on the pre-created image map information database, and introducing map browsing parameters as retrieval conditions, wherein the retrieval conditions comprise the levels, line numbers and column numbers of tile requests, the corresponding ranges of calculation and attribute conditions for image file expansion, and the attribute conditions for image file expansion are one or more of image accessory information defined when the image map information database is pre-created;
s2, retrieving a target image data list from the image map information database according to the transmitted retrieval conditions;
s3, analyzing the target image data list, and combining the target image data list and the personalized browsing parameters to perform tile data coding to obtain a coding result;
s4, acquiring the corresponding tile from the specific storage area according to the encoding result, if the acquisition is successful, directly returning the acquired tile 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 tile and the coding result of the corresponding analysis result into the specific storage area, and returning the generated tile to the client.
2. The WMTS dynamic tile mapping method of claim 1, wherein said step of invoking a tile generation module to generate a corresponding tile comprises:
s501, acquiring the number of image files in the target image data list, traversing the list to acquire an image file i, initializing i to 0, if i is less than the number of the files, executing S502, 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 cut file;
s504, the first clipping file is placed into a memory, and memory file re-projection transformation is carried out on the first clipping file, so that a memory file coordinate system is consistent with a tile coordinate system;
s505, performing clipping operation on the memory file after the reprojection 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 cache region of the tile to be generated, and executing S507;
s506, performing clipping operation on 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 the corresponding cache region 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 the self-adding and updating numerical value operation on the i, and returning to execute S501;
and S508, processing the filled file according to the personalized browsing parameters of the tiles, and compressing the file into a tile image.
3. The WMTS dynamic tile mapping method of claim 1, wherein S1 is preceded by pre-creating a video map information database by:
s001, defining an accessory information category of image raster data stored in a database, and creating an index between the accessory information and the image raster data, wherein the accessory information category comprises 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;
and S002, reading the file list in the appointed directory, and inputting the image files in the file list and the corresponding auxiliary information into the database one by one.
4. The WMTS dynamic tile mapping method according to claim 3, wherein the step S002 of entering the image file into the database further comprises:
judging whether the image file is the image data of the EPSG:4326, if so, recording the image file into a database, otherwise, converting the external rectangle of the corresponding image into the EPSG:4326 format and then recording the image file with the converted format into the database.
5. The method as claimed in claim 1, wherein the customized browsing parameters include one or more of tile format, transparent color, brightness, RGB color values, the target image data list and the customized browsing parameters are formatted into character strings, and the formatted character strings are encoded.
6. The WMTS dynamic tile mapping method of claim 5, wherein said formatted string is encoded in an encrypted or unencrypted manner.
7. The WMTS dynamic tile mapping method of claim 1, wherein step S2 further comprises:
the transmitted retrieval conditions comprise spatial 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 the conditions of the other parameters is retrieved from the image map information database according to the spatial information.
8. The WMTS dynamic tile mapping method according to claim 1, wherein the specific storage area is a cache, a database or an in-memory hash table.
9. A tile map system, comprising a server, a database, and a tile generation module, the server configured to execute instructions to:
s1, performing service access on the pre-created image map information database, and introducing map browsing parameters as retrieval conditions, wherein the retrieval conditions comprise the levels, line numbers and column numbers of tile requests, the corresponding ranges of calculation and attribute conditions for image file expansion, and the attribute conditions for image file expansion are one or more of image accessory information defined when the image map information database is pre-created;
s2, retrieving a target image data list from the image map information database according to the transmitted retrieval conditions;
s3, analyzing the target image data list, and combining the target image data list and the personalized browsing parameters to perform tile data coding to obtain a coding result;
s4, acquiring the corresponding tile from the specific storage area according to the encoding result, if the acquisition is successful, directly returning the acquired tile 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 tile and the coding result of the corresponding analysis result into the specific storage area, and returning the generated tile to the client.
10. The tile map system of claim 9, wherein the server, upon invoking the tile generation module, executes the following instructions:
s501, acquiring the number of image files in the target image data list, traversing the list to acquire an image file i, initializing i to 0, if i is less than the number of the files, executing S502, 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 cut file;
s504, the first clipping file is placed into a memory, and memory file re-projection transformation is carried out on the first clipping file, so that a memory file coordinate system is consistent with a tile coordinate system;
s505, performing clipping operation on the memory file after the reprojection 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 cache region of the tile to be generated, and executing S507;
s506, performing clipping operation on 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 the corresponding cache region 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 the self-adding and updating numerical value operation on the i, and returning to execute S501;
and S508, processing the filled file according to the personalized browsing parameters of the tiles, and compressing the file into a tile image.
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
CN202110509856 2021-05-11
CN2021105098561 2021-05-11

Publications (2)

Publication Number Publication Date
CN113568995A true CN113568995A (en) 2021-10-29
CN113568995B 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)

Cited By (7)

* 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
CN114494082A (en) * 2022-04-02 2022-05-13 成都理工大学工程技术学院 Image map tile map processing method based on image recognition
CN114996600A (en) * 2022-08-03 2022-09-02 成都经纬达空间信息技术有限公司 Multi-temporal image management database data writing and reading method and device
CN116149561A (en) * 2023-02-22 2023-05-23 中科星图数字地球合肥有限公司 Tile data transmission method and device, electronic equipment and storage medium
CN116701701A (en) * 2023-08-03 2023-09-05 数简科技(苏州)有限公司 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
CN117271691A (en) * 2023-10-07 2023-12-22 扬州万方科技股份有限公司 Construction method, system and computer readable medium for tile map service based on domestic platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253577A1 (en) * 2013-03-08 2014-09-11 Electronics And Telecommunications Research Institute System and method for providing tile-map using electronic navigation chart
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253577A1 (en) * 2013-03-08 2014-09-11 Electronics And Telecommunications Research Institute System and method for providing tile-map using electronic navigation chart
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
关雷;曹景庆;郭慧宇;徐雷;: "基于"便携式多源遥感影像即时服务系统"地图切片数据管理技术研究", 经纬天地, no. 06 *

Cited By (9)

* 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
CN114494082A (en) * 2022-04-02 2022-05-13 成都理工大学工程技术学院 Image map tile map processing method based on image recognition
CN114996600A (en) * 2022-08-03 2022-09-02 成都经纬达空间信息技术有限公司 Multi-temporal image management database data writing and reading method and device
CN116149561A (en) * 2023-02-22 2023-05-23 中科星图数字地球合肥有限公司 Tile data transmission method and device, electronic equipment and storage medium
CN116149561B (en) * 2023-02-22 2024-03-12 中科星图数字地球合肥有限公司 Tile data transmission method and device, electronic equipment and storage medium
CN116701701A (en) * 2023-08-03 2023-09-05 数简科技(苏州)有限公司 Tile map release method, system and storage medium supporting arbitrary coordinate system
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
CN117271691A (en) * 2023-10-07 2023-12-22 扬州万方科技股份有限公司 Construction method, system and computer readable medium for tile map service based on domestic platform

Also Published As

Publication number Publication date
CN113568995B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
CN113568995B (en) Dynamic tile map manufacturing method and tile map system based on search conditions
US20240031568A1 (en) Transferring system for huge and high quality images on network and method thereof
US6816868B1 (en) Database system
US8037105B2 (en) Computer apparatus
CN111259006A (en) Universal distributed heterogeneous data integrated physical aggregation, organization, release and service method and system
US7469257B2 (en) Generating and monitoring a multimedia database
JP5152877B2 (en) Document data storage method and apparatus in document base system
CN101477516B (en) Electronic data processing method and system
US11216516B2 (en) Method and system for scalable search using microservice and cloud based search with records indexes
CN100576209C (en) Associated data index, retrieval, store and present the control information system constituting method
CN109284273B (en) Massive small file query method and system adopting suffix array index
CN106874348A (en) File is stored and the method for indexing means, device and reading file
US20040078355A1 (en) Information management system
KR100853308B1 (en) Item type specific structured search
CN115114356A (en) Real-time decryption method based on vector data front-end display
KR20090037704A (en) Meta data generation method for intutive image search
WO2024022330A1 (en) Metadata management method based on file system, and related device thereof
CN108920684B (en) Scientific and technological resource space data editing method and system
CN113312823B (en) Finite element post-processing data processing method, system, equipment and storage medium
CN103631774B (en) Date storage method and system
KR100831550B1 (en) Video Searching Apparatus and its Method using XML Hierarchy Structure
JP2007310845A (en) Data processing system
CN114647630A (en) File synchronization method, information generation method, file synchronization device, information generation device, computer equipment and storage medium
JP3202214B2 (en) Database management system
CN117520337A (en) Service data aggregation and searching method and system

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