CN108510570B - Drawing method and device based on standard map service - Google Patents

Drawing method and device based on standard map service Download PDF

Info

Publication number
CN108510570B
CN108510570B CN201810313340.8A CN201810313340A CN108510570B CN 108510570 B CN108510570 B CN 108510570B CN 201810313340 A CN201810313340 A CN 201810313340A CN 108510570 B CN108510570 B CN 108510570B
Authority
CN
China
Prior art keywords
server
picture
gis
layer
precision
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
CN201810313340.8A
Other languages
Chinese (zh)
Other versions
CN108510570A (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.)
Changsha Haitu Technology Co ltd
Original Assignee
Changsha Haitu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Haitu Technology Co ltd filed Critical Changsha Haitu Technology Co ltd
Priority to CN201810313340.8A priority Critical patent/CN108510570B/en
Publication of CN108510570A publication Critical patent/CN108510570A/en
Application granted granted Critical
Publication of CN108510570B publication Critical patent/CN108510570B/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
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Abstract

The invention provides a standard map service-based plotting method and a standard map service-based plotting device, which relate to the technical field of picture synthesis, wherein the standard map service-based plotting method comprises the following steps: firstly, the server acquires the current precision of a GIS picture, then the server acquires a plurality of different layer precisions according to different slicing modes of the GIS picture, secondly, the server performs fusion operation on the GIS pictures corresponding to each layer precision one by one according to the current precision, an output picture is acquired through each fusion operation until all the GIS pictures corresponding to the layer precision are fused, then, the server combines the output pictures into a standard output picture and returns the standard output picture to a browser, and through the processing of the server, the step of manual operation of people in the browser is omitted, so that people can conveniently and quickly acquire one picture based on the standard map service.

Description

