CN111611338A - Dynamic map clipping method and device and storage medium - Google Patents
Dynamic map clipping method and device and storage medium Download PDFInfo
- Publication number
- CN111611338A CN111611338A CN202010414133.9A CN202010414133A CN111611338A CN 111611338 A CN111611338 A CN 111611338A CN 202010414133 A CN202010414133 A CN 202010414133A CN 111611338 A CN111611338 A CN 111611338A
- Authority
- CN
- China
- Prior art keywords
- map
- area
- user
- determining
- client
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2457—Query processing with adaptation to user needs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Remote Sensing (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Instructional Devices (AREA)
Abstract
The application discloses a dynamic cutting method and device for a map and a storage medium. The dynamic cutting method of the map comprises the following steps: receiving a map viewing request sent by a user from a client, wherein the map viewing request is used for indicating map data corresponding to a first map area requested to be viewed by the user; determining a second map area corresponding to the user according to the map viewing request, wherein the second map area is a map area which can be viewed in the authority of the user; and determining the map data returned to the client according to the first map area and the second map area.
Description
Technical Field
The present application relates to the field of map service technologies, and in particular, to a method and an apparatus for dynamically cutting a map, and a storage medium.
Background
The grid map service has become an important means for sharing maps on the internet, wherein some international map service standards including WMS/WMTS are not lacked, the map service is convenient to use, a user can acquire map data through a string of http post requests, and the grid map service has the key advantage of high browsing efficiency, so the grid map service is widely used for many years. Taking WMTS as an example, after the map service is released, a user can locate any global tile map through three parameters of X \ Y \ Z. However, once the map service is released, users having the authority of the service can browse all maps, and we cannot limit a certain user to access only a part of the content (on a spatial range) of the service. For example, we have a national traffic map, and hope that the a \ B \ C user sees the map of beijing and the D user sees the map of guangzhou, the existing method for limiting the user's viewing is to limit the user's permission, and the map data returned by the user is the data in the permission no matter what request the user sends. For example, the user requests map data of "guangzhou", but the map data within the user authority is "beijing", so that only the map data of the user "beijing" can be returned. For another example, the user requests to view the map data of "beijing oriented to the sun" and returns the map data of "beijing" to the user. And the map data which the client wants to view cannot be returned according to the requirements of the user and the authority of the user.
In order to solve the technical problem that the conventional method for limiting the user to view the map data in the prior art limits the permission of the user, the map data returned by the user is data in the permission no matter what request the user sends, and the map data which the user wants to view cannot be returned to the client according to the requirement of the user and the permission of the user, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the disclosure provides a dynamic cutting method, a dynamic cutting device and a storage medium of a map, so as to solve the technical problem that in the prior art, the existing method for limiting a user to view map data at least limits the authority of the user, the map data returned by the user is data in the authority no matter what request the user sends, and the map data which the user wants to view cannot be returned to the user according to the requirement of the user and the authority of the user.
According to an aspect of the embodiments of the present disclosure, there is provided a method for dynamically cropping a map, including: receiving a map viewing request sent by a user from a client, wherein the map viewing request is used for indicating map data corresponding to a first map area requested to be viewed by the user; determining a second map area corresponding to the user according to the map viewing request, wherein the second map area is a map area which can be viewed in the authority of the user; and determining the map data returned to the client according to the first map area and the second map area.
According to another aspect of the embodiments of the present disclosure, there is also provided a storage medium including a stored program, wherein the method of any one of the above is performed by a processor when the program is executed.
According to another aspect of the embodiments of the present disclosure, there is also provided a dynamic cropping device for a map, including: the receiving module is used for receiving a map viewing request sent by a user from a client, wherein the map viewing request is used for indicating map data corresponding to a first map area requested to be viewed by the user; the first determining module is used for determining a second map area corresponding to the user according to the map viewing request, wherein the second map area is a map area which can be viewed in the authority of the user; and the second determining module is used for determining the map data returned to the client according to the first map area and the second map area.
According to another aspect of the embodiments of the present disclosure, there is also provided a dynamic cropping device for a map, including: a processor; and a memory coupled to the processor for providing instructions to the processor for processing the following processing steps: receiving a map viewing request sent by a user from a client, wherein the map viewing request is used for indicating map data corresponding to a first map area requested to be viewed by the user; determining a second map area corresponding to the user according to the map viewing request, wherein the second map area is a map area which can be viewed in the authority of the user; and determining the map data returned to the client according to the first map area and the second map area.
Therefore, according to the technical scheme of the embodiment, firstly, the server can determine the first map area which the user wants to view through the map viewing request of the user received from the client. The server may then determine a second map region that the user can view (where the second map region may be preset by the publisher) based on the user's map view request. The final server can cut out the map data which can be finally viewed by the user of the user terminal device on the map according to the first map area and the second map area which are requested to be viewed by the user. The server achieves the technical effect of dynamically cutting the map according to the request of the user and the authority of the user limited by the publisher, so that the map data finally returned to the terminal equipment of the user is determined. The method further solves the technical problem that the map data returned by the user is data in the permission and cannot be returned to the map data which the user wants to view according to the requirement of the user and the permission of the user by limiting the permission of the user no matter what request is sent by the user in the conventional method for limiting the user to view the map data in the prior art.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
fig. 1 is a hardware block diagram of a computing device for implementing the method according to embodiment 1 of the present disclosure;
FIG. 2 is a schematic diagram of a system for dynamic cropping of a map according to embodiment 1 of the present disclosure;
fig. 3 is a flowchart illustrating a dynamic map cropping method according to a first aspect of embodiment 1 of the present disclosure;
fig. 4A is a schematic diagram of a first map region within a second map region according to the first aspect of embodiment 1 of the present disclosure;
fig. 4B is a schematic diagram of a first map region not within a second map region according to the first aspect of embodiment 1 of the present disclosure;
fig. 4C is a schematic diagram of an intersection of a first map region range and a second map region range according to the first aspect of embodiment 1 of the present disclosure;
fig. 5A is an exemplary schematic diagram of a first map area according to the first aspect of embodiment 1 of the present disclosure;
fig. 5B is an exemplary schematic diagram of a second map area according to the first aspect of embodiment 1 of the present disclosure;
fig. 5C is an exemplary diagram of map data returned to a client according to the first aspect of embodiment 1 of the present disclosure;
fig. 6 is a schematic diagram of a dynamic map cropping device according to a second aspect of embodiment 2 of the present disclosure; and
fig. 7 is a schematic diagram of a dynamic map cropping device according to the first aspect of embodiment 3 of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. It is to be understood that the described embodiments are merely exemplary of some, and not all, of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to the present embodiment, there is also provided a method of dynamic cropping of a map, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
The method embodiments provided by the present embodiment may be executed in a server or similar computing device. Fig. 1 shows a hardware configuration block diagram of a computing device for implementing a dynamic map cropping method. As shown in fig. 1, the computing device may include one or more processors (which may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory for storing data, and a transmission device for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computing device may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuitry may be a single, stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computing device. As referred to in the disclosed embodiments, the data processing circuit acts as a processor control (e.g., selection of a variable resistance termination path connected to the interface).
The memory may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the dynamic map cropping method in the embodiments of the present disclosure, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, implements the above-described dynamic map cropping method of the application program. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory located remotely from the processor, which may be connected to the computing device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device is used for receiving or transmitting data via a network. Specific examples of such networks may include wireless networks provided by communication providers of the computing devices. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computing device.
It should be noted here that in some alternative embodiments, the computing device shown in fig. 1 described above may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that FIG. 1 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in a computing device as described above.
Fig. 2 is a schematic diagram of a system for dynamic cropping of a map according to the present embodiment. Referring to fig. 2, the system includes: a terminal device 100 and a server 200 connected to the terminal device 100 via a network. Wherein the terminal device 100 can transmit a map viewing request of the user to the server 200 through the network. The above-described hardware configuration can be applied to both the terminal device 100 and the server 200 in the system.
Under the above operating environment, according to the first aspect of the present embodiment, a dynamic map cropping method is provided, which is implemented by the server 200 shown in fig. 2. Fig. 3 shows a flow diagram of the method, which, with reference to fig. 3, comprises:
s302: receiving a map viewing request sent by a user from a client, wherein the map viewing request is used for indicating map data corresponding to a first map area requested to be viewed by the user;
s304: determining a second map area corresponding to the user according to the map viewing request, wherein the second map area is a map area which can be viewed in the authority of the user; and
s306: and determining the map data returned to the client according to the first map area and the second map area.
Specifically, referring to fig. 2, in the case where the user has a request to view map data, the user may transmit a view request of a map to the server 200 through the terminal device 100, and then the server 200 receives a map view request transmitted from the client, wherein the map view request indicates map data corresponding to a first map area that the user requests to view (S302). Wherein the first map area may be for example but not limited to "jingji".
Further, the server 200 may determine a second map area corresponding to the user according to the map viewing request, wherein the second map area is a map area that can be viewed within the authority of the user (S304). For example, the server 200 may determine a second map region that the user can view based on the user's map viewing request. Wherein the second map area may be, for example, a viewable map area corresponding to the user set by a publisher publishing the map. In the present embodiment, the second map region may be, for example, but not limited to, "beijing".
Further, the server 200 may determine the map data returned to the client according to the first map area and the second map area (S306). According to the above, the first map area requested to be viewed by the user is "kyojin, and the map area that can be viewed within the authority of the user (i.e., the second map area) is" beijing ", so that the determined map data returned to the client is the map data corresponding to" beijing ". So that the server 200 can return to the map data that the user of the terminal device 100 can finally view, according to the user's request and the map area that the user can view.
As described in the background, once the map service is released, users having the right of the service can browse all maps, and we cannot limit a user to access only a part of the content (on a spatial scale) of the service. For example, we have a national traffic map, and hope that the a \ B \ C user sees the map of beijing and the D user sees the map of guangzhou, the existing method for limiting the user's viewing is to limit the user's permission, and the map data returned by the user is the data in the permission no matter what request the user sends. For example, the user requests map data of "guangzhou", but the map data within the user authority is "beijing", so that only the map data of the user "beijing" can be returned. For another example, the user requests to view the map data of "beijing oriented to the sun" and returns the map data of "beijing" to the user. The map data which the client wants to view cannot be returned according to the requirement of the user and the authority of the user limited by the publisher.
In view of this, according to the manner described above, first, the server 200 may receive a map viewing request sent from a client, where the map viewing request is used to indicate map data corresponding to a first map area requested to be viewed by a user. The server 200 may then determine a second map region that the user can view (where the second map region may be preset by the publisher) according to the map viewing request of the user. The end server 200 may determine to return map data that the user of the user terminal device 100 can finally view on the map according to the first map area and the second map area that the user requests to view. The server 200 achieves the technical effect of dynamically clipping the map by the user's request and the authority of the user limited by the publisher, thereby determining the map data finally returned to the terminal device 100 of the user. The method further solves the technical problem that the map data returned by the user is data in the permission and cannot be returned to the map data which the user wants to view according to the requirement of the user and the permission of the user by limiting the permission of the user no matter what request is sent by the user in the conventional method for limiting the user to view the map data in the prior art.
Optionally, the map view request includes a region parameter indicating the first map region, and the method further comprises: obtaining area parameters from a map viewing request; and determining a first map region according to the region parameter.
In particular, the map view request includes a region parameter indicating a first map region, and the method further comprises: the server 200 acquires the area parameter from the map view request. The area parameter may be longitude and latitude for describing the map range, or may be language description for describing the map range, such as "beijing". The server 200 determines a first map region according to the region parameters. For example, the first map area may be determined to be "beijing" by longitude and latitude parameters of beijing. The server 200 may thus determine the first map region based on the region parameters in the map view request.
Optionally, the operation of determining the second map area of the user according to the map viewing request includes: determining user identification information of a user according to the map viewing request; and determining a second map area according to the user identification information and a preset authority table, wherein the authority table records the map area which can be viewed by the user associated with the user identification information in the authority.
Specifically, in the process of determining the second map area of the user by the server 200 according to the map viewing request, for example, the server 200 may first determine the user identification information of the user according to the map viewing request. For example, the server 200 determines the unique identification information of the user, such as an "ID" which may represent a unique identity of the user, from the received map view request. The server 200 may then determine the second map area according to the user identification information and a preset authority table, where the authority table records map areas that can be viewed by users associated with the user identification information in authority. And the authority table may be a table of viewable map areas corresponding to each user, which is set in advance by a publisher of the map. The server 200 can thus obtain the second map area viewable within the authority of the user through the authority table set in advance by the publisher and the user representation information determined from the map viewing request.
Optionally, the operation of determining the map data returned to the client according to the first map area and the second map area includes: determining whether an area defined by the first map area is within an area defined by the second map area; and determining the map data corresponding to the first map area as the map data returned to the client when the area defined by the first map area is within the area defined by the second map area.
Specifically, referring to fig. 4A, in the process of determining the map data returned to the client according to the first map area and the second map area, the server 200 may first determine whether the area defined by the first map area is within the area defined by the second map area. And then determining the map data corresponding to the first map area as the map data returned to the client in the case that the area defined by the first map area is within the area defined by the second map area. For example, the first map area is "beijing" and the second map area is "jingjing", so that it can be determined that the area defined by the first map area is within the area defined by the second map area, and therefore the map data returned to the client is the map data corresponding to "beijing". And then the final map data of the client can be returned according to the demands of the publisher and the demands of the user, so that the use of the user is facilitated.
Optionally, in a case that the area defined by the first map area is not within the area defined by the second map area, the method further includes: determining whether an area defined by the first map area overlaps an area defined by the second map area; and determining that the map data returned to the client is empty under the condition that the area defined by the first map area does not overlap the area defined by the second map area.
Specifically, referring to fig. 4B, in the case where the area defined by the first map area is not within the area defined by the second map area, the server 200 determines whether the area defined by the first map area overlaps with the area defined by the second map area. And then determining that the map data returned to the client is empty under the condition that the area defined by the first map area does not overlap the area defined by the second map area. For example, the first map area is "beijing" and the second map area is "guangzhou", and since the area defined by the first map area does not overlap the area defined by the second map area, the map data returned to the user client is empty. Therefore, the final map data of the client can be returned according to the demands of the publisher and the demands of the user, and the use of the user is facilitated.
Optionally, in a case where an area defined by the first map area overlaps with an area defined by the second map area, the method further includes: and determining the intersected map area of the first map area and the second map area as the map data returned to the client.
Specifically, referring to fig. 4C, in the case where an area defined by the first map area overlaps an area defined by the second map area, the server 200 determines a map area of the intersection of the first map area and the second map area as the map data returned to the client. For example, the first map area is "beijing, shanghai, and guangzhou", and the second map area is "jingjin ji", and since the area defined by the first map area overlaps the area defined by the second map area, the map data returned to the client is the map area where the first map area and the second map area intersect, that is, the map data corresponding to "beijing". And then the final map data of the client can be returned according to the demands of the publisher and the demands of the user, so that the use of the user is facilitated.
In addition, referring to fig. 5A to 5C, fig. 5A is a first map area requested to be viewed by a user, fig. 5B is a second map area within the user authority, and fig. 5C is map data returned to the client.
Optionally, the operation of determining the map data returned to the client according to the first map area and the second map area includes: and cutting the map data returned to the client on the map according to the area of the map data returned to the client by using a preset cutting algorithm.
Specifically, the server 200 may clip the map data returned to the client on the map according to the area of the map data returned to the client using a preset clipping algorithm. The cutting algorithm can be any cutting algorithm in the field of remote sensing land information, namely the map can be cut by utilizing preset vector data, so that the map data finally returned to the client side can be obtained.
Further, referring to fig. 1, according to a third aspect of the present embodiment, there is provided a storage medium. The storage medium comprises a stored program, wherein the method of any of the above is performed by a processor when the program is run.
Therefore, according to the technical solution of the present embodiment, first, the server 200 may determine the first map area that the user wants to view through the map viewing request of the user received from the client. The server 200 may then determine a second map region that the user can view (where the second map region may be preset by the publisher) according to the map viewing request of the user. The end server 200 may clip back on the map data that the user of the user terminal device 100 may finally view, according to the first map area and the second map area that the user requests to view. The server 200 achieves the technical effect of dynamically clipping the map by the user's request and the authority of the user limited by the publisher, thereby determining the map data finally returned to the terminal device 100 of the user. The method further solves the technical problem that the map data returned by the user is data in the permission and cannot be returned to the map data which the user wants to view according to the requirement of the user and the permission of the user by limiting the permission of the user no matter what request is sent by the user in the conventional method for limiting the user to view the map data in the prior art.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
Fig. 6 shows a dynamic cropping means 600 of a map according to the present embodiment, the means 600 corresponding to the method according to the first aspect of embodiment 1. Referring to fig. 6, the apparatus 600 includes: the receiving module 610 is configured to receive a map viewing request sent by a user from a client, where the map viewing request is used to indicate map data corresponding to a first map area requested to be viewed by the user; the first determining module 620 is configured to determine, according to the map viewing request, a second map area corresponding to the user, where the second map area is a map area that can be viewed within the authority of the user; and a second determining module 630, configured to determine, according to the first map area and the second map area, map data to be returned to the client.
Optionally, the map view request includes a region parameter indicating the first map region, and the method further comprises: the acquisition module is used for acquiring the area parameters from the map viewing request; and a third determination module for determining the first map region based on the region parameter.
Optionally, the first determining module 620 includes: the user identification information determining submodule is used for determining the user identification information of the user according to the map viewing request; and the first determining submodule is used for determining the second map area according to the user identification information and a preset authority table, wherein the authority table records the map area which can be viewed by the user associated with the user identification information in the authority.
Optionally, the second determining module 630 includes: a first determination submodule for determining whether an area defined by the first map area is within an area defined by the second map area; and a first returning sub-module for determining the map data corresponding to the first map area as the map data returned to the client when the area defined by the first map area is within the area defined by the second map area.
Optionally, in a case that the area defined by the first map area is not within the area defined by the second map area, the method further includes: the second judgment submodule is used for judging whether the area defined by the first map area is overlapped with the area defined by the second map area or not; and the second return submodule is used for determining that the map data returned to the client side is empty under the condition that the area defined by the first map area is not overlapped with the area defined by the second map area.
Optionally, in a case where an area defined by the first map area overlaps with an area defined by the second map area, the method further includes: and the third returning submodule is used for determining the intersected map area of the first map area and the second map area as the map data returned to the client.
Optionally, the second determining module 630 includes: and the cutting submodule is used for cutting the map data returned to the client side on the map according to the area of the map data returned to the client side by using a preset cutting algorithm.
Therefore, according to the technical scheme of the embodiment, firstly, the server can determine the first map area which the user wants to view through the map viewing request of the user received from the client. The server may then determine a second map region that the user can view (where the second map region may be preset by the publisher) based on the user's map view request. The final server can cut out the map data which can be finally viewed by the user of the user terminal device on the map according to the first map area and the second map area which are requested to be viewed by the user. The server achieves the technical effect of dynamically cutting the map according to the request of the user and the authority of the user limited by the publisher, so that the map data finally returned to the terminal equipment of the user is determined. The method further solves the technical problem that the map data returned by the user is data in the permission and cannot be returned to the map data which the user wants to view according to the requirement of the user and the permission of the user by limiting the permission of the user no matter what request is sent by the user in the conventional method for limiting the user to view the map data in the prior art.
Example 3
Fig. 7 shows a dynamic cropping means 700 of a map according to the present embodiment, the means 700 corresponding to the method according to the first aspect of embodiment 1. Referring to fig. 7, the apparatus 700 includes: a processor 710; and a memory 720, coupled to the processor 710, for providing instructions to the processor 710 to process the following process steps: receiving a map viewing request sent by a user from a client, wherein the map viewing request is used for indicating map data corresponding to a first map area requested to be viewed by the user; determining a second map area corresponding to the user according to the map viewing request, wherein the second map area is a map area which can be viewed in the authority of the user; and determining the map data returned to the client according to the first map area and the second map area.
Optionally, the map view request includes a region parameter indicating the first map region, and the method further comprises: obtaining area parameters from a map viewing request; and determining a first map region according to the region parameter.
Optionally, the operation of determining the second map area of the user according to the map viewing request includes: determining user identification information of a user according to the map viewing request; and determining a second map area according to the user identification information and a preset authority table, wherein the authority table records the map area which can be viewed by the user associated with the user identification information in the authority.
Optionally, the operation of determining the map data returned to the client according to the first map area and the second map area includes: determining whether an area defined by the first map area is within an area defined by the second map area; and determining the map data corresponding to the first map area as the map data returned to the client when the area defined by the first map area is within the area defined by the second map area.
Optionally, in a case that the area defined by the first map area is not within the area defined by the second map area, the method further includes: determining whether an area defined by the first map area overlaps an area defined by the second map area; and determining that the map data returned to the client is empty under the condition that the area defined by the first map area does not overlap the area defined by the second map area.
Optionally, in a case where an area defined by the first map area overlaps with an area defined by the second map area, the method further includes: and determining the intersected map area of the first map area and the second map area as the map data returned to the client.
Optionally, the operation of determining the map data returned to the client according to the first map area and the second map area includes: and cutting the map data returned to the client on the map according to the area of the map data returned to the client by using a preset cutting algorithm.
Therefore, according to the technical scheme of the embodiment, firstly, the server can determine the first map area which the user wants to view through the map viewing request of the user received from the client. The server may then determine a second map region that the user can view (where the second map region may be preset by the publisher) based on the user's map view request. The final server can cut out the map data which can be finally viewed by the user of the user terminal device on the map according to the first map area and the second map area which are requested to be viewed by the user. The server achieves the technical effect of dynamically cutting the map according to the request of the user and the authority of the user limited by the publisher, so that the map data finally returned to the terminal equipment of the user is determined. The method further solves the technical problem that the map data returned by the user is data in the permission and cannot be returned to the map data which the user wants to view according to the requirement of the user and the permission of the user by limiting the permission of the user no matter what request is sent by the user in the conventional method for limiting the user to view the map data in the prior art.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, 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.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (10)
1. A dynamic clipping method for a map, comprising:
receiving a map viewing request sent by a user from a client, wherein the map viewing request is used for indicating map data corresponding to a first map area requested to be viewed by the user;
determining a second map area corresponding to the user according to the map viewing request, wherein the second map area is a map area which can be viewed in the authority of the user; and
and determining the map data returned to the client according to the first map area and the second map area.
2. The method of claim 1, wherein the map view request includes a region parameter indicating the first map region, and further comprising:
obtaining the area parameters from the map viewing request; and
determining the first map region according to the region parameter.
3. The method of claim 1, wherein determining the second map region of the user based on the map view request comprises:
determining user identification information of the user according to the map viewing request; and
and determining the second map area according to the user identification information and a preset authority table, wherein the authority table records the map area which can be viewed by the user associated with the user identification information in the authority.
4. The method of claim 1, wherein determining the operation of returning the map data to the client based on the first map region and the second map region comprises:
determining whether the area defined by the first map area is within the area defined by the second map area; and
and determining the map data corresponding to the first map area as the map data returned to the client when the area defined by the first map area is within the area defined by the second map area.
5. The method of claim 4, further comprising, in the event that the area defined by the first map area is not within the area defined by the second map area:
determining whether an area defined by the first map area overlaps an area defined by the second map area; and
and determining that the map data returned to the client is empty under the condition that the area defined by the first map area and the area defined by the second map area do not overlap.
6. The method of claim 5, further comprising, in the event that the area defined by the first map region overlaps with the area defined by the second map region:
determining an intersecting map region of the first map region and the second map region as map data returned to the client.
7. The method according to any one of claims 4 to 6, wherein determining the operation of returning the map data of the client according to the first map area and the second map area comprises:
and cutting the map data returned to the client side on the map according to the area of the map data returned to the client side by using a preset cutting algorithm.
8. A storage medium comprising a stored program, wherein the method of any one of claims 1 to 7 is performed by a processor when the program is run.
9. An apparatus for dynamically cropping a map, comprising:
the map display method comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a map viewing request sent by a user from a client, and the map viewing request is used for indicating map data corresponding to a first map area requested to be viewed by the user;
a first determining module, configured to determine, according to the map viewing request, a second map area corresponding to the user, where the second map area is a map area that can be viewed within a permission of the user; and
and the second determining module is used for determining the map data returned to the client according to the first map area and the second map area.
10. An apparatus for dynamically cropping a map, comprising:
a processor; and
a memory coupled to the processor for providing instructions to the processor for processing the following processing steps:
receiving a map viewing request sent by a user from a client, wherein the map viewing request is used for indicating map data corresponding to a first map area requested to be viewed by the user;
determining a second map area corresponding to the user according to the map viewing request, wherein the second map area is a map area which can be viewed in the authority of the user; and
and determining the map data returned to the client according to the first map area and the second map area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010414133.9A CN111611338A (en) | 2020-05-15 | 2020-05-15 | Dynamic map clipping method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010414133.9A CN111611338A (en) | 2020-05-15 | 2020-05-15 | Dynamic map clipping method and device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111611338A true CN111611338A (en) | 2020-09-01 |
Family
ID=72196554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010414133.9A Pending CN111611338A (en) | 2020-05-15 | 2020-05-15 | Dynamic map clipping method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111611338A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113971005A (en) * | 2021-10-28 | 2022-01-25 | 上海数慧系统技术有限公司 | Control method, device and system for space application permission |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106991330A (en) * | 2017-03-27 | 2017-07-28 | 武汉地大信息工程股份有限公司 | A kind of method of data access authority control on three-dimensional map |
CN108924115A (en) * | 2018-06-25 | 2018-11-30 | 武汉众智鸿图科技有限公司 | A kind of Simulation spatial service authority control method and system |
CN110069556A (en) * | 2019-03-14 | 2019-07-30 | 武汉众智鸿图科技有限公司 | A kind of DWG format map vector service issuing method and device |
-
2020
- 2020-05-15 CN CN202010414133.9A patent/CN111611338A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106991330A (en) * | 2017-03-27 | 2017-07-28 | 武汉地大信息工程股份有限公司 | A kind of method of data access authority control on three-dimensional map |
CN108924115A (en) * | 2018-06-25 | 2018-11-30 | 武汉众智鸿图科技有限公司 | A kind of Simulation spatial service authority control method and system |
CN110069556A (en) * | 2019-03-14 | 2019-07-30 | 武汉众智鸿图科技有限公司 | A kind of DWG format map vector service issuing method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113971005A (en) * | 2021-10-28 | 2022-01-25 | 上海数慧系统技术有限公司 | Control method, device and system for space application permission |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104380776B (en) | A kind of method for connecting network, hot terminal and management terminal | |
CN102638586B (en) | Sharing method, system and device for application program information | |
CN112990400B (en) | NFC tag-based scene service method, device and system | |
CN110688146A (en) | Method, device and storage medium for dynamically configuring monitoring system | |
CN106547769A (en) | A kind of DOI display packings and device | |
CN109995876A (en) | Document transmission method, device, system and computer storage medium | |
CN114398672A (en) | Authority-based flow creation method and device and storage medium | |
CN113312311A (en) | Method and device for processing name space | |
CN110851818A (en) | Verification code display method and device, computer equipment and readable storage medium | |
CN112836148A (en) | Report display method and device, storage medium and electronic equipment | |
CN112637300B (en) | Block chain-based distributed storage and acquisition method and device for video information | |
CN111611338A (en) | Dynamic map clipping method and device and storage medium | |
CN104331407A (en) | Multimedia file information recommending method and multimedia file information recommending device | |
CN110858201A (en) | Data processing method and system, processor and storage medium | |
CN116107520B (en) | S3 object storage protocol encrypted data storage method and system | |
CN115661852A (en) | Map segmentation method, map segmentation device, computer-readable storage medium and processor | |
CN109194571B (en) | Method, apparatus and storage medium for distributing information based on priority | |
CN104125266A (en) | Position information processing method and device | |
CN107153779A (en) | Method for secret protection and device | |
CN103647809A (en) | Data synchronization method and server system | |
CN113590913B (en) | Data resource display method and device, storage medium and electronic device | |
CA2990718C (en) | Method for establishing interaction relationship, and interaction terminal | |
CN105939214B (en) | Method and device for realizing network card function | |
CA2990302C (en) | Method for establishing interaction relationship, and interaction terminal | |
CN109522690B (en) | Method, device and storage medium for sending interaction information and generating interaction information |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200901 |