CN106021446A - Map resource localization realization system and method - Google Patents
Map resource localization realization system and method Download PDFInfo
- Publication number
- CN106021446A CN106021446A CN201610324207.3A CN201610324207A CN106021446A CN 106021446 A CN106021446 A CN 106021446A CN 201610324207 A CN201610324207 A CN 201610324207A CN 106021446 A CN106021446 A CN 106021446A
- Authority
- CN
- China
- Prior art keywords
- map
- user
- mouse
- resource
- unit
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Instructional Devices (AREA)
Abstract
The invention discloses a map resource localization realization system and method. The method comprises the steps of locating a specified position of a user on a current application to a corresponding longitude and latitude position on a map; calculating a graphic block number of a region where a cursor of a mouse is located according to the longitude and latitude position information obtained by locating; obtaining a plurality of corresponding map resource original graphic blocks from a map server according to all graphic block numbers obtained by calculation; and splicing the map resource original graphic blocks into a picture for a user to browse, and locally storing the obtained map resource original graphic blocks for offline use. According to the realization system and method, service encapsulation is provided for the underlying map; an upper layer does not need to pay attention to which map resource is applied; a developer does not need to pay attention to map implementation and only needs to pay attention to provision of applications for the user; and the user can perform switching according to map quality and demands provided by different map resources, so that the expansibility is high and the user experience is good.
Description
Technical field
The present invention relates to map resource exploitation applied technical field, particularly relate to a kind of map resource localization
Realize system and method.
Background technology
Along with the release of Google Earth in 2005 has made people many, one becomes apparent from recognizing accurately us
The instrument of the earth.Also driven the exploitation to map resource of a collection of earth panorama satellite photo provider simultaneously
Apply and be supplied to Internet user.
Now user can by browser conveniently browse different company (***, bing, Gao De, Baidu,
Tengxun) map resource that provides, these services also provide corresponding SDK interface simultaneously and carry out for user
Exploitation is called, and convenient invoking server interface is so that user also is able to the application program visitor into oneself
Family provides Map Services.
Although the SDK that producer can be applied easily to provide develops, but must accept different manufacturers
Imposing on user uses the advertisement of SDK to eject information, service provider's log icon of bulk and GFW pair
Also can there is application in the middle of the block of the external map vendors such as ***, and actual application and occupy wifi
Link and denouncing of off-line map can not be loaded simultaneously.And at present, off-line map function is to unmanned plane ground
It is very important that face stands in the case of the test flight of field user.Thus need a solution badly,
Break away from all restrictions of SDK.
Summary of the invention
Present invention is primarily targeted at proposition a kind of map resource localization and realize system and method, utilize
Open Internet resources, obtain map resource by open http agreement, and picture resource is carried out by this locality
Process and preserve and be supplied to user, to break away from all restrictions of SDK.
For achieving the above object, the invention provides a kind of map resource localization and realize system, including:
Positioning unit, figure block number computing unit, map server, http agreement request unit, image are aobvious
Show unit and locally stored unit;
Described positioning unit, for navigating to map by user appointment position in current application program
Corresponding longitude and latitude position;
Described figure block number computing unit, for the longitude and latitude positional information obtained according to location, calculates
The figure block number of the cursor region of mouse;
Described http agreement request unit, for obtaining from map server according to all figure block numbers obtained
Take corresponding multiple map resource original tile;
Described image-display units, browses for user for map resource original tile is combined into whole secondary picture;
Described locally stored unit, for supplying off-line in locally stored acquired map resource original tile
Use.
Wherein, described map server, including Baidu's map server, high moral map server or ***
Map server.
Wherein, this system also includes: described parameter acquiring unit, is used for according to user in current application journey
Mouse action in sequence, obtains cursor dwell position and the map scale value of mouse, single for described location
Unit provides basis on location.
Wherein, this system also includes: described figure block number computing unit, is additionally operable to calculate the light of mouse
The figure block number of the adjacent area of mark region, it is provided that to http agreement request unit.
A kind of map resource localization implementation method, including:
User appointment position in current application program is navigated to corresponding longitude and latitude position on map;
The longitude and latitude positional information obtained according to location, the segment of the cursor region calculating mouse is compiled
Number;
According to all figure block numbers calculated, obtain corresponding multiple maps money from map server
Source original tile;
These map resource original tile are combined into whole secondary picture browse for user, simultaneously in locally stored institute
The map resource original tile obtained uses for off-line.
Wherein, the described appointment position by user in current application program navigates to corresponding warp on map
The method of Position Latitude particularly as follows:
According to user's mouse action in current application program, obtain mouse cursor dwell position and
Map scale value;According to cursor dwell position and map scale value, navigate to corresponding longitude and latitude on map
Degree position.
Wherein, also include: while calculating the figure block number of cursor region of mouse, also count
Calculate the figure block number of the adjacent area of cursor region.
Compared with prior art, the present invention has following technical effect that
While the present invention realizes map resource localization, the encapsulation to bottom map providing service, upper strata
Need not pay close attention to application is that map resource, and underlying services is to upper-layer user's operation and application programming interfaces
Being just as, developer need not pay close attention to map and realize, it is only necessary to paying close attention to the application to user provides, and
And Map quality and the demand that user can provide according to differently image resource switches over, autgmentability is strong,
There is good Consumer's Experience effect.
Accompanying drawing explanation
Fig. 1 be the earth is cut take pictures after the map picture that is spliced to form;
Fig. 2 is the world map using Mercator projection drawing mode to make;
Fig. 3 is the picture example after divided numbering;
Fig. 4 is to be divided into the picture example after different part according to zoom level;
Fig. 5 is the part Baidu map example arrived by red fox browser access;
Fig. 6 is the local pictorial information of map in the Fig. 5 obtained;
Fig. 7 is the map resource localization implementation method flow chart in the embodiment of the present invention;
Fig. 8 is that the map resource localization in the embodiment of the present invention realizes system construction drawing;
Fig. 9 is the illustrated example partly obtained from Baidu's server in the embodiment of the present invention;
Figure 10 is the illustrated example partly obtained from high moral server in the embodiment of the present invention;
Figure 11 is the illustrated example partly obtained from *** server in the embodiment of the present invention;
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, do referring to the drawings further
Explanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit
Determine the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description
In, use the suffix being used for representing such as " module ", " parts " or " unit " of element only for having
It is beneficial to the explanation of the present invention, itself does not has specific meaning.Therefore, " module " can mix with " parts "
Close ground to use.
Initial data source mainly each satellite of map resource uses high power photographing unit to cut the earth
The map picture resource that then cutting takes pictures is spliced to form, as shown in Figure 1.This and generally use browser are clear
The Map Services look at is different, nor is adapted to provide for using to user, and user's at this point figure makes
With the map longitude and latitude point that cannot accurately calculate mouse place in mouse up and down sliding process.
At present, generally use Mercator projection drawing mode that map picture resource is carried out segmentation to be supplied to
User.Mercator projection principle will be described in detail below.
Mercator projection, also known as positive axis cylindrical equal-angle projection, by Holland's map scholar Mercator (G.Mercator)
Intend in wound in 1569.Assuming that the earth is enclosed in a cylinder, equator is tangent with cylinder, then at the earth
A lamp is put at center, in the graphic projection on sphere to cylinder, then cylinder is launched, is formed for
With the world map (such as Fig. 2) of a width Mercator projection, the warp after Mercator projection is uniformly to divide
Cloth, the alternative approach of latitude is to be calculated by formula
The spot projection that latitude is Φ (-90 ° < Φ < 90 °) is arrived in Mercator projection
Y=ln (tan (45 ° of+Φ/2))
This projection algorithm makes equatorial parallel closeer, and circumpolar parallel is diluter.Limit quilt
Project to infinity, so this projection is not suitable for using in high latitude area.Google Maps chooses
In the range of-π < y < π, so approximation has-85 ° < Φ < 85 °
So just can carry out, by mouse, the longitude and latitude corresponding with calculating mouse position that slide.
After being charted by Mercator, the stretching of earth picture resource south poles, forms a width histogram, we
By X, Y-axis coordinate system, picture resource being carried out segmentation numbering (as shown in Figure 3), initial point is Guinea
It is also 0 longitude that gulf goes out, and 0 latitude goes out, and we are divided into picture the little square of different part in each zoom level
Shape picture carries out encoding (such as Fig. 4), then is carrying out arranging display application program need to picture according to algorithm
The region wanted.This mode is the mode providing user's map in most Map Services.
Now it is understood that each mapping service provider is all in this manner to map picture resource
Carrying out segmentation and be supplied to user, we can be opened by red fox browser access Baidu map
Firedebug, detects following result by network.As it is shown in figure 5,
Http:// shangetu3.map.bdimg.com/it/u=x=6199;Y=1268;Z=15;V=009;Type=sate&fm
=46&udt=20150601.After obtaining its side image data up and down at the same time, it is spliced into application
The local message of a width map of display inside program, as shown in Figure 6.
Wherein x, y are that picture is carried out compiling decoding post-encoding by we, and z is the zoom level of map.Thus can
To determine that map is also processed by Baidu's map according to Mercator projection.
Based on above-mentioned principle, the core concept of the present invention is: use reverse method, from Baidu's server
Gone out the request of Baidu by open http protocol emulation, be used for obtaining the map block of coordinate points, then exist
It is spliced together and is supplied to client's use of application program, and map block is carried out being saved in local realization
Off-line map function.
For realizing the goal of the invention of the present invention, the present invention by the following technical solutions: according to user in the machine
The scaling size of the movement of mouse in program, dragging and user's switching navigates to the warp of mask body on map
Latitude, is going out, according to calculation of longitude & latitude, the figure block number that mouse place shows.Baidu ground is obtained according to numbering
The relative of mouse point is being offset by figure, *** map, the map resource original tile of high moral map
Segment is drawn in position, forms the map resource such as Fig. 6 and to user and preserves map resource.
As it is shown in fig. 7, in the present embodiment the internal processes of the whole operation of user and Map Services is such as
Under:
Step 701, according to user's mouse action in current application program, obtains the cursor dwell of mouse
Position and map scale value.
Step 702, according to cursor dwell position and map scale value, navigate to corresponding longitude and latitude on map
Degree position.
Step 703, the longitude and latitude positional information obtained according to location, calculate the cursor region of mouse
Figure block number.
Step 704, obtain the figure block number of adjacent area of the cursor region of mouse.
Step 705, all figure block numbers according to acquired cursor region and adjacent area, from hundred
Degree map, *** map or high moral map obtain corresponding multiple map resource original tile.
Step 706, these map resource original tile are combined into whole secondary picture, browse for user.Meanwhile,
In locally stored acquired map resource original tile, use for off-line.
Correspondingly, the present embodiment additionally provides a kind of map resource localization and realizes system, as shown in Figure 8,
Specifically include: parameter acquiring unit 801, positioning unit 802, figure block number computing unit 803, map
Server 804, http agreement request unit 805, image-display units 806 and locally stored unit 807.
Wherein, parameter acquiring unit 801, for according to user's mouse action in current application program,
Obtain cursor dwell position and the map scale value of mouse.
Positioning unit 802, for according to cursor dwell position and map scale value, navigates to phase on map
The longitude and latitude position answered.
Figure block number computing unit 803, for the longitude and latitude positional information obtained according to location, calculates Mus
The figure block number of target cursor region and adjacent area thereof.
Map server 804, including Baidu's map server, high moral map server or *** ground
Figure server etc..
Http agreement request unit 805, for obtaining from map server according to all figure block numbers obtained
Corresponding multiple map resource original tile.
Image-display units 806, browses for user for map resource original tile is combined into whole secondary picture.
Locally stored unit 807, for making for off-line in locally stored acquired map resource original tile
With.
By said system and method, the present embodiment encapsulation to bottom map providing service, upper strata need not
Pay close attention to application is that map resource, and upper-layer user's operation and application programming interfaces are all by underlying services
Equally.Developer need not pay close attention to map and realize, it is only necessary to paying close attention to the application to user provides.User can
Switch over Map quality and the demand provided according to differently image resource, such as Baidu's map (such as Fig. 9)
The data resource of upper labelling is abundanter, and high moral map (such as Figure 10) is more visible at metropolitan district ratio, ***
Whole chorography resource is all apparent from by map (such as Figure 11), user carry out unrestricted choice.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every
Utilize equivalent structure or equivalence flow process conversion that description of the invention and accompanying drawing content made, or directly or
Connect and be used in other relevant technical fields, be the most in like manner included in the scope of patent protection of the present invention.
Claims (7)
1. a map resource localization realizes system, it is characterised in that this system includes:
Positioning unit, figure block number computing unit, map server, http agreement request unit, image
Display unit and locally stored unit;
Described positioning unit, for navigating to map by user appointment position in current application program
Corresponding longitude and latitude position;
Described figure block number computing unit, for the longitude and latitude positional information obtained according to location, calculates
The figure block number of the cursor region of mouse;
Described http agreement request unit, for obtaining from map server according to all figure block numbers obtained
Take corresponding multiple map resource original tile;
Described image-display units, browses for user for map resource original tile is combined into whole secondary picture;
Described locally stored unit, for supplying off-line in locally stored acquired map resource original tile
Use.
2. map resource localization as claimed in claim 1 realizes system, it is characterised in that describedly
Figure server, including Baidu's map server, high moral map server or *** map server.
3. map resource localization as claimed in claim 1 realizes system, it is characterised in that this system
Also include: described parameter acquiring unit, for according to user's mouse action in current application program,
Obtain cursor dwell position and the map scale value of mouse, provide basis on location for described positioning unit.
4. map resource localization as claimed in claim 1 realizes system, it is characterised in that this system
Also include: described figure block number computing unit, be additionally operable to calculate cursor region adjacent of mouse
The figure block number in region, it is provided that to http agreement request unit.
5. a map resource localization implementation method, it is characterised in that the method includes:
User appointment position in current application program is navigated to corresponding longitude and latitude position on map;
The longitude and latitude positional information obtained according to location, the segment of the cursor region calculating mouse is compiled
Number;
According to all figure block numbers calculated, obtain corresponding multiple maps money from map server
Source original tile;
These map resource original tile are combined into whole secondary picture browse for user, simultaneously in locally stored institute
The map resource original tile obtained uses for off-line.
6. map resource localization implementation method as claimed in claim 5, it is characterised in that described general
User position of specifying in current application program navigates to the method tool of corresponding longitude and latitude position on map
Body is:
According to user's mouse action in current application program, obtain mouse cursor dwell position and
Map scale value;According to cursor dwell position and map scale value, navigate to corresponding longitude and latitude on map
Degree position.
7. map resource localization implementation method as claimed in claim 5, it is characterised in that the method
In also include: while calculating the figure block number of cursor region of mouse, also calculate cursor
The figure block number of the adjacent area of region.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610324207.3A CN106021446A (en) | 2016-05-16 | 2016-05-16 | Map resource localization realization system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610324207.3A CN106021446A (en) | 2016-05-16 | 2016-05-16 | Map resource localization realization system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106021446A true CN106021446A (en) | 2016-10-12 |
Family
ID=57098450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610324207.3A Pending CN106021446A (en) | 2016-05-16 | 2016-05-16 | Map resource localization realization system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106021446A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107356259A (en) * | 2017-09-05 | 2017-11-17 | 上海博泰悦臻网络技术服务有限公司 | The navigation method and system, car-mounted terminal of a kind of changeable electronic map |
CN109389678A (en) * | 2017-08-08 | 2019-02-26 | 龙芯中科技术有限公司 | Determine the method, device and equipment of operation focus coordinate |
CN115102948A (en) * | 2022-06-24 | 2022-09-23 | 阿波罗智联(北京)科技有限公司 | Automatic downloading method, device and equipment of map tiles and storage medium |
CN117131249B (en) * | 2023-10-26 | 2024-01-12 | 湖南省不动产登记中心 | Intelligent management method and system for natural resource data |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6734867B1 (en) * | 2000-06-28 | 2004-05-11 | Micron Technology, Inc. | Cache invalidation method and apparatus for a graphics processing system |
CN1828586A (en) * | 2005-12-21 | 2006-09-06 | 泰为信息科技(上海)有限公司 | Computer electronic map formation and display method based on Flash technology |
WO2007095184A2 (en) * | 2006-02-13 | 2007-08-23 | Decarta, Inc. | Draggable maps |
CN100590624C (en) * | 2008-03-26 | 2010-02-17 | 北京航空航天大学 | Method for exhibiting multidimensional space data based on SOA structure |
CN102750180A (en) * | 2012-05-28 | 2012-10-24 | 中国科学院遥感应用研究所 | Multithreading display mechanism of two-dimensional map tiles |
-
2016
- 2016-05-16 CN CN201610324207.3A patent/CN106021446A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6734867B1 (en) * | 2000-06-28 | 2004-05-11 | Micron Technology, Inc. | Cache invalidation method and apparatus for a graphics processing system |
CN1828586A (en) * | 2005-12-21 | 2006-09-06 | 泰为信息科技(上海)有限公司 | Computer electronic map formation and display method based on Flash technology |
WO2007095184A2 (en) * | 2006-02-13 | 2007-08-23 | Decarta, Inc. | Draggable maps |
CN100590624C (en) * | 2008-03-26 | 2010-02-17 | 北京航空航天大学 | Method for exhibiting multidimensional space data based on SOA structure |
CN102750180A (en) * | 2012-05-28 | 2012-10-24 | 中国科学院遥感应用研究所 | Multithreading display mechanism of two-dimensional map tiles |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109389678A (en) * | 2017-08-08 | 2019-02-26 | 龙芯中科技术有限公司 | Determine the method, device and equipment of operation focus coordinate |
CN109389678B (en) * | 2017-08-08 | 2022-06-17 | 龙芯中科技术股份有限公司 | Method, device and equipment for determining operation focus coordinates |
CN107356259A (en) * | 2017-09-05 | 2017-11-17 | 上海博泰悦臻网络技术服务有限公司 | The navigation method and system, car-mounted terminal of a kind of changeable electronic map |
CN115102948A (en) * | 2022-06-24 | 2022-09-23 | 阿波罗智联(北京)科技有限公司 | Automatic downloading method, device and equipment of map tiles and storage medium |
CN117131249B (en) * | 2023-10-26 | 2024-01-12 | 湖南省不动产登记中心 | Intelligent management method and system for natural resource data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1999977B1 (en) | Location-based caching for mobile devices | |
EP2790176B1 (en) | Computing systems, devices and methods for rendering maps remotely from an host application | |
US20150062114A1 (en) | Displaying textual information related to geolocated images | |
US20110130949A1 (en) | Method and apparatus for transforming three-dimensional map objects to present navigation information | |
US20130339891A1 (en) | Interactive Map | |
Möller et al. | Experimental evaluation of user interfaces for visual indoor navigation | |
CN106021446A (en) | Map resource localization realization system and method | |
TW201024671A (en) | Navigation method and system of geo-locations by identifying web pages | |
CN103069370A (en) | Methods, apparatuses and computer program products for automatically generating suggested information layers in augmented reality | |
EP2656249A1 (en) | Methods, apparatuses and computer program products for converting a geographical database into a map tile database | |
Tsai et al. | Three‐dimensional positioning from Google street view panoramas | |
CN107426272A (en) | A kind of small routine method for pushing, device and computer-readable storage medium | |
CN103134499A (en) | Navigation method and navigation device | |
JP5770179B2 (en) | Presenting a digital map | |
CN109101613A (en) | Interest point indication method and device, electronic equipment, storage medium for vehicle | |
JP2012079129A (en) | Image processing apparatus, program, and image processing method | |
CN104982090A (en) | Personal information communicator | |
US20130061147A1 (en) | Method and apparatus for determining directions and navigating to geo-referenced places within images and videos | |
Sekhavat et al. | The effect of tracking technique on the quality of user experience for augmented reality mobile navigation | |
US20150135114A1 (en) | Distinguishable geographic area presentation | |
CN113822263A (en) | Image annotation method and device, computer equipment and storage medium | |
Aydın et al. | ARCAMA-3D–a context-aware augmented reality mobile platform for environmental discovery | |
CN110799969B (en) | Semantic vector tablet | |
Ranasinghe et al. | Pedestrian navigation and GPS deteriorations: User behavior and adaptation strategies | |
US20160321524A1 (en) | Location based print controller with external data for amenities |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161012 |