CN115375868B - Map display method, remote sensing map display method, computing device and storage medium - Google Patents

Map display method, remote sensing map display method, computing device and storage medium Download PDF

Info

Publication number
CN115375868B
CN115375868B CN202211307714.8A CN202211307714A CN115375868B CN 115375868 B CN115375868 B CN 115375868B CN 202211307714 A CN202211307714 A CN 202211307714A CN 115375868 B CN115375868 B CN 115375868B
Authority
CN
China
Prior art keywords
map
original
target
remote sensing
raster data
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
CN202211307714.8A
Other languages
Chinese (zh)
Other versions
CN115375868A (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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202211307714.8A priority Critical patent/CN115375868B/en
Publication of CN115375868A publication Critical patent/CN115375868A/en
Application granted granted Critical
Publication of CN115375868B publication Critical patent/CN115375868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • 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/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor

Abstract

The embodiment of the specification provides a map display method, a remote sensing map display method, a computing device and a storage medium, wherein the map display method is applied to a client and comprises the following steps: the method comprises the steps of obtaining an original map and a region selection message aiming at the original map, wherein the original map comprises original raster data, generating vector data under a geographic coordinate system according to the region selection message, traversing the original raster data according to the vector data, determining target raster data corresponding to the region selection message, rendering the target raster data, and displaying the target map. The regional selection is executed at the client, so that repeated data transmission between the client and the server is avoided, the execution flow is simplified, the cost and the time consumption are saved, and the map display efficiency is improved. And traversing the original raster data according to the generated vector data under the geographic coordinate system, wherein the vector data under the geographic coordinate system is not distorted, so that the accuracy of region selection is ensured, and the accuracy of a target map is ensured.

Description

Map display method, remote sensing map display method, computing device and storage medium
Technical Field
The embodiment of the specification relates to the technical field of digital maps, in particular to a map display method and a remote sensing map display method.
Background
With the development of internet technology, digital maps are widely used in road engineering, geoscience analysis, online services, and other aspects.
Currently, digital maps are obtained by visualizing geographic data. The original map is further analyzed and rendered to obtain a target map satisfying practical application, for example, a digital map of a certain area is subjected to water area distribution analysis, and a water area region in the original map is identified and labeled to obtain a target map of the water area region of the area. In the analysis processing of the area selection, a target area in an original map needs to be selected to obtain a target map, the data processing process of the area selection of the original map is executed at a server, and after the area selection is completed to obtain the target map, the data processing process is sent to a client for rendering.
However, when the server performs the area selection, the server needs to adjust the geographic data and then perform the visualization again to obtain the target map, and sends the target map to the client. Therefore, an efficient map display method is needed.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a map display method. One or more embodiments of the present disclosure also relate to a remote sensing map display method, a map display apparatus, a remote sensing map display apparatus, a computing device, a computer-readable storage medium, and a computer program, so as to solve technical shortcomings in the prior art.
According to a first aspect of the embodiments of the present specification, there is provided a map display method, applied to a client, including:
acquiring an original map and a region selection message aiming at the original map, wherein the original map comprises original raster data;
generating vector data under a geographic coordinate system according to the region selection message;
traversing the original raster data according to the vector data, and determining target raster data corresponding to the region selection message;
and rendering the target raster data and displaying a target map.
According to a second aspect of embodiments of the present specification, there is provided a remote sensing map display method applied to a remote sensing map client, including:
acquiring an original remote sensing map and a region selection message aiming at the original remote sensing map, wherein the original remote sensing map comprises original remote sensing raster data;
generating remote sensing vector data under a geographic coordinate system according to the region selection message;
traversing the original remote sensing raster data according to the remote sensing vector data, and determining target remote sensing raster data corresponding to the region selection message;
rendering the target remote sensing raster data and displaying the target remote sensing map.
According to a third aspect of the embodiments of the present specification, there is provided a map display apparatus applied to a client, including:
a first obtaining module configured to obtain an original map and a region selection message for the original map, wherein the original map includes original raster data;
the first generation module is configured to generate vector data in a geographic coordinate system according to the region selection message;
the first determining module is configured to traverse the original raster data according to the vector data and determine target raster data corresponding to the region selection message;
and the first display module is configured to render the target raster data and display the target map.
According to a fourth aspect of the embodiments of the present specification, there is provided a remote sensing map display apparatus applied to a remote sensing map client, including:
the second acquisition module is configured to acquire an original remote sensing map and a region selection message aiming at the original remote sensing map, wherein the original remote sensing map comprises original remote sensing raster data;
the second generation module is configured to generate remote sensing vector data in a geographic coordinate system according to the region selection message;
the second determination module is configured to traverse the original remote sensing raster data according to the remote sensing vector data and determine target remote sensing raster data corresponding to the region selection message;
and the second display module is configured to render the target remote sensing raster data and display a target remote sensing map.
According to a fifth aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is used for storing computer executable instructions, and the processor is used for executing the computer executable instructions, and the computer executable instructions realize the steps of the map display method or the remote sensing map display method when being executed by the processor.
According to a sixth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the above-described map display method or remote sensing map display method.
According to a seventh aspect of embodiments herein, there is provided a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-described map display method or remote sensing map display method.
The map display method applied to the client side obtains an original map and a region selection message aiming at the original map, wherein the original map comprises original raster data, vector data under a geographic coordinate system is generated according to the region selection message, the original raster data is traversed according to the vector data, target raster data corresponding to the region selection message is determined, the target raster data is rendered, and a target map is displayed. The region selection is executed at the client, so that repeated data transmission between the client and the server is avoided, the execution flow is simplified, the cost and the time consumption are saved, and the map display efficiency is improved. The original raster data are traversed according to the generated vector data in the geographic coordinate system, and the vector data in the geographic coordinate system cannot be distorted, so that the accuracy of region selection is ensured, and the accuracy of a target map is ensured.
Drawings
FIG. 1 is a schematic flow chart of a map display method in the prior art;
FIG. 2 is a flow chart of a map display method provided by one embodiment of the present description;
FIG. 3 is a flow chart of a method for displaying a remote sensing map according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating a process of a map display method applied to an aerial remote sensing map according to an embodiment of the present disclosure;
FIG. 5 is a schematic front-end display diagram of a map display method applied to an aerial remote sensing map according to an embodiment of the present disclosure;
FIG. 6 is a schematic front-end display diagram of another map display method applied to an aerial remote sensing map according to an embodiment of the present disclosure;
FIG. 7 is a data flow diagram of a map display method provided by an embodiment of the present specification;
fig. 8 is a schematic structural diagram of a map display device provided in an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a remote sensing map display device according to an embodiment of the present specification;
fig. 10 is a block diagram of a computing device according to an embodiment of the present disclosure.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present description. This description may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, as those skilled in the art will be able to make and use the present disclosure without departing from the spirit and scope of the present disclosure.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can be termed a second and, similarly, a second can be termed a first without departing from the scope of one or more embodiments of the present description. The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
First, the noun terms to which one or more embodiments of the present specification relate are explained.
Grid data: in the geographic information system, after a digital map is gridded and cut, geographic data of ground objects in the digital map is represented by a two-dimensional matrix, grid data comprises a plurality of matrix units, each matrix unit is a pixel (grid unit), each data of the grid represents an attribute value (color and geographic coordinates) of the ground objects or phenomena, and the grid data has the characteristics of obvious attribute and implicit positioning. Generally, raster data has a multi-level structure, for example, a field has B, C, D three regions, and B field has E, F, G three villages, corresponding to raster data that fully embodies a field, B, C, D three regions, and E, F, G three villages. At present, because the raster data has such a hierarchical data structure, the overall raster data volume is large, the raster data needs to be stored in a distributed manner, and when a network geographic information system processes the raster data, the raster data needs to be acquired in a distributed manner and then spliced to obtain a target map.
Vector data: in a geographic information system, geographic data of ground objects in a digital map are represented by using space vectors, and the vector data are divided into three basic types: points, lines and planes. The vector data has the characteristics of obvious positioning and implicit attribute.
Geographic Information System (GIS): a spatial information system. Under the support of computer hardware and software systems, the technical system collects, stores, manages, calculates, analyzes, displays and describes the relevant geographic data in the whole or partial earth surface space.
Web Geographic Information System (WebGIS, web Geographic Information System): the geographic information system running on the Web network has the characteristics of the traditional network geographic information system, can realize the basic functions of the network geographic information system such as retrieval, inquiry, drawing output, editing and the like of geographic data, and is also the basis of the publishing, sharing and communication cooperation of the geographic data on the network.
Openlayers: the method is a JavaScript library package specially provided for the development of a network geographic information system client, and is used for realizing the map data access released in a standard format.
Canvas renderer: a rendering tool renders geographic data in the form of canvas containers resulting in a map that can be displayed at the front end.
GeoServer: a service end of a network geographic information system generates a digital map by utilizing GeoServer visualization, allows a client to analyze and process the digital map, and realizes data sharing transmission with the client through the GeoServer.
A geographical coordinate system: the method is a coordinate system which uses a three-dimensional spherical surface to define the surface position of the earth so as to realize the representation of a real object through latitude and longitude. For example, a WGS-84 geographic coordinate system, a NSWC9Z-2 geographic coordinate system, a BJZ geographic coordinate system, a XA geographic coordinate system, a GJ2000 geographic coordinate system, and the like.
Pixel coordinate system: the coordinate system is characterized by a real object by using the row and column numbers of pixels in an image, and the origin point can be the middle point of the image or any corner of the image.
Rendering: and sequentially setting the colors of the pixel points as the colors of the pixels at the corresponding positions according to the display parameters and the row and column numbers of the raster data to obtain a rendered layer (map).
Currently, on a network geographic information system, further analysis processing is performed on the original map. Fig. 1 is a schematic flow chart illustrating a map display method in the prior art, and as shown in fig. 1, the flow chart is as follows:
firstly, a server side obtains geographic data and carries out visualization processing to obtain an original map (drawing output), then the original map is sent to a client side, the client side renders the map and then displays the map on a front end, then a user carries out further analysis processing on the original map displayed on the front end, the executed further analysis processing data is sent to the server side, then the server side processes the geographic data according to the analysis processing data, carries out visualization processing again to obtain a target map, and finally the target map is sent to the client side to render and display.
In an application scene of region selection, a target map needs to be quickly rendered for further region selection, and the requirement on accuracy does not need to be too high. Such a process flow is too complex for the analysis process of region selection, and is costly and time consuming.
In view of the above problems, in the present specification, a map display method is provided, and the present specification also relates to a remote sensing map display method, a map display apparatus, a remote sensing map display apparatus, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
Referring to fig. 2, fig. 2 shows a flowchart of a map display method provided in an embodiment of the present specification, where the map display method is applied to a client, and specifically includes the following steps.
Step 202: an original map and a region selection message for the original map are obtained, wherein the original map comprises original raster data.
The client is a geographic information system or a network geographic information system.
The original map is a digital map selected by the area to be executed, and the original map can be stored in a geographic information system or a client of a network geographic information system, and can also be stored in a server of the network geographic information system. The original map may be a digital map directly acquired in advance by a map acquisition device, may also be a digital map generated by using a plurality of geographic data, and may also be a digital map obtained by performing visualization processing on the digital map acquired by the map acquisition device by using a plurality of geographic data, which is not limited herein. The original raster data is geographic data represented by a two-dimensional matrix after gridding and cutting an image of an original map, and attribute values of the original raster data comprise colors, geographic coordinates and the like.
The area selection message is a message determined by performing area selection on the target area on the original map, and includes information of the target area, such as location information of the target area, boundary information of the target area, and the like. The position information of the target area is position information of the target area on the original map, and the boundary information of the target area is generation information of an area boundary of the target area.
And acquiring the original map, wherein the specific mode is to acquire the original map according to the map identifier of the original map. Furthermore, the original map may be obtained from a server of the network geographic information system according to the map identifier of the original map, or the original map may be obtained from the geographic information system or a client of the network geographic information system according to the map identifier of the original map. The method comprises the steps of obtaining an area selection message aiming at an original map, wherein the specific mode is that the area selection message is obtained according to the area selection operation of a user on the original map. Furthermore, the user selects the area of the original map through the front end. For example, the user performs the area selection operation by clicking on the original map displayed at the front end, or for example, the user performs the area selection operation by inputting the relevant parameter for the target area at the front end, or for example, the user performs the area selection operation by circling on the original map displayed at the front end.
Illustratively, the map of the original map is identified as "satellite cloud map of the a place", and the original map is acquired from a server side of the network geographic information system according to the map identification: the original map comprises raster data of the satellite cloud map of the A place, and relevant parameters of a target area are input by a user through a front end: longitude range (100 ° E,103 ° E); latitude range (35 ° N,36 ° N).
The method comprises the steps of obtaining an original map comprising original raster data, providing a data base for subsequently determining target raster data, and obtaining a region selection message aiming at the original map, and providing a message base for subsequently generating vector data under a geographic coordinate system.
Step 204: and generating vector data under a geographic coordinate system according to the region selection message.
The vector data is vector data of a region boundary of the target region. The vector data is vector data in a geographic coordinate system, for example, the target region is a triangle, the geographic coordinates of the corresponding three vertices are (100 ° E,35 ° N), (101 ° E,38 ° N), (102 ° E,35 ° N), and the vector data of the corresponding region boundary is: { (100 ° E,35 ° N), (101 ° E,38 ° N), (102 ° E,35 ° N) }. Because the latitude and longitude are determined, the vector data can correspondingly change along with the change of the resolution when the original map is displayed at the front end, and the problem of distortion can not occur.
And generating vector data under a geographic coordinate system according to the region selection message in a specific mode of generating the vector data under the geographic coordinate system according to the information of the target region of the region selection message.
Illustratively, according to the relevant parameters of the target area of the area selection message: longitude range (100 ° E,103 ° E); latitude range (35 ° N,36 ° N), vector data of the region boundary of the target region is generated: { (100 ° E,35 ° N), (103 ° E,36 ° N), (100 ° E,36 ° N) }.
According to the region selection message, vector data under a geographic coordinate system are generated, a data basis is provided for subsequently determining target raster data corresponding to the region selection message, and meanwhile, the vector data under the geographic coordinate system cannot be distorted, so that the region selection accuracy is ensured, and the target map accuracy is ensured.
Step 206: and traversing the original raster data according to the vector data, and determining target raster data corresponding to the region selection message.
The target raster data is raster data of the target area.
Traversing the original raster data according to the vector data, and determining target raster data corresponding to the region selection message.
Illustratively, according to the vector data { (100 ° E,35 ° N), (103 ° E,36 ° N), (100 ° E,36 ° N) }, the original grid data of the a-place satellite cloud map is traversed, and the grid data in the target area in the grid data of the a-place satellite cloud map is determined as the target grid data corresponding to the area selection message.
According to the vector data, the original raster data is traversed, the target raster data corresponding to the area selection message is determined, the area selection is executed at the client, repeated data transmission between the client and the server is avoided, the execution flow is simplified, the cost and the time consumption are saved, and the map display efficiency is improved.
Step 208: and rendering the target raster data and displaying a target map.
The target map is a digital map of the target area.
And rendering the target raster data, wherein the specific mode is that a preset renderer is used for rendering the target raster data. The renderer is a preset rendering tool for map rendering on the client, such as a Canvas renderer. And displaying the target map, wherein the specific mode is that the target map is displayed at the front end.
Illustratively, the target raster data is rendered using a Canvas renderer, with the target map (satellite cloud map of A ground in the area of 100-103 degrees east longitude and 35-36 degrees north latitude) displayed at the front end.
In an embodiment of the present specification, an original map and a region selection message for the original map are obtained, where the original map includes original raster data, vector data in a geographic coordinate system is generated according to the region selection message, the original raster data is traversed according to the vector data, target raster data corresponding to the region selection message is determined, the target raster data is rendered, and a target map is displayed. The region selection is executed at the client, so that repeated data transmission between the client and the server is avoided, the execution flow is simplified, the cost and the time consumption are saved, and the map display efficiency is improved. The original raster data are traversed according to the generated vector data in the geographic coordinate system, and the vector data in the geographic coordinate system cannot be distorted, so that the accuracy of region selection is ensured, and the accuracy of a target map is ensured.
Optionally, the obtaining of the original map in step 202 includes the following specific steps:
sending a map acquisition request to a server, wherein the map acquisition request carries a map identifier of an original map;
and receiving the original raster data of the original map searched by the server according to the map identification.
The server is a server of the network geographic information system. Such as a GeoServer server. The map acquisition request is a data request instruction generated by the client according to the map identifier of the original map. After receiving the map acquisition request, the server searches according to the map identifier of the original map carried by the map acquisition request to obtain the original raster data of the corresponding original map. Since the raster data is stored in a distributed manner, the server needs to obtain the original raster data from the distributed database.
And sending a map acquisition request to the server side, wherein the map acquisition request is sent to the server side through a preset map acquisition interface. Further, the predetermined map obtaining Interface is a predetermined Application Programming Interface (API). Similarly, the original raster data of the original map searched by the server according to the map identifier is received, and the specific mode is that the original raster data of the original map searched by the server according to the map identifier is received through a preset map acquisition interface.
Illustratively, a Map acquisition Request Map _ Request is generated according to a Map identifier "satellite cloud Map of a place a" of an original Map, the Map acquisition Request Map _ Request is sent to a GeoServer server through a preset Map acquisition interface, and raster data of the satellite cloud Map of the place a, which is searched by the GeoServer server from a distributed database according to the Map identifier, is received.
The method comprises the steps of sending an acquisition request of a map identification map carrying an original map to a server, and then receiving original raster data of the original map searched by the server according to the map identification. The storage space of the client is saved, the resources of the client are saved, and meanwhile, a data basis is provided for the follow-up determination of the target raster data.
Optionally, after receiving the original raster data of the original map found by the server according to the map identifier, the method further includes the following specific steps:
rendering the original raster data and displaying an original map;
correspondingly, the step 202 of obtaining the area selection message for the original map includes the following specific steps:
identifying an area selection operation performed by a user on an original map;
and obtaining the area selection message according to the identification result of the area selection operation.
And performing corresponding area selection operation on the original map at the front end for the user by aiming at the area selection operation performed by the user on the original map. The operation of selecting an area may be performed by the user by clicking on the original map displayed at the front end, the operation of selecting an area on the original map by inputting the relevant parameter of the target area at the front end, or the operation of selecting an area by circling on the original map displayed at the front end, which is not limited herein.
The recognition result of the region selection operation is a region selection operation performed by the front-end recognition user, and the obtained recognition result includes information of the target region, for example, position information of the target region, boundary information of the target region, and the like.
Rendering the original raster data, wherein the specific mode is that a preset renderer is used for rendering the original raster data. The renderer is a preset rendering tool for map rendering on the client, such as a Canvas renderer. And displaying the original map, wherein the specific mode is that the original map is displayed at the front end.
Illustratively, the grid data of the satellite cloud map of the A place is rendered by a Canvas renderer, and the original map is displayed at the front end: satellite cloud of the a site.
And obtaining the area selection message according to the identification result of the area selection operation, wherein the specific mode is to obtain the area selection message according to the information of the target area in the identification result of the area selection operation.
Illustratively, the resolution of the front end is 1920 × 1080, identifying the operation of the user for area selection by circling on the original map displayed by the front end: the pixel coordinate of the rectangular circle selection starting point is (1023,548), the pixel coordinate of the end point is (1264,680), and the area selection operation executed on the original map obtains an area selection message: relevant parameters of the target area (1023, 548), (1264, 548), (1264, 680), (1023, 680).
The original raster data is rendered, the original map is displayed, the region selection operation executed by a user aiming at the original map is identified, and the region selection message is obtained according to the identification result of the region selection operation. The original raster data are rendered and then displayed, so that a user can execute region selection operation according to the displayed original map to obtain an identification result to obtain a region selection message.
Optionally, identifying an area selection operation performed by a user with respect to the original map includes the following specific steps:
in the event that a user trigger region selection tool is identified, tracking detects a region selection operation performed by the user on the original map using the region selection tool.
The area selection tool is an area selection tool preset in a target area at the front end, the regional selection tool is used for executing pixel point tracking, and specifically, a user determines the target area by clicking and moving a cursor on an original map displayed at the front end. The regional selection tool tracks the pixel point of the cursor to obtain the information of the target region. The trigger area selection tool may be triggered by a cursor click, or may be triggered by inputting a related trigger instruction, which is not limited herein.
The method comprises the following steps of tracking and detecting the area selection operation executed by a user on the original map by using an area selection tool, wherein the specific mode is that a pixel point where a cursor of the area selection operation executed by the user on the original map by using the area selection tool is located is tracked and detected.
Illustratively, the user determines the target area by clicking a visual area selection tool preset at the front end and then clicking and moving the cursor on the original map. In the case that the user is identified to trigger the area selection tool, the pixel points (1075, 500), (1104, 510), (1280, 560), … …, (1741, 740) where the detection cursor is located are tracked, and the information of the target area is obtained.
The method comprises the steps of tracking and detecting an area selection operation performed on an original map by a user by using an area selection tool in the case that the user is identified to trigger the area selection tool. The accuracy of the region selection message is guaranteed, the accuracy of subsequently generated vector data is guaranteed, the accuracy of subsequently obtained target raster data is guaranteed, and the accuracy of a subsequently displayed target map is further guaranteed.
Optionally, the raw grid data comprises geographic coordinates;
correspondingly, before rendering the original raster data, the method further comprises the following specific steps:
and converting the coordinate system of the original raster data from a geographic coordinate system to a pixel coordinate system by using a preset coordinate conversion rule.
The raster data comprises geographical coordinates, and specifically, any pixel of the raster data is recorded with the geographical coordinates. When the original grid data are collected, the collected geographic coordinates need to be recorded, so that the grid data can be spliced according to the geographic coordinates subsequently to generate an original map. The original grid data are all provided with corresponding geographic coordinates, and the specific method for calculating the original grid data is that a map acquisition device acquires a digital map, and the geographic coordinates are recorded, for example, the four corner coordinates of the digital map are (100 ° E,35 ° N), (101 ° E,36 ° N), (100 ° E,36 ° N), the digital map is gridded and cut into 512 × 512 pixels, and the geographic coordinates of each pixel can be calculated, that is, the original grid data include the geographic coordinates. Similarly, for a digital map generated by using various geographic data, the geographic coordinates of the digital map can be manually calibrated, and the geographic coordinates of each pixel are calculated, namely the original grid data comprises the geographic coordinates.
The preset coordinate conversion rule is a coordinate conversion rule between a geographic coordinate system and a pixel coordinate system set according to the display parameters. For example, for a digital map with geographic coordinates of (100 ° E,35 ° N), (101 ° E,36 ° N), (100 ° E,36 ° N), where the original raster data is divided into 512 × 512 pixels and the display parameters of the front end are 1920 × 1080, it is necessary to convert the geographic coordinates of the original raster data into pixel coordinates so as to identify the region selection operation performed by the user on the original map to obtain the information of the target region.
Illustratively, the display parameter is 1920 × 1080, the original raster data is raster data obtained by cutting 512 × 512 pixels on a digital map of (100 ° E,35 ° N), (101 ° E,36 ° N), (100 ° E,36 ° N), the preset coordinate transformation rule is that (100 ° E,35 ° N) is set as an origin (0,0), (101 ° E,36 ° N) is set as 1920,1080), and the geographic coordinate distance between every two pixels is (1/1920 °,1/1080 °), that is, one pixel corresponds to 3.75 × 2.1 pixels.
Specifically, the execution code of the embodiment of the method is as follows:
exportconstgetPixelFromCoordinate = (coordinates, OLMap) => {
let result = []
if (coordinates &&OLMap) {
result = coordinates.map(item =>OLMap.getPixelFromCoordinate(item))
}
return result
}
exportconstsetLayerClipRender = (layer, bound, OLMap) => {
if (!(layer && bound &&OLMap)) return
the method comprises the steps of converting a coordinate system of original raster data from a geographic coordinate system to a pixel coordinate system by utilizing a preset coordinate conversion rule, so that a data base is laid for the subsequent identification of area selection operation executed by a user aiming at an original map, and area selection information is obtained according to an identification result of the area selection operation, so that the coordinate system is unified, the accuracy of the obtained area selection information is ensured, the accuracy of vector data is ensured, the accuracy of target raster data is ensured, and the accuracy of a rendered target map is ensured.
Optionally, before converting the coordinate system of the original raster data from the geographic coordinate system to the pixel coordinate system by using a preset coordinate conversion rule, the method further includes the following specific steps:
acquiring an initial coordinate conversion rule;
and adjusting the initial coordinate conversion rule according to the preset display parameters to obtain the preset coordinate conversion rule.
The initial coordinate conversion rule is a coordinate conversion rule between a geographic coordinate system and a pixel coordinate system set according to the initial display parameters. The initial display parameters may be default display parameters of the original map, or may be display parameters of the front-end display device, which is not limited herein.
The preset display parameters are display parameters set according to display requirements, for example, if an original map needs to be displayed on a specific interface of the front-end display device, the display parameters are set according to the specific interface. The display requirement may be zooming the original map, cropping the original map, etc. And adjusting the initial coordinate conversion rule according to the preset display parameters, so that the obtained preset coordinate conversion rule can correspondingly process the original raster data, and an original map meeting the display requirement is rendered.
Illustratively, the initial display parameter is 1920 × 1080, the original raster data is raster data obtained by cutting (100 ° E,35 ° N), (101 ° E,36 ° N), (100 ° E,36 ° N) by 512 × 512 pixels on a digital map, and the initial coordinate conversion rule is: the pixel coordinates of (100 ° E,35 ° N) are set as the origin (0,0), and the pixel coordinates of (101 ° E,36 ° N) are set as (1920,1080). Presetting display parameters to be 1080 multiplied by 720, adjusting the initial coordinate conversion rule according to the preset display parameters to obtain a preset coordinate conversion rule: the pixel coordinates of (100 ° E,35 ° N) are set as the origin (0,0), and the pixel coordinates of (101 ° E,36 ° N) are set as (1080,720). The geographic coordinate distance between every two pixel points is (1/1080 degree, 1/720 degree), namely one pixel corresponds to 2.1 multiplied by 1.4 pixel points.
Specifically, the execution code of the embodiment of the method is as follows:
layer.on('prerender', event => {
letctx = event.context
let [start = [], ...others] = getPixelFromCoordinate(bound, OLMap)
letstartPixel = getRenderPixel(event, start)
// console.log('prerender', 'start', start,'startPixel', startPixel, 'others', others)
ctx.save()
ctx.beginPath()
ctx.moveTo(startPixel[0], startPixel[1])
others.forEach(element => {
let pixel = getRenderPixel(event, element)
ctx.lineTo(pixel[0], pixel[1])
})
ctx.closePath()
ctx.clip()
})
the initial coordinate conversion rule is adjusted according to the preset display parameters by obtaining the initial coordinate conversion rule, so that the preset coordinate conversion rule is obtained, the display of the original map and the display of the subsequent target map are more adaptive, and the user experience is improved.
Optionally, rendering the target raster data and displaying the target map includes the following specific steps:
rendering the target raster data to obtain a target layer corresponding to a target map;
and displaying the target map layer on the original map.
The target map layer is a target map of a specific map layer obtained by splicing the target raster data.
And rendering the target raster data in a specific mode of utilizing a preset renderer to render the target raster data. The renderer is a preset rendering tool for map rendering on the client, such as a Canvas renderer. And displaying the target layer on the original map in a specific mode of covering and displaying the target layer on the original map. The overlay display may be displayed to completely overlay the original map or may be displayed to overlay the target area on the original map.
Exemplarily, a Canvas renderer is used for rendering the target raster data to obtain a target layer corresponding to a target map (a satellite cloud map in an area with east longitude 100-103 degrees and north latitude 35-36 degrees), and the target layer is displayed on an original map (the satellite cloud map of the A) at the front end in a covering mode.
And rendering the target raster data to obtain a target layer corresponding to the target map, and displaying the target layer on the original map. The user can visually see the visual target layer to perform subsequent further analysis and processing, and the user experience is improved.
Optionally, step 204 includes the following specific steps:
determining area boundary pixel points and an area boundary time sequence corresponding to a target area according to the area selection message, wherein the target area is an area corresponding to the area selection message in the original map;
generating a region selection track according to the region boundary pixel points and the region boundary time sequence;
and extracting the geographic information of the area selection track to obtain vector data under a geographic coordinate system.
The boundary information of the target region in the region selection message comprises region boundary pixel points and region boundary time sequences, the region boundary pixel points are pixel points of the boundary points of the target region at the front end, and the region boundary pixel points comprise pixel coordinates of the region boundary pixel points. The region boundary timing sequence is a point selection timing sequence of region boundary pixel points when a user performs region selection operation on the original map. The region selection track is a selection track of a target region obtained after region boundary pixel points are connected according to a region boundary time sequence. The geographic information of the area selection track is geographic coordinates corresponding to pixel coordinates of the area selection track, and the corresponding mode is conversion by using a preset coordinate conversion rule.
And generating a region selection track according to the region boundary pixel points and the region boundary time sequence, wherein the specific mode is that the region boundary pixel points are connected according to the region boundary time sequence to obtain the region selection track. Extracting geographic information of the area selection track, and obtaining vector data under a geographic coordinate system. Furthermore, the pixel coordinates of the area boundary pixel points of the area selection track are converted into geographic coordinates by using a preset coordinate conversion rule, so that geographic information of the area selection track is obtained, and vector data under a geographic coordinate system is obtained.
Illustratively, the area boundary pixels are P1, P2, P3, P4, and P5. Using a preset coordinate transformation rule { setting pixel coordinates of (100 ° E,35 ° N) as an origin (0,0), (101 ° E,36 ° N) as (1920,1080), and a geographic coordinate distance between each two pixel points as (1/1920 °,1/1080 °), i.e. one pixel corresponds to 3.75 × 2.1 pixel points }, pixel coordinates { P1 (1075, 500), P2 (1104, 510), P3 (1280, 560), P4 (1580,600), P5 (1075, 500) } of area boundary pixel points of the area selection track are transformed into geographic coordinates { P1 (100.54 ° E,35.57 ° N), { P2 (100.57 ° E,35.58 ° N), } P3 (100.59 ° E, 84 zft N), { (5272, 3572 ° N3524 ° E,35.58 ° N) }, (3454 zxft 3757 × 6284) }, (3435 xft × N) 3527, 35, 4235 xft, 4235 ° N), and (3435 × 6284) } N, 3435 xft × N, and the area selection track data under the area selection track is obtained.
According to the region selection message, determining region boundary pixel points and region boundary time sequences corresponding to a target region, wherein the target region is a region corresponding to the region selection message in the original map, generating a region selection track according to the region boundary pixel points and the region boundary time sequences, extracting geographic information of the region selection track, and obtaining vector data under a geographic coordinate system. The method comprises the steps of generating a region selection track by determining region boundary pixel points and region boundary time sequences corresponding to a target region, ensuring the accuracy of the generated region selection track, extracting geographic information of the region selection track, obtaining vector data under a geographic coordinate system, converting the coordinate system to obtain accurate vector data, ensuring the accuracy of target region determination, ensuring the accuracy of subsequently obtained target raster data, and further ensuring the accuracy of a displayed target map.
Optionally, the raw grid data comprises a plurality of raw grid cells, the raw grid cells comprising geographic coordinates;
correspondingly, step 206 includes the following specific steps:
traversing the plurality of original grid units according to the vector data, and determining that the geographic coordinates in the original grid data accord with the target grid data of the vector data.
The original grid unit is a matrix unit obtained by meshing and cutting the original map, namely an original grid pixel. The original grid cell is recorded with attribute values, including color and geographic coordinates.
Traversing the plurality of original grid cells according to the vector data, wherein the specific mode is that traversing the geographic coordinates of the plurality of original grid cells according to the vector data. And determining target raster data of which the geographic coordinates accord with the vector data in the original raster data, wherein the specific mode is that an original raster unit of which the geographic coordinates are in the target area range corresponding to the vector data in the original raster data is determined as a target raster unit, and the target raster data is obtained.
Illustratively, according to vector data { (100.54 ° E,35.57 ° N), (100.57 ° E,35.58 ° N), (100.59 ° E,35.59 ° N), (100.78 ° E,35.61 ° N), (100.54 ° E,35.57 ° N) }, traversing the geographic coordinates of the original grid cell in the original grid data of the satellite cloud map of a place, determining the original grid cell of the original grid data whose geographic coordinates are within the target area range corresponding to the vector data as the target grid cell, and obtaining the target grid data.
And traversing the plurality of original grid units according to the vector data, and determining that the geographic coordinates in the original grid data accord with the target grid data of the vector data. The accuracy of determining the target area is guaranteed, the accuracy of the obtained target raster data is guaranteed, and the accuracy of the displayed target map is further guaranteed.
Optionally, before step 202, the following specific steps are further included:
receiving a map selection instruction input by a user on a front-end map editing interface, wherein the map selection instruction carries a map identifier of an original map;
correspondingly, step 202 includes the following specific steps:
and acquiring the original map according to the map identification.
The front-end map editing interface is a map editing interface of a geographic information system or a network geographic information system on the front end. The map selection instruction is an instruction generated after a user selects a map on the front-end map editing interface and sent to the client, and the mode of inputting the map selection instruction may be inputting a map identifier of an original map, inputting map parameters of the original map, or inputting the map selection instruction by selecting the original map from a map to be selected, which is not limited herein.
The original map is obtained according to the map identifier, which may be an original map stored on a client side obtained according to the map identifier, or an original map obtained from a server side obtained according to the map identifier, and is not limited herein.
Illustratively, a user selects an original Map (a-site satellite cloud Map) from to-be-selected maps (a-site satellite cloud Map, a B-site satellite cloud Map, and a C-site satellite cloud Map) on a front-end Map editing interface to input a Map selection instruction Map _ Select, and receives the Map selection instruction Map _ Select, wherein the Map selection instruction Map _ Select carries a Map identifier "a-site satellite cloud Map" of the original Map, and the original Map (a-site satellite cloud Map) stored on a client is acquired according to the Map identifier "a-site satellite cloud Map".
Receiving a map selection instruction input by a user on a front-end map editing interface, wherein the map selection instruction carries a map identifier of an original map, and acquiring the original map according to the map identifier. The user inputs a user selection instruction by providing the front-end editing interface, so that the original map is acquired, the acquisition of the original map is visual, the user experience is improved, meanwhile, the original map is acquired according to the map identification, and the accuracy of acquiring the original map is improved.
Optionally, step 208 includes the following specific steps:
and rendering the target raster data to a front-end map editing interface, and displaying the target map on the front-end map editing interface.
And rendering the target raster data to a front-end map editing interface, and displaying the target map on the front-end map editing interface. The renderer is a preset rendering tool for map rendering on the client, such as a Canvas renderer. Displaying the target map by displaying the target map at the front end
Illustratively, the target raster data is rendered to a front-end map editing interface using a Canvas renderer, where the target map (satellite clouds in the area of 100-103 degrees east longitude and 35-36 degrees north latitude) is displayed.
The method has the advantages that the target raster data are rendered to the front-end map editing interface, the target map is displayed on the front-end map editing interface, and the rendering and the display are performed on the front-end map interface, so that the rendering display of the original map is visualized on the map editing interface, a user can conveniently and directly edit the rendered and displayed target map on the map editing interface, the editing and displaying efficiency is improved, and the user experience is improved.
Optionally, after step 208, the following specific steps are further included:
and clearing the displayed target map under the condition that a preset reset condition is met.
The preset reset condition is a preset reset map display condition, and may be a preset reset display time, for example, reset display is performed after 5s, and the displayed target map is cleared; or trigger a reset display condition for a preset user, for example, recognizing that the user triggers a reset display through a front end, and clearing a displayed target map; the number of target maps may be preset, for example, after 5 target maps are displayed, the displayed target maps may be cleared, which is not limited herein.
Specifically, the execution code of the embodiment of the method is as follows:
layer.on('postrender', event => {
letctx = event.context
ctx.restore()
})
under the condition that the preset reset condition is met, the displayed target map is cleared, the generated data volume of the client is reduced, resources and cost are saved, the normal operation of the client is ensured, the user can conveniently perform further analysis processing on the original map, a new target map is displayed, and the map display efficiency is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for displaying a remote sensing map according to an embodiment of the present specification, where the method for displaying a remote sensing map is applied to a remote sensing map client, and specifically includes the following steps.
Step 302: and acquiring an original remote sensing map and a region selection message aiming at the original remote sensing map, wherein the original remote sensing map comprises original remote sensing raster data.
Step 304: and generating remote sensing vector data under a geographic coordinate system according to the region selection message.
Step 306: and traversing the original remote sensing raster data according to the remote sensing vector data, and determining target remote sensing raster data corresponding to the region selection message.
Step 308: rendering the target remote sensing raster data and displaying the target remote sensing map.
The remote sensing map client is a client of a geographic information system of a remote sensing map or a network geographic information system.
The original remote sensing map is a digital remote sensing map selected by an area to be executed, and the original remote sensing map can be stored in a client of a geographic information system or a network geographic information system of the remote sensing map, and also can be stored in a server of the geographic information system or the network geographic information system of the remote sensing map. The original map is a digital remote sensing map which is directly acquired in advance through remote sensing equipment. The original remote sensing raster data is geographic data represented by a two-dimensional matrix after gridding and cutting an image of an original remote sensing map, and attribute values of the original remote sensing raster data comprise colors, geographic coordinates and the like.
The area selection message is determined according to area selection of a target area on the original remote sensing map.
The remote sensing vector data is vector data of a region boundary of the target region. The remote sensing vector data is vector data in a geographic coordinate system. The target raster data is remote sensing raster data of a target area. The target remote sensing map is a digital remote sensing map of a target area.
In this embodiment, a specific implementation manner of steps 302 to 308 is the same as that in the embodiment of fig. 2, and is not described herein again.
In the embodiment of the specification, an original remote sensing map and a region selection message for the original remote sensing map are obtained, wherein the original remote sensing map comprises original remote sensing raster data, remote sensing vector data under a geographic coordinate system are generated according to the region selection message, the original remote sensing raster data are traversed according to the remote sensing vector data, target remote sensing raster data corresponding to the region selection message are determined, the target remote sensing raster data are rendered, and the target remote sensing map is displayed. The area selection is executed at the remote sensing map client, so that repeated data transmission between the remote sensing map client and the remote sensing map server is avoided, the execution flow is simplified, the cost and the time consumption are saved, and the display efficiency of the remote sensing map is improved. The original remote sensing raster data are traversed according to the generated remote sensing vector data in the geographic coordinate system, and the remote sensing vector data in the geographic coordinate system cannot be distorted, so that the accuracy of region selection is ensured, and the accuracy of a target remote sensing map is ensured.
Optionally, after step 310, the following specific steps are further included;
acquiring a function instruction, wherein the function instruction is correspondingly generated after a user is identified to trigger a preset function control on a front-end map editing interface;
modifying the attribute value of the target remote sensing raster data according to the functional instruction;
rendering the modified target remote sensing raster data, and displaying the functional remote sensing map.
The front-end map editing interface is a map editing interface of a geographic information system of the front-end remote sensing map or a network geographic information system. The function control is a visual control of a map processing function preset on the front-end map editing interface, for example, the map processing function is a specific area highlighting (extracting) function, and the corresponding specific area displaying (extracting) function control is, for example, a function control for extracting a water area, such as a function control for extracting a farmland area; the map processing function is a feature-specific highlighting (extracting) function, and a corresponding feature-specific highlighting (extracting) control, such as a building extracting function control; the map processing function is a plurality of feature classification display functions and corresponding feature classification function controls, such as feature classification function controls.
The function instruction is an instruction for correspondingly realizing the map processing function, and the function instruction carries the category identification of the corresponding map processing function.
The functional remote sensing map is a digital map of a target area processed by a map processing function.
And modifying the attribute value of the target remote sensing raster data according to the function instruction, wherein the specific mode is that a processing area corresponding to the map processing function in the target remote sensing raster data is determined according to the class identifier of the map processing function carried by the function instruction, and the attribute value of the target remote sensing raster data corresponding to the processing area is modified. Further, a processing area corresponding to the map processing function in the target remote sensing raster data is determined, specifically, a preset area identification algorithm is used for determining the processing area corresponding to the map processing function in the target remote sensing raster data, and the area identification algorithm can be a neural network model and can be a color identification algorithm. The color identification algorithm is to identify a target color and determine target remote sensing raster data with similar colors as a processing area, for example, the processing area is a water area, blue is determined as a target color, and the target remote sensing raster data with the color similar to the blue is the water area. Furthermore, the attribute value of the target remote sensing raster data corresponding to the modification processing area is the color of the target remote sensing raster data corresponding to the modification processing area.
Illustratively, the functional instruction is a Farmland Area highlighting function, the functional instruction carries a class identifier 'farm _ Area _ Extraction' of the Farmland Area highlighting function, the Farmland Area is determined from the target remote sensing data according to the class identifier 'farm _ Area _ Extraction', the color of the target remote sensing raster data corresponding to the Farmland Area is modified to be 'yellow', the modified target remote sensing raster data is rendered, and the functional remote sensing map is displayed. The functional instruction is a multi-feature Classification display function, the functional instruction carries a class identifier 'Tertain _ Classification' of the multi-feature Classification display function, a processing area corresponding to each feature (feature 1, feature 2 and feature 3) is determined from the target remote sensing data according to the class identifier 'Tertain _ Classification', the color of the target remote sensing raster data corresponding to the processing area of the modified feature 1 is 'red', the color of the target remote sensing raster data corresponding to the processing area of the modified feature 1 is 'blue', the color of the target remote sensing raster data corresponding to the processing area of the modified feature 1 is 'green', and the modified target remote sensing raster data is rendered to display a functional remote sensing map.
And acquiring a functional instruction, wherein the functional instruction is correspondingly generated after a user is identified to trigger a preset functional control on a front-end map editing interface, according to the functional instruction, the attribute value of the target remote sensing raster data is modified, the modified target remote sensing raster data is rendered, and the functional remote sensing map is displayed. By identifying the trigger function control and generating the function instruction, the attribute value of the target remote sensing raster data is modified, further rendering and displaying are carried out, the map processing function triggered by the user can be aimed at the displayed functional remote sensing map, and the user experience is improved.
The following description will further explain the map display method provided in this specification by taking an application of the map display method in an aerial remote sensing map as an example, with reference to fig. 4. Fig. 4 shows a processing flow chart of a map display method applied to an aerial remote sensing map according to an embodiment of the present specification, and specifically includes the following steps.
Step 402: sending a map acquisition request to a server, wherein the map acquisition request carries a map identifier of an original aerial remote sensing map;
the embodiment of the specification is applied to the Openlayers client of the network geographic information system. The service end is GeoServer in the network geographic information system.
Step 404: receiving original raster data of an original aerial remote sensing map searched by a server according to the map identification;
step 406: rendering the original raster data and displaying an original aerial remote sensing map;
the rendering mode is to use Canvas renderer to render.
Step 408: under the condition that a user triggers a region selection tool preset at the front end is identified, tracking and detecting a region selection operation executed by the user on the original aerial photography remote sensing map by using the region selection tool;
step 410: obtaining a region selection message according to the identification result of the region selection operation;
step 412: determining regional boundary pixel points and regional boundary time sequences corresponding to a target region according to the regional selection message, wherein the target region is a region corresponding to the regional selection message in the original aerial photography remote sensing map;
step 414: connecting region boundary pixel points according to a region boundary time sequence to obtain a region selection track;
step 416: extracting geographic information of the area selection track to obtain vector data under a geographic coordinate system;
step 418: traversing a plurality of original raster units according to the vector data, and determining target raster data of which the geographic coordinates in the original raster data conform to the vector data;
step 420: rendering the target raster data to obtain a target layer corresponding to the target aerial remote sensing map;
the rendering mode is to use Canvas renderer to render.
Step 422: displaying a target map layer on an original aerial remote sensing map;
the user can trigger a function control preset on the front-end map editing interface to realize a further map processing function on the target map layer.
Step 424: and clearing the displayed target image layer under the condition of meeting the preset reset condition.
In the embodiment of the specification, an obtaining request of a map identification map carrying an original aerial photography remote sensing map is sent to a server, and then original raster data of the original aerial photography remote sensing map searched by the server according to the map identification is received. The storage space of the client is saved, the resources of the client are saved, and meanwhile, a data basis is provided for the subsequent determination of the target raster data; under the condition that a region selection tool preset at the front end of a user trigger is identified, the region selection operation executed by the user on the original aerial photography remote sensing map by using the region selection tool is tracked and detected, so that the accuracy of the region selection message is ensured, the accuracy of subsequently generated vector data is ensured, the accuracy of subsequently obtained target raster data is ensured, and the accuracy of a subsequently displayed target map is further ensured; according to the regional boundary time sequence, regional boundary pixel points are connected to obtain a regional selection track, so that the accuracy of the generated regional selection track is guaranteed, the geographic information of the regional selection track is extracted to obtain vector data under a geographic coordinate system, the coordinate system is converted to obtain accurate vector data, the accuracy of determining a target region is guaranteed, the accuracy of subsequently obtained target raster data is guaranteed, and the accuracy of a displayed target aerial remote sensing map is further guaranteed; traversing a plurality of original grid units according to the vector data, determining target grid data of which the geographic coordinates in the original grid data conform to the vector data, ensuring the accuracy of determining a target area, ensuring the accuracy of the obtained target grid data and further ensuring the accuracy of the displayed target aerial remote sensing map; rendering the target raster data to obtain a target layer corresponding to the target aerial remote sensing map, and displaying the target layer on the original aerial remote sensing map, so that a user can visually see the visual target layer to perform subsequent further analysis processing, and user experience is improved; and under the condition of meeting the preset reset condition, the displayed target map layer is cleared, so that the generated data volume of the client is reduced, the resource and the cost are saved, the normal operation of the client is ensured, the user can conveniently perform further analysis processing on the original map, a new target aerial remote sensing map is displayed, and the display efficiency of the aerial remote sensing map is improved.
Fig. 5 is a schematic front-end display diagram illustrating a map display method applied to an aerial remote sensing map according to an embodiment of the present specification.
As shown in fig. 5, three functional controls of area selection, ground object classification, and change detection are set in a front-end map editing interface of an Openlayers client of a network geographic information system, and by performing area selection in advance, three functional controls of building extraction, water area extraction, and land parcel extraction are set in an area selection function. The user determines a rectangular target area on an original aerial remote sensing map, and area statistics are obtained by clicking and selecting buildings for extraction: type (2): building extraction, building number: 9, highlighting the buildings of the target area, displaying example data (an original aerial photography remote sensing map) at the lower left corner of a front-end map editing interface, and clearing the currently selected target area under the condition of meeting a preset resetting condition.
Fig. 6 is a schematic front-end display diagram of another map display method applied to an aerial remote sensing map according to an embodiment of the present specification.
As shown in fig. 6, three functional controls of area selection, ground object classification, and change detection are set in a front-end map editing interface of an Openlayers client of a network geographic information system, and by performing area selection in advance, three functional controls of building extraction, water area extraction, and land parcel extraction are set in an area selection function. The user determines a rectangular target area on an original aerial remote sensing map, and area statistics are obtained by clicking and selecting buildings for extraction: type (2): and extracting buildings, wherein the number of the buildings is 7, the total area of the buildings is calculated, the buildings in the target area are highlighted, sample data (an original aerial photography remote sensing map) is displayed at the lower left corner of the front-end map editing interface, and the currently selected target area is cleared under the condition that a preset resetting condition is met.
Fig. 7 illustrates a data flow diagram of a map display method according to an embodiment of the present specification.
As shown in fig. 7, the original raster data is obtained through the API of the server, an Openlayers client of the network geographic information system performs original map rendering by using a Canvas renderer, then performs region selection operation on the rendered original map to generate vector data, determines target raster data according to the vector data, renders the target raster data, and removes the rendered target raster data when a reset display condition is satisfied.
Corresponding to the above map display method embodiment, the present specification further provides a map display apparatus embodiment, and fig. 8 shows a schematic structural diagram of a map display apparatus provided in an embodiment of the present specification, where the map display apparatus is applied to a client. As shown in fig. 8, the apparatus includes:
a first obtaining module 802 configured to obtain an original map and a region selection message for the original map, wherein the original map includes original raster data;
a first generating module 804 configured to generate vector data in a geographic coordinate system according to the region selection message;
a first determining module 806, configured to traverse the original raster data according to the vector data, and determine target raster data corresponding to the region selection message;
a first display module 808 configured to render the target raster data and display the target map.
Optionally, the first obtaining module 802 is further configured to:
and sending a map acquisition request to the server, wherein the map acquisition request carries a map identifier of the original map, and receiving original raster data of the original map searched by the server according to the map identifier.
Optionally, the apparatus further comprises:
the rendering module is configured to render the original raster data and display an original map;
correspondingly, the first obtaining module 802 is further configured to:
and identifying the area selection operation performed by the user aiming at the original map, and obtaining the area selection message according to the identification result of the area selection operation.
Optionally, the first obtaining module 802 is further configured to:
in the event that a user trigger region selection tool is identified, a region selection operation performed by the user on the original map using the region selection tool is tracked and detected.
Optionally, the raw grid data comprises geographic coordinates;
correspondingly, the device also comprises:
and the coordinate conversion module is configured to convert the coordinate system of the original grid data from the geographic coordinate system to the pixel coordinate system by using a preset coordinate conversion rule.
Optionally, the apparatus further comprises:
and the coordinate conversion rule adjusting module is configured to acquire an initial coordinate conversion rule, and adjust the initial coordinate conversion rule according to a preset display parameter to obtain a preset coordinate conversion rule.
Optionally, the rendering module is further configured to:
and rendering the target raster data to obtain a target layer corresponding to the target map, and displaying the target layer on the original map.
Optionally, the first generating module 804 is further configured to:
according to the region selection message, determining region boundary pixel points and region boundary time sequences corresponding to a target region, wherein the target region is a region corresponding to the region selection message in the original map, generating a region selection track according to the region boundary pixel points and the region boundary time sequences, extracting geographic information of the region selection track, and obtaining vector data under a geographic coordinate system.
Optionally, the raw grid data comprises a plurality of raw grid cells, the raw grid cells comprising geographic coordinates;
correspondingly, the first determining module 806 is further configured to:
and traversing the plurality of original grid units according to the vector data, and determining that the geographic coordinates in the original grid data accord with the target grid data of the vector data.
Optionally, the apparatus further comprises:
the map selection instruction receiving module is configured to receive a map selection instruction input by a user on a front-end map editing interface, wherein the map selection instruction carries a map identifier of an original map;
correspondingly, the first obtaining module 802 is further configured to:
and acquiring the original map according to the map identification.
Optionally, the first display module 808 is further configured to:
and rendering the target raster data to a front-end map editing interface, and displaying the target map on the front-end map editing interface.
In an embodiment of the present specification, an original map and a region selection message for the original map are obtained, where the original map includes original raster data, vector data in a geographic coordinate system is generated according to the region selection message, the original raster data is traversed according to the vector data, target raster data corresponding to the region selection message is determined, the target raster data is rendered, and a target map is displayed. The region selection is executed at the client, so that repeated data transmission between the client and the server is avoided, the execution flow is simplified, the cost and the time consumption are saved, and the map display efficiency is improved. And traversing the original raster data according to the generated vector data under the geographic coordinate system, wherein the vector data under the geographic coordinate system cannot be distorted, so that the accuracy of region selection is ensured, and the accuracy of a target map is ensured.
The above is a schematic scheme of a map display device of the present embodiment. It should be noted that the technical solution of the map display device and the technical solution of the map display method belong to the same concept, and details that are not described in detail in the technical solution of the map display device can be referred to the description of the technical solution of the map display method.
Corresponding to the embodiment of the remote sensing map display method, the description also provides an embodiment of a remote sensing map display device, and fig. 9 shows a schematic structural diagram of the remote sensing map display device provided by the embodiment of the description, and the remote sensing map display device is applied to a remote sensing map client. As shown in fig. 9, the apparatus includes:
a second obtaining module 902 configured to obtain an original remote sensing map and a region selection message for the original remote sensing map, wherein the original remote sensing map includes original remote sensing raster data;
a second generating module 904 configured to generate remote sensing vector data in a geographic coordinate system according to the region selection message;
a second determining module 906, configured to traverse the original remote sensing raster data according to the remote sensing vector data, and determine target remote sensing raster data corresponding to the region selection message;
and a second display module 908 configured to render the target remote sensing raster data and display the target remote sensing map.
In the embodiment of the specification, an original remote sensing map and a region selection message for the original remote sensing map are obtained, wherein the original remote sensing map comprises original remote sensing raster data, remote sensing vector data under a geographic coordinate system are generated according to the region selection message, the original remote sensing raster data are traversed according to the remote sensing vector data, target remote sensing raster data corresponding to the region selection message are determined, the target remote sensing raster data are rendered, and the target remote sensing map is displayed. The area selection is executed at the remote sensing map client, so that repeated data transmission between the remote sensing map client and the remote sensing map server is avoided, the execution flow is simplified, the cost and the time consumption are saved, and the display efficiency of the remote sensing map is improved. And traversing the original remote sensing raster data according to the generated remote sensing vector data in the geographic coordinate system, wherein the remote sensing vector data in the geographic coordinate system is not distorted, so that the accuracy of region selection is ensured, and the accuracy of a target remote sensing map is ensured.
The foregoing is a schematic configuration of a remote sensing map display device of the present embodiment. It should be noted that the technical scheme of the remote sensing map display device and the technical scheme of the remote sensing map display method belong to the same concept, and details of the technical scheme of the remote sensing map display device, which are not described in detail, can be referred to the description of the technical scheme of the remote sensing map display method.
FIG. 10 illustrates a block diagram of a computing device 1000 provided in accordance with one embodiment of the present description. The components of the computing device 1000 include, but are not limited to, memory 1010 and a processor 1020. The processor 1020 is coupled to the memory 1010 via a bus 1030 and the database 1050 is used to store data.
Computing device 1000 also includes access device 1040, access device 1040 enabling computing device 1000 to communicate via one or more networks 1060. Examples of such networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 1040 may include one or more of any type of Network Interface (e.g., network Interface Controller) whether wired or Wireless, such as an IEEE802.12 Wireless Local Area Network (WLAN) Wireless Interface, a worldwide Interoperability for Microwave Access (Wi-MAX) Interface, an ethernet Interface, a Universal Serial Bus (USB) Interface, a cellular Network Interface, a bluetooth Interface, a Near Field Communication (NFC) Interface, and so forth.
In one embodiment of the present description, the above-described components of computing device 1000 and other components not shown in FIG. 10 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 10 is for purposes of example only and is not limiting as to the scope of the present description. Those skilled in the art may add or replace other components as desired.
Computing device 1000 may be any type of stationary or mobile computing device, including a mobile Computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop Computer or PC (Personal Computer). Computing device 1000 may also be a mobile or stationary server.
Wherein the processor 1020 is configured to execute computer-executable instructions that, when executed by the processor, implement the steps of the map display method or the remote sensing map display method described above.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solutions of the map display method and the remote sensing map display method described above belong to the same concept, and details of the technical solutions of the computing device, which are not described in detail, can be referred to the description of the technical solutions of the map display method or the remote sensing map display method described above.
An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which when executed by a processor, implement the steps of the map display method or the remote sensing map display method described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the map display method and the remote sensing map display method, and details of the technical solution of the storage medium, which are not described in detail, can be referred to the description of the technical solution of the map display method or the remote sensing map display method.
An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the map display method or the remote sensing map display method.
The above is an illustrative scheme of a computer program of the present embodiment. It should be noted that the technical solution of the computer program is the same as the technical solution of the map display method and the remote sensing map display method, and details that are not described in detail in the technical solution of the computer program can be referred to the description of the technical solution of the map display method or the remote sensing map display method.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts, but those skilled in the art should understand that the present embodiment is not limited by the described acts, because some steps may be performed in other sequences or simultaneously according to the present embodiment. Furthermore, those skilled in the art will appreciate that the embodiments described in this specification are presently preferred and that no acts or modules are required in the implementations of the disclosure.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present specification disclosed above are intended only to aid in the description of the specification. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the embodiments and the practical application, to thereby enable others skilled in the art to best understand and utilize the embodiments. The specification is limited only by the claims and their full scope and equivalents.