Drawing method and device based on standard map service
Technical Field
The invention relates to the technical field of picture synthesis, in particular to a plotting method and device based on standard map service.
Background
A Geographic Information System (GIS), a graph System, is a comprehensive management and application System based on basic spatial data and various professional spatial data, and realizes linkage display and management of space and attributes by performing superposition display, query, statistics, analysis and the like on various data. The GIS mapping system is based on lightweight browser access, but has disadvantages in the management of spatial GIS data, such as GIS data Output in Input and Output functions, because there is a limitation in directly operating GIS data, files, and IO (Input/Output) operation interaction in the browser.
However, if a GIS map system is used directly by a client and wants to print a map according to the data of the key map location, for example, a GIS picture is superimposed on a digital line map by using a red land line within a certain plot range at a scale of 1:500, and then the GIS picture is output as a standard picture and is printed or reported. At present, the method for synthesizing a complete standard output picture mainly includes the following forms:
1. zooming is carried out on a picture system, then, pictures are captured by a screenshot tool on the pictures formed by different zooming ratios, and then, a standard output picture is synthesized by tools such as PS and the like.
2. The method comprises the steps of firstly overlaying and rendering layers corresponding to GIS pictures to make into MXD format files through professional GIS tools such as ArcGIS and the like, then exporting the data in a specified range to form a picture through a picture exporting function, and then adding a picture and the like through a PS tool to form a standard output picture.
3. Vector data of an output range is cut through a CAD file, a drawing frame, a legend and a title are added manually, the CAD is zoomed to a designated layer level, and then a picture is output through a CAD export standard.
Therefore, the synthesis process of the standard output picture is very complicated, and the user needs to manually operate the browser to waste time and labor.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a method and an apparatus for drawing a picture based on a standard map service, which improve convenience of synthesizing a standard output picture by providing a server and the like.
In a first aspect, an embodiment of the present invention provides a standard map service-based map making method, including:
the server acquires the current precision of the GIS picture;
the server acquires a plurality of different layer precisions according to different slicing modes of the GIS pictures;
the server executes fusion operation on the GIS pictures corresponding to each layer precision one by one according to the current precision, and each fusion operation obtains one output picture until all the GIS pictures corresponding to the layer precision complete the fusion operation;
and the server combines the output pictures into a standard output picture and returns the standard output picture to the browser.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the server performs a fusion operation on the GIS pictures corresponding to each layer precision one by one according to the current precision, and obtains one output picture through each fusion operation until all the GIS pictures corresponding to the layer precision complete the fusion operation, including:
the fusion operation comprises the following steps:
the server calculates the difference between the current precision and the layer precision;
the server judges the layer level of the GIS picture corresponding to the layer precision according to the difference value;
the server acquires a row matrix corresponding to the layer level, and divides the GIS picture corresponding to the layer level into a plurality of single pictures by using the row matrix;
the server fuses the single pictures into the output picture.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the obtaining, by the server, the current accuracy of the GIS picture includes:
the server receives coordinate values and pixel values sent by a browser, wherein the coordinate values and the pixel values are calculated according to the current GIS pictures when the browser receives external output triggers;
the server calculates a ratio of the coordinate values to the pixel values, and records the ratio as the current accuracy.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the determining, by the server, the layer level of the GIS picture corresponding to the layer precision according to the difference includes:
the server extracts the maximum value of the layer precision corresponding to the GIS pictures in all slicing modes, and a plurality of threshold value intervals are divided between 0 and the maximum value;
the server sets one layer level for each threshold interval;
and the server searches the threshold interval corresponding to the difference value, and judges that the layer level corresponding to the threshold interval is the layer level corresponding to the GIS picture.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the server obtains a row-column matrix corresponding to the layer level, and divides the GIS picture corresponding to the layer level into multiple single pictures by using the row-column matrix, where the method includes:
the server acquires an original point X coordinate X of the GIS picture corresponding to the layer level1Origin Y coordinate Y1Lower left corner X coordinate2Lower left corner Y coordinate2The upper right corner X coordinate3The upper right corner Y coordinate Y3A picture pixel Z;
the server calculates the line number L of the lower left corner1=floor((Y2-Y1) (Z S)), wherein S represents the layer precision corresponding to the layer level;
the server calculates the column number L of the lower left corner2=floor((X2-X1) (Z S)), wherein S represents the layer precision corresponding to the layer level;
the server calculates the line number L of the upper right corner3=floor((Y3-Y1) (Z S)), wherein S represents the layer precision corresponding to the layer level;
the server calculates the column number L of the upper right corner4=floor((X3-X1) (Z S)), wherein S represents the layer precision corresponding to the layer level;
the server obtains the row-column matrix L ═ L3-L1,L4-L2);
The server divides the GIS picture into (L) according to the row and column matrix L3-L1)*(L4-L2) A single graph.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the fusing, by the server, the multiple single pictures into the output picture includes:
the server extracts the coordinates in the row matrix and the column matrix;
and the server fuses the single pictures positioned on the same coordinate to obtain the output picture.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the combining, by the server, the multiple output pictures into a standard output picture, and returning the standard output picture to the browser includes:
the server superimposes the legend for the output pictures according to standard map service;
the server adds a picture frame to the output picture on which the legend is superimposed to obtain the standard output picture;
and the server returns the standard output picture to the browser.
In a second aspect, an embodiment of the present invention provides an apparatus for mapping based on a standard map service, including:
the current precision acquisition module is used for acquiring the current precision of the GIS picture by the server;
the layer precision acquisition module is used for the server to acquire a plurality of different layer precisions according to different slicing modes of the GIS pictures;
the fusion operation module is used for executing fusion operation on the GIS pictures corresponding to each layer precision one by the server according to the current precision, and obtaining an output picture by each fusion operation until all the GIS pictures corresponding to the layer precision complete the fusion operation;
and the picture synthesis module is used for combining the output pictures into a standard output picture by the server and returning the standard output picture to the browser.
In a third aspect, an embodiment of the present invention further provides a terminal, including a memory and a processor, where the memory is used to store a program that supports the processor to execute the standard map service-based mapping method provided in the foregoing aspect, and the processor is configured to execute the program stored in the memory.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of any one of the methods described above.
The embodiment of the invention provides a standard map service-based map making method and a standard map service-based map making device, wherein the standard map service-based map making method comprises the following steps: firstly, the server acquires the current precision of a GIS picture, namely the current precision of the GIS picture in a current slicing mode, then the server acquires a plurality of different layer precisions according to the different slicing modes of the GIS picture, secondly, the server executes a fusion operation on the GIS pictures corresponding to each layer precision one by one according to the current precision, an output picture is obtained in each fusion operation, and a plurality of output pictures can be obtained after traversing the operation, so that the GIS pictures corresponding to all the layer precisions are fused, then, the server combines the plurality of output pictures into a standard output picture and returns the standard output picture to a browser, the GIS pictures can be fused one by one according to the different layer precisions through the automatic execution process of the server, and then are combined into the standard output picture, and the standard output picture is returned to the browser for viewing, compared with the prior art, the standard map service-based plotting method does not need people to manually process GIS pictures in a browser, and is convenient and quick.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart illustrating a standard map service based mapping method provided by an embodiment of the present invention;
FIG. 2 is a sub-flowchart of step S101 in the method for mapping based on the standard map service provided by the embodiment of the present invention;
FIG. 3 is a sub-flowchart of step S103 of the method for mapping based on the standard map service provided by the embodiment of the present invention;
FIG. 4 is a sub-flowchart of step S104 of the standard map based service mapping method provided by the embodiment of the present invention;
fig. 5 shows a structural connection diagram of a mapping apparatus based on a standard map service according to an embodiment of the present invention.
Icon: 1-a current precision acquisition module; 2-layer precision obtaining module; 3-a fusion operation module; and 4, a picture synthesis module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The GIS one-graph system is a system having an input/output function, and in the current use process, people need to manually operate at a browser end in order to use the GIS one-graph system. The existing operation method mainly comprises the following forms: 1. zooming is carried out on a picture system, then, pictures are captured by a screenshot tool on the pictures formed by different zooming ratios, and then, a standard output picture is synthesized by tools such as PS and the like. 2. Through professional GIS tools such as ArcGIS and the like, corresponding layers are overlaid and rendered to be manufactured into MXD files, then through a graph amplitude exporting function, data in a specified range are exported to be a graph, and then a graph and the like are added through a PS tool to form a standard output picture. 3. Vector data of an output range is cut through a CAD file, a drawing frame, a legend and a title are added manually, the CAD is zoomed to a designated layer level, and then a picture is output through a CAD export standard. It can be seen that the current synthesis process for standard output pictures is very cumbersome.
Based on this, the embodiment of the present invention provides a mapping method and apparatus based on a standard map service, which are described below by way of embodiments.
Example 1
Referring to fig. 1, fig. 2, fig. 3, and fig. 4, the method for mapping based on the standard map service provided in this embodiment specifically includes the following steps:
step S101: and the server acquires the current precision of the GIS picture.
Firstly, a GIS picture displayed externally in a next GIS picture system is introduced, generally, the GIS picture in the GIS picture system is three-dimensional, and when people want to view GIS pictures at different angles, the GIS picture at the angle that the people want can be obtained by rotating the GIS picture. Moreover, the GIS picture can also obtain GIS pictures of different levels (i.e. different scaling ratios) according to the layer, level and precision relationship defined by the slicing scheme, for example, a 1:200 prefecture map and a 1:500 prefecture map.
The following describes the above step S101 in detail:
step S1011: and the server receives the coordinate values and the pixel values sent by the browser, wherein the coordinate values and the pixel values are calculated by the browser according to the current GIS picture when the browser receives external output trigger.
When people want to acquire the current precision of the GIS picture displayed in the current browser, the external output trigger is firstly sent to the browser, and then the coordinate value and the pixel value of the current GIS picture are calculated after the browser receives the external output trigger, and the calculated coordinate value and the calculated pixel value are sent to the server.
Step S1012: the server calculates the ratio of the coordinate values to the pixel values, and records the ratio as the current accuracy.
Because the size of the coordinate value represents the range contained in one GIS picture and the size of the pixel value represents the definition degree of one GIS picture, in order to effectively measure the attribute of one GIS picture, the server calculates the ratio of the coordinate value to the pixel value after receiving the coordinate value and the pixel value, and takes the calculated ratio as the current precision.
Step S102: and the server acquires a plurality of different layer precisions according to different slicing modes of the GIS pictures.
The server obtains different layer levels and precision according to a slicing scheme of the GIS picture, one slicing layer is defined in the slicing scheme and divided into a plurality of levels (scales), each level defines precision or resolution, and information such as a slicing origin, a slicing range and the like is also defined. The general GIS-map system base image slicing scheme defines 18 levels, wherein the larger the level, the smaller the scale.
In the processing process of the GIS picture, the GIS picture is usually sliced, that is, different GIS pictures are obtained after parameters such as different slicing origins, different slicing resolutions, and different initial slicing ranges are selected. Correspondingly, in a GIS picture system, GIS pictures processed by different slicing processes are stored in a server in advance. In this embodiment, in order to accurately obtain the layer precision of the GIS picture, different layer precisions of the GIS picture corresponding to different slicing modes need to be searched in the server, so as to comprehensively and effectively obtain all layer precisions of the GIS picture.
Step S103: and the server executes fusion operation on the GIS pictures corresponding to each layer precision one by one according to the current precision, and an output picture is obtained by each fusion operation until all the GIS pictures corresponding to the layer precision are fused.
As can be seen from the above description, the same point of a GIS picture corresponds to different picture contents under different layer precisions, so as to completely and effectively consider the specific contents of each point in the GIS picture in different dimensions. And the server executes the fusion operation on the GIS pictures corresponding to each layer precision one by one, and each fusion operation obtains one output picture until all the GIS pictures corresponding to the layer precision complete the fusion operation.
The following steps for the above fusion operation are described in detail as follows:
step S1031: and the server calculates the difference between the current precision and the layer precision.
As can be seen from the above description, there are a plurality of layer precisions of GIS pictures. In this embodiment, the current precision is taken as a reference, that is, the current precision of the GIS picture in the current slice mode is taken as a reference to compare the current precision with each layer precision one by one, so as to consider the layer precision situation of the GIS picture.
In specific implementation, the server calculates the difference between the current precision and the layer precision for the GIS picture of each layer precision. Namely, the difference between the layer precisions of the GIS pictures is represented by the size (relative value) of the difference.
Step S1032: and the server judges the layer level of the GIS picture corresponding to the layer precision according to the difference value. The specific implementation comprises the following steps:
(1) the server extracts the maximum value of the layer precision corresponding to all the GIS pictures, and in the specific implementation, the server acquires the layer precision corresponding to all the GIS pictures, for example, the acquired layer precision is a, b, and c … t, respectively, where t is the maximum value, and then the server extracts t therefrom as the maximum value of the layer precision corresponding to all the GIS pictures. And, divide into a plurality of threshold intervals between 0 and maximum value t, the specific number of threshold interval after dividing can be set up according to the use scene flexibly.
(2) The server sets a layer level for each threshold interval, and because the threshold interval is a continuous range value, the server sets a layer level for each threshold interval in order to quantize each threshold interval, so as to be used as a reference for subsequent layer precision comparison.
(3) And the server searches a threshold interval corresponding to the difference value, and judges that the layer level of the GIS picture corresponding to the layer precision is the layer level corresponding to the threshold interval. In this way, after the server calculates a plurality of difference values, the layer level is determined by the threshold interval corresponding to the difference values, so that the obtained plurality of continuous threshold intervals are discretized.
Step S1033: the server acquires a row matrix and a column matrix corresponding to the layer level, and divides the GIS picture corresponding to the layer level into a plurality of single pictures by using the row matrix and the column matrix. In order to process GIS pictures corresponding to different layer levels into a plurality of single pictures, in this embodiment, each layer level is implemented by corresponding to one row-column matrix, and in order to effectively indicate the size of the row-column matrix corresponding to the GIS picture, the specific implementation includes:
(1) the server obtains an original point X coordinate X of a GIS picture corresponding to the layer level1Origin Y coordinate Y1Lower left corner X coordinate2Lower left corner Y coordinate2The upper right corner X coordinate3The upper right corner Y coordinate Y3And a picture pixel Z.
(2) The server calculates the line number L of the lower left corner1=floor((Y2-Y1) And/or (Z S)), wherein S represents the layer precision corresponding to the layer level. Wherein, the basic function of the floor function is realized as follows:
Figure BDA0001622941230000101
Figure BDA0001622941230000111
(3) the server calculates the column number L of the lower left corner2=floor((X2-X1) And/or (Z S)), wherein S represents the layer precision corresponding to the layer level.
The minimum value of the row-column matrix is characterized by the calculation of the row number and the column number of the lower left corner.
(4) The server calculates the line number L of the upper right corner3=floor((Y3-Y1) And/or (Z S)), wherein S represents the layer precision corresponding to the layer level.
(5) The server calculates the column number L of the upper right corner4=floor((X3-X1) And/or (Z S)), wherein S represents the layer precision corresponding to the layer level.
The maximum value of the row-column matrix is characterized by the calculation of the row number and the column number in the upper right corner.
(6) The server obtains a row-column matrix L ═ L3-L1,L4-L2)。
(7) The server divides the GIS picture into (L) according to the row-column matrix L3-L1)*(L4-L2) A single graph.
And characterizing the size of the whole row-column matrix through the calculation of the difference value of the maximum value and the minimum value. And dividing the GIS picture corresponding to each layer level into a plurality of single pictures through each coordinate point of the obtained row-column matrix.
Step S1034: the server fuses the single pictures into an output picture. The specific implementation comprises the following steps:
(1) and (3) the server extracts the coordinates in the row matrix and the column matrix, namely after the row matrix and the column matrix are obtained, the server extracts the coordinates in the row matrix and the column matrix.
(2) After the coordinates are obtained, the server fuses the single pictures on the same coordinates, namely, the single pictures on the same coordinates corresponding to the precision of each layer are overlapped to obtain an output picture, so that the output picture corresponds to at least one fused output picture in each slicing mode, and the spatial integrity of the output picture is guaranteed.
Step S104: and the server combines the output pictures into a standard output picture and returns the standard output picture to the browser. The following is a detailed description of the above operation:
step S1041: the server outputs a picture superposition legend according to a standard map service, wherein the standard map service is a new standard map online service system developed by national mapping geographic information and map department organization, and various standards including legends are specified in the online service system. In order to facilitate people to check the map, the server superposes the legend for the output picture according to the standard map service, and the specific placement position, size and the like of the legend can be flexibly set according to the use scene and the like.
Step S1042: in order to further ensure the integrity of the picture, the server adds a frame to the output picture on which the legend is superimposed to obtain a standard output picture, where the frame may be a standard frame pre-stored in the server, or a personalized frame drawn by a user through a browser.
Step S1043: the server returns the standard output picture to the browser, namely after the processing process, the server side obtains the standard output picture through automatic operation and sends the standard output picture to the browser for people to check.
In summary, the method for drawing a graph based on the standard map service provided by the embodiment includes: firstly, the server acquires the current precision of a GIS picture, namely the layer precision of the GIS picture in the current slicing mode, then the server acquires a plurality of different layer precisions according to the different slicing modes of the GIS picture, secondly, the server executes fusion operation on the GIS pictures corresponding to each layer precision one by one according to the current precision, each fusion operation obtains one output picture until all the GIS pictures corresponding to the layer precision finish the fusion operation, then, the server combines a plurality of output pictures into a standard output picture, namely adding legends, frames and the like to the output picture, and returns the standard output picture to a browser, and through the processing, the steps of picture scaling, clipping and the like in the browser by people are saved, so that the standard output picture processed by the server can be directly sent to the people for viewing, is convenient and quick.
Example 2
Referring to fig. 5, the present embodiment provides a mapping apparatus based on a standard map service, including:
and the current precision acquisition module 1 is used for acquiring the current precision of the GIS picture by the server.
And the layer precision acquisition module 2 is used for the server to acquire a plurality of different layer precisions according to different slicing modes of the GIS pictures.
And the fusion operation module 3 is used for executing fusion operation on the GIS pictures corresponding to each layer precision one by the server according to the current precision, and obtaining an output picture by each fusion operation until all the GIS pictures corresponding to the layer precision complete the fusion operation.
And the picture synthesis module 4 is used for combining the output pictures into a standard output picture by the server and returning the standard output picture to the browser.
The mapping device based on the standard map service provided by the embodiment of the invention has the same technical characteristics as the mapping method based on the standard map service provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
An embodiment of the present invention further provides a terminal, including a memory and a processor, where the memory is used to store a program that supports the processor to execute the method of the above embodiment, and the processor is configured to execute the program stored in the memory.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of any one of the above methods.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The implementation principle and the generated technical effect of the mapping method and the device based on the standard map service provided by the embodiment of the invention are the same as those of the method embodiment, and for the sake of brief description, corresponding contents in the method embodiment can be referred to where the device embodiment is not mentioned.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules 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 removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions or without necessarily implying any relative importance. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. The plotting method based on the standard map service is characterized by comprising the following steps:
the server acquires the current precision of the GIS picture;
the server acquires a plurality of different layer precisions according to different slicing modes of the GIS pictures;
the server executes fusion operation on the GIS pictures corresponding to each layer precision one by one according to the current precision, and each fusion operation obtains one output picture until all the GIS pictures corresponding to the layer precision complete the fusion operation;
the server combines the output pictures into a standard output picture and returns the standard output picture to the browser;
the server executes fusion operation on the GIS pictures corresponding to each layer precision one by one according to the current precision, obtains an output picture by each fusion operation until all the GIS pictures corresponding to the layer precision complete the fusion operation, and comprises the following steps:
the fusion operation comprises the following steps:
the server calculates the difference between the current precision and the layer precision;
the server judges the layer level of the GIS picture corresponding to the layer precision according to the difference value;
the server acquires a row matrix corresponding to the layer level, and divides the GIS picture corresponding to the layer level into a plurality of single pictures by using the row matrix;
the server fuses the single pictures into the output picture;
the server acquires a row matrix corresponding to the layer level, and divides the GIS picture corresponding to the layer level into a plurality of single pictures by using the row matrix, wherein the method comprises the following steps:
the server acquires an original point X coordinate X of the GIS picture corresponding to the layer level1Origin Y coordinate Y1Lower left corner X coordinate2Lower left corner Y coordinate2The upper right corner X coordinate3Upper right, upper rightAngular Y coordinate Y3A picture pixel Z;
the server calculates the line number L of the lower left corner1=floor((Y2-Y1) (Z S)), wherein S represents the layer precision corresponding to the layer level;
the server calculates the column number L of the lower left corner2=floor((X2-X1) (Z S)), wherein S represents the layer precision corresponding to the layer level;
the server calculates the line number L of the upper right corner3=floor((Y3-Y1) (Z S)), wherein S represents the layer precision corresponding to the layer level;
the server calculates the column number L of the upper right corner4=floor((X3-X1) (Z S)), wherein S represents the layer precision corresponding to the layer level;
the server obtains the row-column matrix L ═ L3-L1,L4-L2);
The server divides the GIS picture into (L) according to the row and column matrix L3-L1)*(L4-L2) A single graph.
2. The method for drawing graph based on standard map service according to claim 1, wherein the server obtains the current precision of the GIS picture, and comprises:
the server receives coordinate values and pixel values sent by a browser, wherein the coordinate values and the pixel values are calculated according to the current GIS pictures when the browser receives external output triggers;
the server calculates a ratio of the coordinate values to the pixel values, and records the ratio as the current accuracy.
3. The method for mapping according to claim 1, wherein the server determines the layer level of the GIS picture corresponding to the layer accuracy according to the difference, and includes:
the server extracts the maximum value of the layer precision corresponding to the GIS pictures in all slicing modes, and a plurality of threshold value intervals are divided between 0 and the maximum value;
the server sets one layer level for each threshold interval;
and the server searches the threshold interval corresponding to the difference value, and judges that the layer level corresponding to the threshold interval is the layer level corresponding to the GIS picture.
4. The method for drawing based on standard map service according to claim 1, wherein the server fuses the plurality of single drawings into the output picture, comprising:
the server extracts the coordinates in the row matrix and the column matrix;
and the server fuses the single pictures positioned on the same coordinate to obtain the output picture.
5. The standard map service-based drawing method according to claim 2, wherein the server combines a plurality of the output pictures into a standard output picture and returns the standard output picture to the browser, and comprises:
the server superimposes the legend for the output pictures according to standard map service;
the server adds a picture frame to the output picture on which the legend is superimposed to obtain the standard output picture;
and the server returns the standard output picture to the browser.
6. The map making device based on the standard map service is characterized by comprising:
the current precision acquisition module is used for acquiring the current precision of the GIS picture by the server;
the layer precision acquisition module is used for the server to acquire a plurality of different layer precisions according to different slicing modes of the GIS pictures;
the fusion operation module is used for executing fusion operation on the GIS pictures corresponding to each layer precision one by the server according to the current precision, and obtaining an output picture by each fusion operation until all the GIS pictures corresponding to the layer precision complete the fusion operation;
the picture synthesis module is used for combining the output pictures into a standard output picture by the server and returning the standard output picture to the browser;
the server executes fusion operation on the GIS pictures corresponding to each layer precision one by one according to the current precision, obtains an output picture by each fusion operation until all the GIS pictures corresponding to the layer precision complete the fusion operation, and comprises the following steps:
the fusion operation comprises the following steps:
the server calculates the difference between the current precision and the layer precision;
the server judges the layer level of the GIS picture corresponding to the layer precision according to the difference value;
the server acquires a row matrix corresponding to the layer level, and divides the GIS picture corresponding to the layer level into a plurality of single pictures by using the row matrix;
the server fuses the single pictures into the output picture;
the server acquires a row matrix corresponding to the layer level, and divides the GIS picture corresponding to the layer level into a plurality of single pictures by using the row matrix, wherein the method comprises the following steps:
the server acquires an original point X coordinate X of the GIS picture corresponding to the layer level1Origin Y coordinate Y1Lower left corner X coordinate2Lower left corner Y coordinate2The upper right corner X coordinate3The upper right corner Y coordinate Y3A picture pixel Z;
the server calculates the line number L of the lower left corner1=floor((Y2-Y1) V (Z S)), wherein S represents the layer precision corresponding to the layer level;
The server calculates the column number L of the lower left corner2=floor((X2-X1) (Z S)), wherein S represents the layer precision corresponding to the layer level;
the server calculates the line number L of the upper right corner3=floor((Y3-Y1) (Z S)), wherein S represents the layer precision corresponding to the layer level;
the server calculates the column number L of the upper right corner4=floor((X3-X1) (Z S)), wherein S represents the layer precision corresponding to the layer level;
the server obtains the row-column matrix L ═ L3-L1,L4-L2);
The server divides the GIS picture into (L) according to the row and column matrix L3-L1)*(L4-L2) A single graph.
7. A terminal, comprising a memory for storing a program that enables the processor to perform the method of any of claims 1 to 5 and a processor configured to execute the program stored in the memory.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 5.
CN201810313340.8A 2018-04-09 2018-04-09 Drawing method and device based on standard map service Active CN108510570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810313340.8A CN108510570B (en) 2018-04-09 2018-04-09 Drawing method and device based on standard map service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810313340.8A CN108510570B (en) 2018-04-09 2018-04-09 Drawing method and device based on standard map service

