CN112908146A - Hand-drawn map cutting and presenting method and intelligent tour guide and visiting guide system - Google Patents
Hand-drawn map cutting and presenting method and intelligent tour guide and visiting guide system Download PDFInfo
- Publication number
- CN112908146A CN112908146A CN202011570161.6A CN202011570161A CN112908146A CN 112908146 A CN112908146 A CN 112908146A CN 202011570161 A CN202011570161 A CN 202011570161A CN 112908146 A CN112908146 A CN 112908146A
- Authority
- CN
- China
- Prior art keywords
- picture
- map
- tile
- hand
- level
- 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
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000009877 rendering Methods 0.000 claims abstract description 12
- 101100182247 Caenorhabditis elegans lat-1 gene Proteins 0.000 claims description 20
- 101100182248 Caenorhabditis elegans lat-2 gene Proteins 0.000 claims description 20
- 230000011218 segmentation Effects 0.000 claims description 17
- 230000003247 decreasing effect Effects 0.000 claims description 3
- 238000005192 partition Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000000981 bystander Effects 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000036651 mood Effects 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B29/00—Maps; Plans; Charts; Diagrams, e.g. route diagram
- G09B29/003—Maps
- G09B29/005—Map projections or methods associated specifically therewith
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Business, Economics & Management (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- General Physics & Mathematics (AREA)
- Instructional Devices (AREA)
Abstract
The application discloses a hand-drawn map cutting and presenting method and an intelligent tour guide and navigation system, wherein the method comprises the following steps: determining coordinate values of two opposite angles in a third-party map where the hand-drawn map picture is located and a zoom level of the map where the hand-drawn map picture is located; scaling the picture to a picture of a resolution size corresponding to a maximum level of the scaling levels; dividing the zoomed picture into n equal parts according to a preset direction to obtain the coordinates of each equal part picture and the two opposite angles of each corresponding equal part picture; recursion is carried out on each equally divided picture to each level, and tile map pictures with preset sizes are respectively generated; and displaying the tile map picture according to the rendering rule of the third-party map to form the hand-drawn map. The method and the device solve the problem that the tile map picture is not generated by a cutting method so as to rapidly display the hand-drawn map in the related art, and improve the display speed of the hand-drawn map to a certain extent.
Description
Technical Field
The application relates to the field of maps, in particular to a hand-drawn map cutting and presenting method and an intelligent tour guide and navigation system.
Background
With the continuous improvement of the living standard of people, tourism has become a part of the life of people nowadays. People can find fun, relieve pressure, relax mood and open eyes by traveling.
In order to meet the requirements of users for individuation and diversification, more and more scenic spots begin to implement the construction of the intelligent tourism platform, the intelligent tour guide system is used as a part of the construction of the intelligent tourism platform, real voice deeply explains scenic spot culture stories, LBS positioning automatically plays a bystander, a multi-theme route is recommended to promote experience, route planning can be rapidly provided, and information such as eating, living, traveling and purchasing information near the scenic spots can be accurately inquired. Public facilities such as a toilet, a parking lot and the like are clear at a glance,
as an old and new map representation form, the hand-drawn map is rich in color, clear in road, vivid and vivid, has sufficient interaction feeling, is just as if being on the scene, and is more and more favored by tourists based on a scenic area guide map drawn in an original proportion. Compared with a map manufactured by a machine, the hand-drawn map has higher affinity, can more arouse the mind, better accords with the preferences of young tourists, and better accords with the trend of times development.
At present, third-party maps such as a Gagde map and an Tencent map provide a display mode of tile map pictures, but no convenient tool is provided for generating the tile pictures, and how to generate the tile map pictures by a cutting method with higher efficiency so as to quickly display a hand-drawn map, no good solution is provided at present.
Disclosure of Invention
The application provides a method for cutting and presenting a hand-drawn map, which aims to solve the problem that a tile map picture is not generated by a cutting method so as to quickly display the hand-drawn map in the related art.
According to an aspect of the application, a hand-drawn map cutting and presenting method is provided, which includes: determining coordinate values of two opposite angles in a third-party map where a picture of the hand-drawn map is located and a zoom level of the map where the picture is located, wherein the two opposite angles are an upper left corner and a lower right corner, or the two opposite angles are a lower left corner and an upper right corner; scaling the picture to a picture of a resolution size corresponding to a maximum level of the scaling levels; dividing the zoomed picture into n equal parts according to a preset direction to obtain the coordinates of each equal part picture and the two opposite angles of each corresponding equal part picture; recursion is carried out on each equally divided picture to each level, and tile map pictures with preset sizes are respectively generated; and displaying the tile map picture according to the rendering rule of the third-party map to form the hand-drawn map.
Further, the predetermined direction is vertical, and/or the predetermined size is 256 × 256 resolution size.
Further, the recursive generation of tile map pictures of a predetermined size for each of the levels of the each of the equally divided pictures comprises: and according to the mercator projection principle, each equally divided picture is divided into a plurality of tile pictures with preset sizes at each map level, and picture numbers are named and stored according to the rendering requirements of the third-party map according to rules.
Further, in a case where the two opposite corners are an upper left corner and a lower right corner, the dividing each of the divided pictures into a plurality of tile pictures of the predetermined size at each map level according to the mercator projection principle includes: scaling the equally divided pictures to the required highest level picture of the map according to the mercator principle; the hierarchical scaling is decreased to obtain all hierarchical pictures, wherein the resolution of each hierarchical picture is different in size; carrying out tile segmentation on each level picture, and calculating information required by segmentation according to the mercator principle, wherein the information required by segmentation comprises: coordinates of a mercator plane of a central point of the current level picture, pixel coordinates of the central point in the whole world, pixel coordinates of the lower left corner, grid numbers and pixel coordinates of the upper right corner of the current level picture, grid numbers, the number of tiles to be cut and cutting positions and numbers of each tile; and segmenting according to the information required by the segmentation to obtain each tile picture with the preset size which is in accordance with the third-party map display.
Further, the rules for naming picture numbers include: the tile pictures are stored as different directories according to different hierarchies, and the naming numbers of the tile pictures conform to the calculated grid numbers.
Further, tile segmentation is carried out on each level picture, and information required by segmentation is calculated according to the mercator principle and comprises the following steps:
calculating plane coordinates of the levels corresponding to the longitude and latitude, and assuming that n is the current level:
x=(lng+180)/360*2n
y=(1-.log(tan(lat*π/180)+1/cos(lat*π/180))/π)/2*2n;
calculating the pixel coordinates of the levels corresponding to the longitude and latitude, and assuming that n is the current level:
x=(longitude+180)/360*2n*256%256
y=0.5-log((1+sin(lat*π/180))/(1-sin(lat*π/180)))/(4*π)*2n*256% 256;
calculating grid number according to pixel coordinates:
(x/256,y/256)。
further, under the condition that the two opposite corners are the upper left corner and the lower right corner, dividing the zoomed picture into n equal parts according to a predetermined direction, and obtaining the coordinates of each equal part picture and the two opposite corners of each equal part picture comprises:
suppose P0(lng1, lat1) is the coordinate value of the upper left corner of the original image, P0(lng2, lat2) is the coordinate value of the lower right corner;
Lng=(Lngmax-Lngmin) N, wherein n is a multiple of 256, and Lng is the average value of longitude for each equal division;
Ni(lng1)=P0(lng1)+(i-1)*Lng
Ni(lat1)=P0(lat1)
Ni(lng2)=P0(Lng1) + i Lng, when i is N, Ni(lng2)=P0(lng2);
Ni(lat2)=P0(lat2)
Ni(lng1, lat1) represents the coordinate value of the upper left corner of the ith division, and Ni (lng2, lat2) represents the coordinate value of the lower right corner of the ith division.
According to another aspect of the present application, there is also provided an intelligent tour guide method, after obtaining the hand-drawn map according to the above method, further comprising: acquiring the positioning information of the tourist, and providing at least one of the following according to the positioning information: voice broadcasting, navigation and route customization.
According to another aspect of the present application, there is also provided an intelligent tour guide system, comprising: and the map generation end is used for hand-drawing the map according to the method.
Further, the system further comprises: the tourist client is used for acquiring the positioning information of the tourist and providing at least one of the following according to the positioning information: voice broadcasting, navigation and route customization.
The method comprises the following steps: determining coordinate values of two opposite angles in a third-party map where a picture of the hand-drawn map is located and a zoom level of the map where the picture is located, wherein the two opposite angles are an upper left corner and a lower right corner, or the two opposite angles are a lower left corner and an upper right corner; scaling the picture to a picture of a resolution size corresponding to a maximum level of the scaling levels; dividing the zoomed picture into n equal parts according to a preset direction to obtain the coordinates of each equal part picture and the two opposite angles of each corresponding equal part picture; recursion is carried out on each equally divided picture to each level, and tile map pictures with preset sizes are respectively generated; and displaying the tile map picture according to the rendering rule of the third-party map to form the hand-drawn map. The method and the device solve the problem that the tile map picture is not generated by a cutting method so as to rapidly display the hand-drawn map in the related art, and improve the display speed of the hand-drawn map to a certain extent.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of a method for cutting and presenting a hand-drawn map according to an embodiment of the present invention;
fig. 2 is a schematic diagram for determining a zoom level where a coordinate value of an upper left corner and a coordinate value of a lower right corner of a hand-drawn map are located in a third-party map according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a method for cutting a hand-drawn map picture according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a GPS positioning and third party map display tile map and scenic spot guide navigation, voice broadcast, route planning recommendation and public facility query according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used.
It should also be noted that 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 the process, method, article, or apparatus that comprises the element.
In this embodiment, a method for cutting and presenting a hand-drawn map is provided, and fig. 1 is a flowchart of the method for cutting and presenting a hand-drawn map according to the embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, determining coordinate values of two opposite angles in a third-party map where a picture of the hand-drawn map is located and a zoom level of the map where the picture is located, and obtaining corresponding coordinates according to the two opposite angles, wherein the two opposite angles are a left upper angle and a right lower angle, or the two opposite angles are a left lower angle and a right upper angle; in the following implementation, the upper left corner and the lower right corner are used as examples for explanation, and if the other two relative corners are used, calculation may be performed accordingly, which is not described in this embodiment again.
The picture of the hand-drawn map in this step may be drawn manually by the artist. In this embodiment, a model may be generated, where the model is a neural network model and is obtained by using machine learning training using a plurality of sets of training data, and each set of training data in the plurality of sets of training data includes input data and output data, where the input data is a computer-drawn style map picture and the output data is a hand-drawn style map picture. After training, the model can be used, when in use, map pictures are input into the model, and the data of the model are the map pictures with hand-drawing styles.
When the map is used, a function can be set in the third-party map application or software, after a user starts the function, the third-party map application or software sends a required map picture to the server, the server runs the model, the model outputs the map picture with the hand-drawing style, and the method is equivalent to a full-automatic function.
Step S104, zooming the picture to a picture with a resolution size corresponding to the maximum level of the zooming levels;
step S106, dividing the zoomed image into n equal parts according to a predetermined direction (for example, the zoomed image may be vertical, or may be other directions, which is not described herein again), and obtaining coordinates of the two opposite angles of each equal part image and each corresponding equal part image;
step S108, recursion of each of the divided pictures to each hierarchy, and respectively generating tile map pictures with predetermined sizes (the sizes may be flexibly selected or set as required, and in this embodiment, 256 × 256 resolution is taken as an example for explanation);
and S110, displaying the tile map picture according to the rendering rule of the third-party map to form the hand-drawn map.
Through the steps, the problem that the tile map picture is not generated through a cutting method so as to be convenient for fast displaying the hand-drawn map in the related technology is solved, and the displaying speed of the hand-drawn map is improved to a certain extent.
In practice, the aliquot may be recursive to various levels according to various projection modes, for example:
three kinds of projection divided according to the different shapes of the projection surface: conical projection, cylindrical projection and azimuthal projection.
Conical projection: it is conceivable to cover the earth with a large cone, project the position of the earth's surface onto the cone surface, and then cut the cone along a meridian to generate a plane. The way the cone covers the earth can be two cases: tangent to the earth (single secant) and form two secants (double secants) with the earth surface.
Cylindrical projection: the earth is covered by a cylinder, the position of the earth surface is projected on the surface of the cylinder, and then the cylinder is cut and unfolded into a plane. A cylindrical projection may be a special case of a conical projection, i.e. the vertex of the cone extends to infinity.
Azimuth projection: a plane is used as a projection plane, the plane is tangent to the surface of the earth, and the position of the earth surface is projected onto the plane. The azimuth projection can also be used as a special case of the projection of a cone, that is, the included angle of the cone is 180 degrees, and the cone becomes a plane.
The projection types can be further divided into a positive axis projection, an oblique axis projection and a horizontal axis projection according to the relative positions of the projection surface and the earth ellipsoid.
Orthographic projection: the axis of the plane of projection (axis of the conical cylinder, normal to the plane) coincides with the axis of rotation of the earth ellipsoid. Also known as normal position projection, or polar projection.
Oblique axis projection: the axis of the plane of projection (axis of the conical cylinder, normal to the plane) coincides neither with the axis of rotation nor with the equatorial plane of the earth's ellipsoid. Also known as horizontal projection.
Projection of a transverse axis: the axis of the plane of projection (axis of the conical cylinder, normal to the plane) coincides with the equatorial plane of the earth. Also known as equatorial projection.
Classification can be done according to the projected geometric distortion into three categories:
equiangular projection (orthomorphic projection): the included angle of any two straight lines on the ground is kept unchanged after the angle is drawn on a drawing through earth projection.
Equal area projection: the area of the ground is kept unchanged after being drawn on the drawing through the earth projection.
Equidistant projection: the distance between two points on the ground is kept unchanged after being drawn on a drawing through the earth projection.
The projection names may be named in combination with the above three classification methods (shape of the projection plane, location of the projection plane and earth ellipsoid, and deformation properties after projection). Such as: a right-axis equiangular conic projection, a right-axis equiangular cylindrical projection, etc. The projection mode can be applied to the projection mode.
Some third party maps are projected by mercator, for example, hundredth maps, google maps, Tencent maps, and Gauder maps.
The warp after the projection of the mercator is uniformly distributed, taking latitude as an example:
the mercator projection projects a point with a latitude phi (-90 degrees < phi > <90 degrees) to y-ln (tan (45 degrees + phi/2))
The projection algorithm makes the latitude lines near the equator denser and the latitude lines near the polar region thinner. The poles are projected to infinity, so this projection is not suitable for use in high latitudes. The selected range of the google map is-pi < pi.
In this embodiment, the principle of the ink card projection may be used, and at this time, generating a tile map picture of a predetermined size by recursing each of the divided pictures to each of the hierarchies includes: and according to the mercator projection principle, each equally divided picture is divided into a plurality of tile pictures with preset sizes at each map level, and picture numbers are named and stored according to the rendering requirements of the third-party map according to rules.
Preferably, in a case where the two opposite corners are an upper left corner and a lower right corner, the dividing of each of the divided pictures into a plurality of tile pictures of the predetermined size at each map level according to the mercator projection principle includes: scaling the equally divided pictures to the required highest level picture of the map according to the mercator principle; the hierarchical scaling is decreased to obtain all hierarchical pictures, wherein the resolution of each hierarchical picture is different in size; carrying out tile segmentation on each level picture, and calculating information required by segmentation according to the mercator principle, wherein the information required by segmentation comprises: coordinates of a mercator plane of a central point of the current level picture, pixel coordinates of the central point in the whole world, pixel coordinates of the lower left corner, grid numbers and pixel coordinates of the upper right corner of the current level picture, grid numbers, the number of tiles to be cut and cutting positions and numbers of each tile; and segmenting according to the information required by the segmentation to obtain each tile picture with the preset size which is in accordance with the third-party map display.
There are also many picture naming numbering rules, for example, the rules for naming picture numbers include: the tile pictures are stored as different directories according to different hierarchies, and the naming numbers of the tile pictures conform to the calculated grid numbers.
An algorithm is given below, each hierarchical picture is subjected to tile segmentation, and information required by the segmentation is calculated according to the mercator principle and comprises the following steps:
calculating plane coordinates of the levels corresponding to the longitude and latitude, and assuming that n is the current level:
x=(lng+180)/360*2n
y=(1-.log(tan(lat*π/180)+1/cos(lat*π/180))/π)/2*2n;
calculating the pixel coordinates of the levels corresponding to the longitude and latitude, and assuming that n is the current level:
x=(longitude+180)/360*2n*256%256
y=0.5-log((1+sin(lat*π/180))/(1-sin(lat*π/180)))/(4*π)*2n*256% 256;
calculating grid number according to pixel coordinates:
(x/256,y/256)。
preferably, when the two opposite corners are an upper left corner and a lower right corner, dividing the zoomed picture into n equal parts according to a predetermined direction, and obtaining the coordinates of each equal part picture and the two opposite corners of each equal part picture includes:
suppose P0(lng1, lat1) is the coordinate value of the upper left corner of the original image, P0(lng2, lat2) is the coordinate value of the lower right corner;
Lng=(Lngmax-Lngmin) N, wherein n is a multiple of 256, and Lng is the average value of longitude for each equal division;
Ni(lng1)=P0(lng1)+(i-1)*Lng
Ni(lat1)=P0(lat1)
Ni(lng2)=P0(Lng1) + i Lng, when i is N, Ni(lng2)=P0(lng2);
Ni(lat2)=P0(lat2)
Ni(lng1, lat1) represents the coordinate value of the upper left corner of the ith division, and Ni (lng2, lat2) represents the coordinate value of the lower right corner of the ith division.
In this embodiment, an intelligent tour guide method is further provided, where after the hand-drawn map is obtained according to the above method, the method further includes: acquiring the positioning information of the tourist, and providing at least one of the following according to the positioning information: voice broadcasting, navigation and route customization.
There is also provided in this embodiment an intelligent tour guide system, comprising: and the map generation end is used for hand-drawing the map according to the method.
Preferably, the system further comprises: the tourist client is used for acquiring the positioning information of the tourist and providing at least one of the following according to the positioning information: voice broadcasting, navigation and route customization.
In the following, a preferred embodiment of the present application is described by taking a high-rise map and an Tencent map as examples.
In the embodiment, firstly, determining longitude and latitude coordinate values and the levels of the left upper corner and the right lower corner of the position of the hand-drawn map in a third-party map such as Gaode and Tencent; dividing the high-resolution picture into n equal parts vertically and calculating the coordinate values of the upper left corner and the lower right corner of each equal part; then, according to the mercator projection principle, dividing each equal part into a plurality of tile pictures with 256 × 256 resolutions at each map level, naming picture numbers according to a map rendering rule and storing the picture numbers in a directory of a server; in the intelligent tour guide and navigation system, GPS is used for collecting positioning data and map display rules, tile pictures are displayed on a third-party map, and one-key navigation and a customized tour route are provided according to automatic voice broadcast of tourist positioning. Dividing the large-resolution picture into n equal parts vertically, and calculating the coordinate values of the upper left corner and the lower right corner of each equal part as follows:
suppose P0(lng1, lat1) is the coordinate value of the upper left corner of the original image, P0(lng2, lat2) is the coordinate value of the lower right corner;
Lng=(Lngmax-Lngmin) N, where n is a multiple of 256,the average value of the longitude for each aliquot;
Ni(lat1)=P0(lat1)
Ni(lat2)=P0(lat2)
Ni(lng1, lat1) represents coordinate value of upper left corner of ith partition, Ni(lng2, lat2) represents the coordinate value of the lower right corner of the ith aliquot.
According to the mercator projection principle, each equally divided picture is divided into a plurality of tile pictures with 256 × 256 resolutions at each level of the map, picture numbers are named according to a map rendering rule and stored in a directory of a server, wherein the dividing method comprises the following steps:
(1) the method comprises the steps of firstly scaling an equally divided picture to a required highest level picture of a map according to the mercator principle, and then scaling the picture in a descending level manner to obtain all level pictures, wherein the resolution of each level picture is different.
(2) And carrying out tile segmentation on each hierarchical picture, calculating the plane coordinates of the mercator of the central point of the current hierarchical picture and the pixel coordinates of the central point in the whole world according to the mercator principle, calculating the pixel coordinates of the lower left corner, the grid number, the pixel coordinates of the upper right corner and the grid number of the current hierarchical picture, calculating the number of tiles to be cut and the cutting position and number of each tile, and finally cutting the tiles into 256 × 256 tile pictures which are in accordance with the display of a third-party map.
Calculating the plane coordinates, pixel coordinates and grid numbers of the mercator, wherein the method related to the calculation comprises the following steps:
(1) calculating the plane coordinates of the corresponding levels of the longitude and latitude, and if n is the current level, calculating the plane coordinates of the corresponding levels of the longitude and latitude
x=(lng+180)/360*2n
y=(1-.log(tan(lat*π/180)+1/cos(lat*π/180))/π)/2*2n
(2) Calculating the pixel coordinates of the corresponding levels of longitude and latitude, and if n is the current level, calculating the pixel coordinates of the corresponding levels of longitude and latitude
x=(longitude+180)/360*2n*256%256
y=0.5-log((1+sin(lat*π/180))/(1-sin(lat*π/180)))/(4*π)*2n*256% 256
(3) Computing grid numbering from pixel coordinates
(x/256,y/256)
And collecting positioning data and map display rules by using a GPS, displaying the tile picture on a third-party map, and providing one-key navigation and tourist route recommendation according to the automatic voice broadcast of tourist positioning.
The preferred embodiment will be described with reference to fig. 2, 3 and 4.
FIG. 3 is a schematic diagram of a method for cutting a hand-drawn map picture according to an embodiment of the present invention; as shown in fig. 3, the method comprises the steps of:
step S1, fig. 2 is a schematic diagram of determining a position in a third-party map, namely a coordinate value of an upper left corner, a coordinate value of a lower right corner, and a zoom level, where the hand-drawn map is located according to the embodiment of the present invention; as illustrated in fig. 2, the step is mainly to determine the position of the hand-drawn map in the third-party map, the coordinate value of the upper left corner, the coordinate value of the lower right corner and the zoom level where the hand-drawn map is located;
step S2 is to scale the picture to the picture with the resolution corresponding to the maximum level, then vertically divide the picture into n equal parts to obtain each equal part picture and the corresponding coordinate values of the upper left corner and the lower right corner, and the calculation method is as follows:
suppose P0(lng1, lat1) is the coordinate value of the upper left corner of the original image, P0(lng2, lat2) is the coordinate value of the lower right corner;
Lng=(Lngmax-Lngmin) N, where n is a multiple of 256,the average value of the longitude for each aliquot;
Ni(lat1)=P0(lat1)
Ni(lat2)=P0(lat2)
Ni(lng1, lat1) represents coordinate value of upper left corner of ith partition, Ni(lng2, lat2) represents the coordinate value of the lower right corner of the ith aliquot.
Step 3, according to the mercator principle, recursion of each level of each equally divided picture respectively generates 256 × 256 tile maps, and calculates mercator plane coordinates, pixel coordinates and grid numbers, and the method related to calculation comprises the following steps:
(1) calculating the plane coordinates of the corresponding levels of the longitude and latitude, and if n is the current level, calculating the plane coordinates of the corresponding levels of the longitude and latitude
x=(lng+180)/360*2n
y=(1-.log(tan(lat*π/180)+1/cos(lat*π/180))/π)/2*2n
(2) Calculating the pixel coordinates of the corresponding levels of longitude and latitude, and if n is the current level, calculating the pixel coordinates of the corresponding levels of longitude and latitude
x=(longitude+180)/360*2n*256%256
y=0.5-log((1+sin(lat*π/180))/(1-sin(lat*π/180)))/(4*π)*2n*256% 256
(3) Computing grid numbering from pixel coordinates
(x/256,y/256)
Step S4, step S5, fig. 4 is a schematic diagram of displaying a tile map and scenic spot guide navigation, voice broadcast, route planning recommendation and public facility query according to the GPS positioning and third party map according to the embodiment of the present invention, as shown in fig. 4, in order to collect positioning data and map display rules by using the GPS, display the tile picture on the third party map, and provide one-key navigation and tour route recommendation according to the automatic voice broadcast of visitor positioning.
The embodiment relates to a method for cutting and presenting a large-resolution hand-drawn map picture and an intelligent tour guide and navigation system. Then dividing the large-resolution picture into n equal parts vertically, calculating coordinate values of the upper left corner and the lower right corner of each equal part, dividing each equal part into a plurality of tile pictures with 256 × 256 resolutions at each map level according to the mercator projection principle, naming the picture numbers according to the map rendering rule, and storing the picture numbers in a directory of a server. In the intelligent tour guide system, GPS is used for collecting positioning data and map display rules, and the tile picture is displayed on a third-party map. The method and the device improve the user experience and shorten the access time while solving the cutting and rendering of the high-resolution hand-drawn map picture.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A method for cutting and presenting a hand-drawn map is characterized by comprising the following steps:
determining coordinate values of two opposite angles in a third-party map where a picture of the hand-drawn map is located and a zoom level of the map where the picture is located, wherein the two opposite angles are an upper left corner and a lower right corner, or the two opposite angles are a lower left corner and an upper right corner;
scaling the picture to a picture of a resolution size corresponding to a maximum level of the scaling levels;
dividing the zoomed picture into n equal parts according to a preset direction to obtain the coordinates of each equal part picture and the two opposite angles of each corresponding equal part picture;
recursion is carried out on each equally divided picture to each level, and tile map pictures with preset sizes are respectively generated;
and displaying the tile map picture according to the rendering rule of the third-party map to form the hand-drawn map.
2. The method according to claim 1, wherein the predetermined direction is vertical and/or the predetermined size is 256 x 256 resolution size.
3. The method of claim 2, wherein recursive generation of a tile map picture of a predetermined size for each of the plurality of levels comprises:
and according to the mercator projection principle, each equally divided picture is divided into a plurality of tile pictures with preset sizes at each map level, and picture numbers are named and stored according to the rendering requirements of the third-party map according to rules.
4. The method of claim 3, wherein, in the case where the two opposite corners are an upper left corner and a lower right corner, slicing each aliquot into a plurality of tile pictures of the predetermined size at each map level according to the mercator projection principle comprises:
scaling the equally divided pictures to the required highest level picture of the map according to the mercator principle;
the hierarchical scaling is decreased to obtain all hierarchical pictures, wherein the resolution of each hierarchical picture is different in size;
carrying out tile segmentation on each level picture, and calculating information required by segmentation according to the mercator principle, wherein the information required by segmentation comprises: coordinates of a mercator plane of a central point of the current level picture, pixel coordinates of the central point in the whole world, pixel coordinates of the lower left corner, grid numbers and pixel coordinates of the upper right corner of the current level picture, grid numbers, the number of tiles to be cut and cutting positions and numbers of each tile;
and segmenting according to the information required by the segmentation to obtain each tile picture with the preset size which is in accordance with the third-party map display.
5. The method of claim 4, wherein the rules for naming the picture numbers comprise:
the tile pictures are stored as different directories according to different hierarchies, and the naming numbers of the tile pictures conform to the calculated grid numbers.
6. The method of claim 4, wherein each hierarchical picture is tile sliced, and calculating information required for slicing according to the mercator principle comprises:
calculating plane coordinates of the levels corresponding to the longitude and latitude, and assuming that n is the current level:
x=(lng+180)/360*2n
y=(1-.log(tan(lat*π/180)+1/cos(lat*π/180))/π)/2*2n;
calculating the pixel coordinates of the levels corresponding to the longitude and latitude, and assuming that n is the current level:
x=(longitude+180)/360*2n*256%256
y=0.5-log((1+sin(lat*π/180))/(1-sin(lat*π/180)))/(4*π)*2n*256%256;
calculating grid number according to pixel coordinates:
(x/256,y/256)。
7. the method according to any one of claims 1 to 6, wherein in a case that the two opposite corners are an upper left corner and a lower right corner, dividing the zoomed picture into n equal parts according to a predetermined direction, and obtaining the coordinates of the two opposite corners of each equal part picture and each corresponding equal part picture comprises:
suppose P0(lng1, lat1) is the coordinate value of the upper left corner of the original image, P0(lng2, lat2) is the coordinate value of the lower right corner;
Lng=(Lngmax-Lngmin) N, wherein n is a multiple of 256, and Lng is the average value of longitude for each equal division;
Ni(lng1)=P0(lng1)+(i-1)*Lng
Ni(lat1)=P0(lat1)
Ni(lng2)=P0(Lng1) + i Lng, when i is N, Ni(lng2)=P0(lng2);
Ni(lat2)=P0(lat2)
Ni(lng1, lat1) represents coordinate value of upper left corner of ith partition, Ni(lng2, lat2) represents the ith aliquotThe coordinate value of the lower right corner.
8. An intelligent tour guide method, after obtaining the hand-drawn map according to the method of any one of claims 1 to 7, the method further comprising:
acquiring the positioning information of the tourist, and providing at least one of the following according to the positioning information: voice broadcasting, navigation and route customization.
9. An intelligent tour guide system, comprising:
a map generation end for hand-drawing a map according to the method of any one of claims 1 to 7.
10. The system of claim 9, further comprising: the tourist client is used for acquiring the positioning information of the tourist and providing at least one of the following according to the positioning information: voice broadcasting, navigation and route customization.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011570161.6A CN112908146A (en) | 2020-12-26 | 2020-12-26 | Hand-drawn map cutting and presenting method and intelligent tour guide and visiting guide system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011570161.6A CN112908146A (en) | 2020-12-26 | 2020-12-26 | Hand-drawn map cutting and presenting method and intelligent tour guide and visiting guide system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112908146A true CN112908146A (en) | 2021-06-04 |
Family
ID=76111685
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011570161.6A Pending CN112908146A (en) | 2020-12-26 | 2020-12-26 | Hand-drawn map cutting and presenting method and intelligent tour guide and visiting guide system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112908146A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113577772A (en) * | 2021-09-27 | 2021-11-02 | 深圳易帆互动科技有限公司 | Tile map-based unit moving method and device and readable storage medium |
CN113626547A (en) * | 2021-07-29 | 2021-11-09 | 北京中交兴路信息科技有限公司 | Freight industry map vector slicing method and device, storage medium and terminal |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007034145A (en) * | 2005-07-29 | 2007-02-08 | Alps Sha:Kk | Map superimposing system and method |
CN101388043A (en) * | 2008-09-26 | 2009-03-18 | 北京航空航天大学 | OGC high performance remote sensing image map service method based on small picture |
CN102819530A (en) * | 2011-06-10 | 2012-12-12 | 中兴通讯股份有限公司 | Method and device for displaying electronic map |
US20130326425A1 (en) * | 2012-06-05 | 2013-12-05 | Apple Inc. | Mapping application with 3d presentation |
CN104063496A (en) * | 2014-07-04 | 2014-09-24 | 浙江大学 | Marine environmental prediction product parallel processing method applied to tiled map services |
CN104134187A (en) * | 2014-07-30 | 2014-11-05 | 陈军 | Point-to-point tile map dynamic projection method and device |
CN105719327A (en) * | 2016-02-29 | 2016-06-29 | 北京中邮云天科技有限公司 | Art stylization image processing method |
CN106204566A (en) * | 2016-07-04 | 2016-12-07 | 广州三毛信息科技有限公司 | Outdoor scene hand-drawing map cutting method and device, intelligent guide realization method and system |
CN106548208A (en) * | 2016-10-28 | 2017-03-29 | 杭州慕锐科技有限公司 | A kind of quick, intelligent stylizing method of photograph image |
US20170091993A1 (en) * | 2015-09-25 | 2017-03-30 | Microsoft Technology Licensing, Llc | 3D Model Generation From Map Data and User Interface |
CN107943962A (en) * | 2017-11-27 | 2018-04-20 | 浙江卓锐科技股份有限公司 | A kind of Gis2.5D maps and preparation method thereof |
CN109977192A (en) * | 2019-04-02 | 2019-07-05 | 山东大学 | The quick loading method of unmanned plane tile map, system, equipment and storage medium |
CN110555119A (en) * | 2019-08-27 | 2019-12-10 | 成都数之联科技有限公司 | Unmanned aerial vehicle remote sensing image slicing method and system under real-time scene |
CN111583352A (en) * | 2020-04-24 | 2020-08-25 | 天津大学 | Stylized icon intelligent generation method for mobile terminal |
CN111833279A (en) * | 2019-04-16 | 2020-10-27 | 杭州麦扑文化创意有限公司 | Fusion method of live-action hand-drawn map and electronic map |
-
2020
- 2020-12-26 CN CN202011570161.6A patent/CN112908146A/en active Pending
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007034145A (en) * | 2005-07-29 | 2007-02-08 | Alps Sha:Kk | Map superimposing system and method |
CN101388043A (en) * | 2008-09-26 | 2009-03-18 | 北京航空航天大学 | OGC high performance remote sensing image map service method based on small picture |
CN102819530A (en) * | 2011-06-10 | 2012-12-12 | 中兴通讯股份有限公司 | Method and device for displaying electronic map |
US20130326425A1 (en) * | 2012-06-05 | 2013-12-05 | Apple Inc. | Mapping application with 3d presentation |
CN104063496A (en) * | 2014-07-04 | 2014-09-24 | 浙江大学 | Marine environmental prediction product parallel processing method applied to tiled map services |
CN104134187A (en) * | 2014-07-30 | 2014-11-05 | 陈军 | Point-to-point tile map dynamic projection method and device |
US20170091993A1 (en) * | 2015-09-25 | 2017-03-30 | Microsoft Technology Licensing, Llc | 3D Model Generation From Map Data and User Interface |
CN105719327A (en) * | 2016-02-29 | 2016-06-29 | 北京中邮云天科技有限公司 | Art stylization image processing method |
CN106204566A (en) * | 2016-07-04 | 2016-12-07 | 广州三毛信息科技有限公司 | Outdoor scene hand-drawing map cutting method and device, intelligent guide realization method and system |
CN106548208A (en) * | 2016-10-28 | 2017-03-29 | 杭州慕锐科技有限公司 | A kind of quick, intelligent stylizing method of photograph image |
CN107943962A (en) * | 2017-11-27 | 2018-04-20 | 浙江卓锐科技股份有限公司 | A kind of Gis2.5D maps and preparation method thereof |
CN109977192A (en) * | 2019-04-02 | 2019-07-05 | 山东大学 | The quick loading method of unmanned plane tile map, system, equipment and storage medium |
CN111833279A (en) * | 2019-04-16 | 2020-10-27 | 杭州麦扑文化创意有限公司 | Fusion method of live-action hand-drawn map and electronic map |
CN110555119A (en) * | 2019-08-27 | 2019-12-10 | 成都数之联科技有限公司 | Unmanned aerial vehicle remote sensing image slicing method and system under real-time scene |
CN111583352A (en) * | 2020-04-24 | 2020-08-25 | 天津大学 | Stylized icon intelligent generation method for mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113626547A (en) * | 2021-07-29 | 2021-11-09 | 北京中交兴路信息科技有限公司 | Freight industry map vector slicing method and device, storage medium and terminal |
CN113577772A (en) * | 2021-09-27 | 2021-11-02 | 深圳易帆互动科技有限公司 | Tile map-based unit moving method and device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103150750B (en) | The method that 3D objects and/or 3D landform are visualized using mobile device | |
Haklay | Interacting with geospatial technologies | |
CA2352844C (en) | 3-d map data visualization | |
CN108474666A (en) | System and method for positioning user in map denotation | |
CN102200451B (en) | Stylized procedural modeling for 3D navigation | |
KR101480721B1 (en) | User based map manufacturing apparatus | |
CN105022731B (en) | A kind of method of map vector tile caching | |
CN112908146A (en) | Hand-drawn map cutting and presenting method and intelligent tour guide and visiting guide system | |
CN108986207A (en) | A kind of road based on true road surface data and emulation modelling method is built along the line | |
CN111090716B (en) | Vector tile data processing method, device, equipment and storage medium | |
CN105516311A (en) | Electronic map panorama acquisition method and system | |
WO2006005003A9 (en) | Composition of raster and vector graphics in geographic information systems | |
FR2610752A1 (en) | METHOD FOR REPRESENTING THE IMAGE IN PERSPECTIVE OF A FIELD AND SYSTEM FOR IMPLEMENTING IT | |
CN105865484B (en) | A kind of display methods and device of navigation information | |
US20130127852A1 (en) | Methods for providing 3d building information | |
JPH1089990A (en) | Navigation apparatus | |
CN109801371B (en) | Network three-dimensional electronic map construction method based on Cesium | |
CN106528762B (en) | Electronic map processing method and processing system for identifying interest points | |
CN112242004A (en) | Virtual carving method and system of AR scene based on illumination rendering | |
US12044544B2 (en) | Query and display of navigation map data | |
CN101578636A (en) | Displaying elevation information from a digital map | |
US20150154228A1 (en) | Hierarchical spatial clustering of photographs | |
CN112446804A (en) | Intelligent tourism system based on country culture and virtual reality | |
CN115731370A (en) | Large-scene element universe space superposition method and device | |
CN104501797B (en) | A kind of air navigation aid based on augmented reality IP maps |
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 |
Application publication date: 20210604 |
|
RJ01 | Rejection of invention patent application after publication |