Claims (12)

1. A map display method is applied to a client and comprises the following steps:
obtaining an original map and a region selection message for the original map, wherein the original map comprises original raster data, the original raster data comprises a plurality of original raster units, and the original raster units comprise geographic coordinates;
determining a region boundary pixel point and a region boundary time sequence corresponding to a target region according to the region selection message, wherein the target region is a region corresponding to the region selection message in the original map;
generating a region selection track according to the region boundary pixel points and the region boundary time sequence;
extracting geographic information of the area selection track to obtain vector data under a geographic coordinate system;
traversing the plurality of original raster units according to the vector data, and determining that the geographic coordinates in the original raster data conform to the target raster data of the vector data;
and rendering the target raster data and displaying a target map.
2. The method of claim 1, the obtaining an original map, comprising:
sending a map acquisition request to a server, wherein the map acquisition request carries a map identifier of an original map;
and receiving the original raster data of the original map searched by the server according to the map identifier.
3. The method according to claim 2, after the receiving the original raster data of the original map found by the server according to the map identifier, further comprising:
rendering the original raster data and displaying the original map;
the obtaining of the area selection message for the original map comprises:
identifying a region selection operation performed by a user with respect to the original map;
and obtaining the area selection message according to the identification result of the area selection operation.
4. The method of claim 3, the identifying a region selection operation performed by a user with respect to the original map, comprising:
in the event that a user triggered a region selection tool is identified, tracking detects a region selection operation performed by the user on the original map using the region selection tool.
5. The method of claim 3, the raw raster data comprising geographic coordinates;
prior to the rendering the raw raster data, further comprising:
and converting the coordinate system of the original grid data from the geographic coordinate system to a pixel coordinate system by using a preset coordinate conversion rule.
6. The method of claim 5, further comprising, before said transforming the coordinate system of the raw grid data from the geographic coordinate system to a pixel coordinate system using a preset coordinate transformation rule:
acquiring an initial coordinate conversion rule;
and adjusting the initial coordinate conversion rule according to a preset display parameter to obtain a preset coordinate conversion rule.
7. The method of claim 3, the rendering the target raster data, displaying a target map, comprising:
rendering the target raster data to obtain a target layer corresponding to a target map;
and displaying the target map layer on the original map.
8. The method of any of claims 1-7, further comprising, prior to the obtaining an original map and the region selection message for the original map:
receiving a map selection instruction input by a user on a front-end map editing interface, wherein the map selection instruction carries a map identifier of an original map;
the obtaining of the original map includes:
and acquiring the original map according to the map identifier.
9. The method of claim 8, the rendering the target raster data, displaying a target map, comprising:
and rendering the target raster data to the front-end map editing interface, and displaying a target map on the front-end map editing interface.
10. A remote sensing map display method is applied to a remote sensing map client and comprises the following steps:
the method comprises the steps of obtaining an original remote sensing map and region selection information aiming at the original remote sensing map, wherein the original remote sensing map comprises original remote sensing raster data, the original remote sensing raster data comprises a plurality of original raster units, and the original raster units comprise geographic coordinates;
determining area boundary pixel points and area boundary time sequences corresponding to a target area according to the area selection message, wherein the target area is an area corresponding to the area selection message in the original remote sensing map;
generating a region selection track according to the region boundary pixel points and the region boundary time sequence;
extracting geographic information of the area selection track to obtain remote sensing vector data under a geographic coordinate system;
traversing the plurality of original raster units according to the remote sensing vector data, and determining target remote sensing raster data of which the geographic coordinates in the original remote sensing raster data accord with the remote sensing vector data;
rendering the target remote sensing raster data and displaying a target remote sensing map.
11. A computing device, comprising:
a memory and a processor;
the memory is for storing computer executable instructions and the processor is for executing the computer executable instructions which when executed by the processor implement the steps of the method of displaying a map of any one of claims 1 to 9 or the method of displaying a remotely sensed map of claim 10.
12. A computer readable storage medium storing computer executable instructions which, when executed by a processor, carry out the steps of the map display method of any one of claims 1 to 9 or the remote sensing map display method of claim 10.
CN202211307714.8A 2022-10-25 2022-10-25 Map display method, remote sensing map display method, computing device and storage medium Active CN115375868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211307714.8A CN115375868B (en) 2022-10-25 2022-10-25 Map display method, remote sensing map display method, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211307714.8A CN115375868B (en) 2022-10-25 2022-10-25 Map display method, remote sensing map display method, computing device and storage medium