Publications (2)

Publication Number Publication Date
CN108510570A CN108510570A (en) 2018-09-07
CN108510570B true CN108510570B (en) 2022-03-22

Family

ID=63381011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810313340.8A Active CN108510570B (en) 2018-04-09 2018-04-09 Drawing method and device based on standard map service

Country Status (1)

Country Link
CN (1) CN108510570B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112417071B (en) * 2020-11-02 2021-10-26 中关村科学城城市大脑股份有限公司 Vector data layer fusion and service calling method based on GIS

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388043A (en) * 2008-09-26 2009-03-18 北京航空航天大学 OGC high performance remote sensing image map service method based on small picture
CN103699582A (en) * 2013-12-03 2014-04-02 天津市普迅电力信息技术有限公司 Multi-source map data processing method
CN105260450A (en) * 2015-10-10 2016-01-20 东方网力科技股份有限公司 Electronic map issuing method and apparatus and electronic map display method
CN105279268A (en) * 2015-10-26 2016-01-27 东方网力科技股份有限公司 Multi-data-source map download method
CN106296647A (en) * 2016-06-30 2017-01-04 广州极飞科技有限公司 A kind of map image section update method and device
CN107391578A (en) * 2017-06-20 2017-11-24 国家测绘地理信息局海南基础地理信息中心 A kind of Map Service of Network dynamic coordinate conversion method based on grid method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8331627B2 (en) * 2007-09-26 2012-12-11 Agency For Science, Technology And Research Method and system for generating an entirely well-focused image of a large three-dimensional scene
KR20120087233A (en) * 2010-12-03 2012-08-07 한국전자통신연구원 Method for tile-map service using image fusion, and system for the same

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388043A (en) * 2008-09-26 2009-03-18 北京航空航天大学 OGC high performance remote sensing image map service method based on small picture
CN103699582A (en) * 2013-12-03 2014-04-02 天津市普迅电力信息技术有限公司 Multi-source map data processing method
CN105260450A (en) * 2015-10-10 2016-01-20 东方网力科技股份有限公司 Electronic map issuing method and apparatus and electronic map display method
CN105279268A (en) * 2015-10-26 2016-01-27 东方网力科技股份有限公司 Multi-data-source map download method
CN106296647A (en) * 2016-06-30 2017-01-04 广州极飞科技有限公司 A kind of map image section update method and device
CN107391578A (en) * 2017-06-20 2017-11-24 国家测绘地理信息局海南基础地理信息中心 A kind of Map Service of Network dynamic coordinate conversion method based on grid method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
利用Bing Maps地图切片实现网络地图服务;王晓东等;《国土资源遥感》;20100615(第02期);全文 *