Publications (2)

Publication Number Publication Date
CN115375868A CN115375868A (en) 2022-11-22
CN115375868B true CN115375868B (en) 2023-02-17

Family

ID=84074217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211307714.8A Active CN115375868B (en) 2022-10-25 2022-10-25 Map display method, remote sensing map display method, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN115375868B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117349398B (en) * 2023-10-08 2024-03-12 湖北美驿天程信息服务有限公司 GIS map data processing method, system, equipment and storage medium
CN117437654B (en) * 2023-12-19 2024-03-08 中国地质大学(武汉) Semantic recognition-based grid map analysis method, device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699439A (en) * 2013-12-30 2014-04-02 北京奇虎科技有限公司 Device and method for calculating tiles in electronic map visual area
CN104111951A (en) * 2013-04-19 2014-10-22 百度在线网络技术(北京)有限公司 Method and device for drawing grid pictures
CN106204734A (en) * 2015-04-30 2016-12-07 浙江宇视科技有限公司 The map integrated based on multi-source map generates method and device
US10930033B1 (en) * 2019-10-07 2021-02-23 Adobe Inc. Content aware tracing for generating vector drawings
CN112559667A (en) * 2021-02-23 2021-03-26 北京简巨科技有限公司 Map editor, map engine, map editing system, map editing method, and storage medium
CN113094454A (en) * 2021-02-22 2021-07-09 北京房江湖科技有限公司 Map data searching method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10446113B2 (en) * 2018-01-30 2019-10-15 ForeFlight LLC Method and system for inversion of raster images
CN112236764A (en) * 2018-04-11 2021-01-15 谷歌有限责任公司 Outside-view position indication for digital cartography
CN111858792A (en) * 2020-06-05 2020-10-30 北京空间飞行器总体设计部 Grid data front-end visual comprehensive analysis method
CN114297206B (en) * 2022-03-11 2022-05-31 浙江大学 Refined efficient dynamic tile map service publishing method, medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111951A (en) * 2013-04-19 2014-10-22 百度在线网络技术(北京)有限公司 Method and device for drawing grid pictures
CN103699439A (en) * 2013-12-30 2014-04-02 北京奇虎科技有限公司 Device and method for calculating tiles in electronic map visual area
CN106204734A (en) * 2015-04-30 2016-12-07 浙江宇视科技有限公司 The map integrated based on multi-source map generates method and device
US10930033B1 (en) * 2019-10-07 2021-02-23 Adobe Inc. Content aware tracing for generating vector drawings
CN113094454A (en) * 2021-02-22 2021-07-09 北京房江湖科技有限公司 Map data searching method and device
CN112559667A (en) * 2021-02-23 2021-03-26 北京简巨科技有限公司 Map editor, map engine, map editing system, map editing method, and storage medium

Also Published As

Publication number Publication date
CN115375868A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
US11869192B2 (en) System and method for vegetation modeling using satellite imagery and/or aerial imagery
CN115375868B (en) Map display method, remote sensing map display method, computing device and storage medium
US9613388B2 (en) Methods, apparatuses and computer program products for three dimensional segmentation and textured modeling of photogrammetry surface meshes
US10297074B2 (en) Three-dimensional modeling from optical capture
US9299157B2 (en) Scale-invariant superpixel region edges
US20190026400A1 (en) Three-dimensional modeling from point cloud data migration
CN109241846B (en) Method and device for estimating space-time change of remote sensing image and storage medium
EP2849117A1 (en) Methods, apparatuses and computer program products for automatic, non-parametric, non-iterative three dimensional geographic modeling
CN102959946A (en) Augmenting image data based on related 3d point cloud data
US20190051029A1 (en) Annotation Generation for an Image Network
CN111949817A (en) Crop information display system, method, equipment and medium based on remote sensing image
CN111667030A (en) Method, system and storage medium for realizing remote sensing image target detection based on deep neural network
CN112883900B (en) Method and device for bare-ground inversion of visible images of remote sensing images
CN113066112B (en) Indoor and outdoor fusion method and device based on three-dimensional model data
CN114723869B (en) Image processing method and device
CN115439753B (en) DEM-based steep river bank identification method and system
CN114648640B (en) Target object monomer method, device, equipment and storage medium
US11868377B2 (en) Systems and methods for providing geodata similarity
CN107480804B (en) Maze solving method based on line-surface spatial relation
JP7347696B2 (en) Training device, control method, and program
CN111612894B (en) Vegetation model auxiliary generation method and system based on aerial image and CIM
CN114418858A (en) Remote sensing image embedding method, device, equipment and storage medium
CN109460700B (en) Crop classification-oriented remote sensing data processing method and device
CN110910496B (en) VR natural environment automatic construction method based on big data and AI
KR102285801B1 (en) Producing method, display method and system for meteorological image using geo-kompsat-2a

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