Also Published As

Publication number Publication date
CN108510570A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
US10853985B2 (en) Method and system for generating a 360-degree presentation of an object
US8954561B2 (en) System and method of displaying search results based on density
US9916070B1 (en) Architectures and methods for creating and representing time-dependent imagery
US7769745B2 (en) Visualizing location-based datasets using “tag maps”
US8938446B2 (en) System and method of transmitting search results based on arbitrary queries
US9689703B2 (en) Presenting hierarchies of map data at different zoom levels
CN108876706B (en) Thumbnail generation from panoramic images
US9437004B2 (en) Surfacing notable changes occurring at locations over time
WO2009002952A1 (en) System and method for grouping and visualizing data
WO2014112138A1 (en) Information processing device, information processing system, and information processing program
US10068157B2 (en) Automatic detection of noteworthy locations
CN108510570B (en) Drawing method and device based on standard map service
CN113157214B (en) Remote sensing image display method, device, equipment and storage medium
US20150109328A1 (en) Techniques for navigation among multiple images
CN114020755B (en) Image map tile publishing method, image map tile generating method and device
US9230366B1 (en) Identification of dynamic objects based on depth data
US20090006323A1 (en) System and Method for Analyzing Intelligence Information
CN113989454A (en) Fusion method, device and system suitable for geological data and geographic information data
CN113986094A (en) Map marking method, device, terminal and storage medium
JP6324175B2 (en) Map information display system and method, program
JP2012038256A (en) Satellite image search result display method
US20090005970A1 (en) System and Method for Displaying Geographical Information
WO2021176877A1 (en) Image processing device, image processing method, and image processing program
CN115063192A (en) Method, system, equipment and medium for indexing commodities based on GIS and VR
CN117743619A (en) Method, system, equipment and medium for visual browsing of geographic data set

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