CN104468820B - A kind of Map Services resource acquiring method and client - Google Patents
A kind of Map Services resource acquiring method and client Download PDFInfo
- Publication number
- CN104468820B CN104468820B CN201410810737.XA CN201410810737A CN104468820B CN 104468820 B CN104468820 B CN 104468820B CN 201410810737 A CN201410810737 A CN 201410810737A CN 104468820 B CN104468820 B CN 104468820B
- Authority
- CN
- China
- Prior art keywords
- tile
- client
- request
- server
- feedback
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of Map Services resource acquiring methods, for reducing the interaction times of client and server, save the time that client obtains map tile at server, and mitigate the burden of server.Present invention method includes:Client determines that tile number of request, client determine solicited message, and solicited message is sent to server, which is used to represent that user end to server request tile asks several map tiles.The embodiment of the present invention additionally provides relevant client.
Description
Technical field
The present invention relates to the communications field more particularly to a kind of Map Services resource acquiring method and clients.
Background technology
With the development of science and technology, the mankind to the exploration means of the earth also gradually perfect, such as GIS-Geographic Information System
(GIS, Geographic Information System).GIS is a kind of specific space information system, in computer
Hardware and software system support under, to the related geographic distribution data in earth surface layer (including atmosphere) space all or in part into
Row acquisition, storage, computing, are analyzed, are shown and described management.
In GIS in use, client map tile information as needed, is configured to corresponding uniform resource locator
(URL, Uniform Resource Locator) request Concurrency gives server, just dependency number after the server process request
According to returning to client.Wherein, every map tile corresponds to a URL.Due to client individual to server ask map watt
Sector-meeting so that the interaction times of client and server are more, therefore more takes, and will be more in the improved method of the prior art therefore
A request is put into different threads, carries out multithreading download.
But even if existing GIS carries out multiple threads to request, single request still corresponds in each thread
Single map tile.Therefore, client and the interaction times of server do not subtract substantially in the improved method of the prior art
It is few, it is very limited to the saving of time, and the burden of server cannot be reduced.
The content of the invention
An embodiment of the present invention provides a kind of Map Services resource acquiring method and client, can just reduce client with
The interaction times of server mitigate the burden of server.
Map Services resource acquiring method provided in an embodiment of the present invention includes:
Client determines tile number of request, and the tile number of request is used to represent that the client is treated to ask to server
Map tile quantity;
The client determines solicited message, and the solicited message is sent to the server, the solicited message
For representing that the client asks the tile to ask several map tiles to the server.
Client provided in an embodiment of the present invention includes:
Tile number of request determining module, for determining tile number of request, the tile number of request is used to represent the client
Hold the quantity for the map tile for treating to be asked to server;
The solicited message for determining solicited message, and is sent to the server, institute by request message determining module
Solicited message is stated for representing that the client asks the tile to ask several map tiles to the server.
In Map Services resource acquiring method provided in an embodiment of the present invention, client determines tile number of request, client
It determines solicited message, and solicited message is sent to server, which is used to represent user end to server request watt
Piece asks several map tiles.By such method so that client can be more by once asking just to ask to server
Map tile is opened, which reduces clients and the interaction times of server, have saved client and have obtained ground at server
The time of figure tile, and alleviate the burden of server.
Description of the drawings
Fig. 1 is Map Services resource acquiring method one embodiment flow chart in the embodiment of the present invention;
Fig. 2 is another embodiment flow chart of Map Services resource acquiring method in the embodiment of the present invention;
Fig. 3 is client one embodiment structure chart in the embodiment of the present invention.
Specific embodiment
An embodiment of the present invention provides a kind of Map Services resource acquiring method, for reducing the friendship of client and server
Mutual number mitigates the burden of server.The embodiment of the present invention additionally provides relevant client, will be described respectively below.
The basic procedure of Map Services resource acquiring method provided in an embodiment of the present invention refers to Fig. 1, mainly includes:
101st, client determines tile number of request;
Client determines tile number of request, which is used to represent that client treats the map to ask to server
The quantity of tile.It is not limited in value the present embodiment of tile number of request, it is preferable that the numerical value of tile number of request is more than 1.
Wherein, client determines that the method for tile number of request has very much, and tile number of request, client are calculated including client
Setting acquiescence tile number of request, client receive tile number of request being manually set etc., are not limited in the present embodiment.
Preferably, client can determine the maximum for the map tile number that server can provide, and by the maximum
It is determined as tile number of request.Client determines that the method for the maximum for the map tile number that server can provide will be below
It is described in detail in embodiment, is not limited in the present embodiment.
102nd, client determines solicited message, and the solicited message is sent to server.
Client determines solicited message, and the solicited message is sent to server.The solicited message is used to represent:Client
It holds to server request tile and asks several map tiles.
Wherein, client can determine solicited message as follows, and the solicited message is sent to server:
Step 1:Client construction tile is asked in several map tiles, the URL corresponding to each map tile.Specifically
, client can be corresponded to according to the information such as the line number of each map tile, row number, rank and the ip of service, port, construction
URL.
Step 2:Client is associated with a local simple sentence handle object by the URL corresponding to each map tile.Specifically
, client can be associated with a local simple sentence handle object by each URL by CURL.Wherein, curl is to utilize URL languages
What method worked under command line mode increase income file transfer conveyance.Client can also be by other instruments by each URL and one
A local simple sentence handle object is associated, and does not limit herein.It should be understood that the shared several local simple sentence handle objects of tile request
It is associated.
Step 3:Client is by the associated local simple sentence handle objects and one of all URLs corresponding with each map tile
A more handle objects in local are associated.Specifically, client please by the tile described in step 3 by CURL or other instruments
Several local simple sentence handle objects is asked to be associated in the more handle objects in a local.
Step 4:Client determines solicited message, and the solicited message is sent to the server, the request packet
Include the more handle objects in the local.Specifically, client can will include local more handles pair by CURL or other instruments
The solicited message of elephant is sent to server.After server receives solicited message, the local can be obtained from the solicited message
More handle objects, and then multiple local simple sentence handle objects are obtained, finally obtain the corresponding URL of each map tile.Server root
According to the corresponding URL of each map tile, determine map tile, and definite map tile is fed back into client.
The solicited message is sent to server, this implementation by client also to determine solicited message by other steps
It is not limited in example.
In the present embodiment, client determines that tile number of request, client determine solicited message, and solicited message is sent to
Server, the solicited message are used to represent that user end to server request tile asks several map tiles.Side in this way
Method so that client can by once asking just to ask multiple map tiles to server, which reduces client with
The interaction times of server have saved client and the time of map tile are obtained at server, and alleviate the negative of server
Load.
Above embodiment gives the basic procedure of Map Services resource acquiring method provided in an embodiment of the present invention,
In, client asks multiple map tiles by once asking to server, to reduce the interaction times with server.But
Network bandwidth between client and server is continually changing, therefore the map tile number that server can be provided is also
It is continually changing.If the map tile number of user end to server request is excessive, one side client can be because of excessive structure
It makes URL and wastes memory source, on the other hand can increase the load of server or even cause service abnormal;If client is to clothes
The map tile number that device is asked of being engaged in is too small, then the whole efficiency of Map Services resource acquiring method can be caused not high.Therefore, it is
It is adapted with continually changing network, client needs to receive the map tile of server feedback, and determines server feedback
Map tile tilc feedback number, then according to tilc feedback number correct tile number of request.Wherein, tilc feedback number is used for table
Show the number of the map tile of server feedback.Specific modification method refers to Fig. 2, and one kind provided in an embodiment of the present invention is more
Flow for the Map Services resource acquiring method of refinement includes:
201st, client determines the maximum for the map tile number that server can provide;
Specifically, client can determine the maximum for the map tile number that server can provide as follows:
Step 1:Client obtains the width and height of single map tile at server.Usually, with a map
In data, the size of map tile is all identical, for example is all 256*256 pixel.
Step 2:Client is according to the width and height of the single map tile, the size of calculating single map tile.
Wherein, the method for calculating the size of single map tile has very much, is not limited in the present embodiment.If such as according to bmp forms
If calculating, since a pixel needs 4 byte representations, therefore:Size=4 of single map tile × single map tile
The height of width × single map tile.
Step 3:Client determines current network bandwidth.Wherein, step 3 can also be placed on step 2 or step 1 it
Before, it does not limit herein.
Step 4:The ratio of current network bandwidth and the size of single map tile is determined as server by client
The maximum for the map tile number that can be provided.It should be understood that current network bandwidth and the size of single map tile
Ratio, as ideally, client very occupies network bandwidth and service can provide tile situation as much as possible again
Under, map tile number that client is received.
Client can also determine the maximum for the map tile number that server can provide, this implementation by other steps
It is not limited in example.
202nd, client determines tile number of request;
203rd, client determines solicited message, and the solicited message is sent to server.
Step 202,203 with step 101,102 essentially identical, be not repeated herein.
Preferably, in step 202, tile number of request is the maximum for the map tile number that can be provided no more than server
Numerical value.
204th, client receives the map tile of server feedback, and determines that the tile of the map tile of server feedback is anti-
Present number;
It should be understood that tilc feedback number is not more than tile number of request, if current network conditions are undesirable, tilc feedback number
Tile number of request can be less than.The maximum for the map tile number that tilc feedback number can also be provided no more than server.
Wherein, if tilc feedback number is less than the maximum determined in step 201, step 205 is performed;
If tilc feedback number is not less than the maximum determined in step 201, step 206 is performed.
205th, client is using increased tilc feedback number as revised tile number of request;
If tilc feedback number be less than step 201 in determine maximum, client using increased tilc feedback number as
Revised tile number of request.Wherein, client is using increased tilc feedback number as the method for revised tile number of request
Have very much, simple example is done with an example below:
Client can set a preset value, the number of the preset value by modes such as default setting, reception artificial settings
It is not limited at place.After tilc feedback number is determined, client calculates tile number of request and the difference of tilc feedback number.If
Tile number of request and the difference of tilc feedback number are not more than the preset value, then tile number of request is modified to by client:Tile is anti-
Feedback number adds 1;If tile number of request and the difference of tilc feedback number are more than the preset value, client corrects tile number of request
For:Tilc feedback number adds the preset value.Mode in this way can so that server cannot carry when Network status is undesirable
For enough map tile resources, the number of the number and the map tile of user end to server request of the map tile of feedback
When differing more, by the number of the map tile of user end to server request quickly close to current Network status;Work as net
Network situation is ideal, and server can provide enough map tile resources, the number of the map tile of feedback and client to
When the number difference of the map tile of server request is less, by the number of the map tile of user end to server request more
Accurately close to current Network status.
Client can also regard increased tilc feedback number as revised tile number of request, this reality by other methods
It applies in example and does not limit.
206th, client is using tilc feedback number as revised tile number of request.
If tilc feedback number is not less than the maximum determined in step 201, client is using tilc feedback number as amendment
Tile number of request afterwards.That is, if server feedback reaches the map watt that server can provide to the map tile number of client
The piece number purpose maximum, then client is using tilc feedback number as revised tile number of request.
It should be understood that after revised tile number of request has been obtained in step 205 or 206, after can this be corrected
The tile number of request that is determined as client in step 202 of tile number of request, cycle performs step 202 to 206, so that objective
Family end endlessly obtains Map Services resource at server.Mathematically it can be proved that when taking steps what is lifted in 205
The method that example is provided, and cycle perform step 202 to 206 when, when tilc feedback number=tile number of request -1, this method
Reach stable state.
In the present embodiment, client determines that tile number of request, client determine solicited message, and solicited message is sent to
Server, the solicited message are used to represent that user end to server request tile asks several map tiles.Side in this way
Method so that client can by once asking just to ask multiple map tiles to server, which reduces client with
The interaction times of server have saved client and the time of map tile are obtained at server, and alleviate the negative of server
Load.Meanwhile client, according to the number of the map tile of server feedback, can progressively determine most to paste by way of exploration
The tile number of request of nearly current network conditions, so can reasonably utilize network bandwidth, improve the utilization ratio of network.
For the ease of understanding above-described embodiment, it is described below by taking a specific application scenarios as an example.
In generalized information system, client obtains the bandwidth of current network, is 100Mb/s.Client obtains at server
The width of the single map tile of bmp forms is 256 pixels with height, then calculate the size of single map tile=
256*256*4=262144 byte.Then client determines that the maximum for the map tile number that server can provide is
100M ÷ 262144=381.47/s, behind fractions omitted part, obtain the maximum for the map tile number that server can provide
It is worth for 381.
Client determines tile number of request as the maximum 381, and constructs the URL of 381 tiles, using CURL that this is every
A URL is associated with a local simple sentence handle object respectively, then by this 381 local simple sentence handle objects and the more handles in local
Object is associated.Client uses the execution function of CURL, according to the local simple sentence handle object generation solicited message, to server
Ask 381 map tile data.After server receives solicited message, more of the local can be obtained from the solicited message
Handle object, and then 381 local simple sentence handle objects are obtained, finally obtain the corresponding URL of each map tile.Server is according to each
The corresponding URL of map tile determines map tile, and definite map tile is fed back to client.
Client receives the map tile of server feedback, and determines the tilc feedback number of the map tile of server feedback
For 360.
Wherein, preset value 10 is artificially provided in client.Since tile number of request and the difference of tilc feedback number are 21,
More than 10, therefore tile number of request is modified to 360+10=370 by client, and using revised tile number of request 370 as most
New tile number of request asks map tile data to server again.This time client receives the map watt of server feedback
The tilc feedback number of piece is 367.
Since new tile number of request and the difference of tilc feedback number are 3, less than 10, therefore client repaiies tile number of request
Just it is 367+1=368, and using revised tile number of request 368 as newest tile number of request, is asked again to server
Map tile data.The tilc feedback number that this time client receives the map tile of server feedback is 368.
Since new tile number of request and the difference of tilc feedback number are 0, but new tilc feedback number is less than server energy
The maximum 381 of the map tile number of offer, therefore tile number of request is modified to 368+1=369 by client, and will be after amendment
Tile number of request 369 be used as newest tile number of request, again to server ask map tile data.This time client's termination
The tilc feedback number for receiving the map tile of server feedback is still 368.
Afterwards, client asks 369 map tiles to server every time, obtains 368 maps watt of server feedback
Piece endlessly obtains Map Services resource at server like this.
The embodiment of the present invention additionally provides a kind of client, applied to Map Services resource acquisition system, referring to Fig. 3,
Including:
Tile number of request determining module 301, for determining tile number of request, the tile number of request is used to represent the visitor
Treat the quantity for the map tile to be asked to server in family end;
The solicited message for determining solicited message, and is sent to the service by request message determining module 302
Device, the solicited message are used to represent that the client asks the tile to ask several map tiles to the server.
In the present embodiment, tile number of request determining module 301 determines that tile number of request, request message determining module 302 are true
Determine solicited message, and solicited message is sent to server, which is used to represent that user end to server asks tile
Ask several map tiles.By such method so that client can be by once asking just to ask multiple to server
Map tile, which reduces clients and the interaction times of server, have saved client and map is obtained at server
The time of tile, and alleviate the burden of server.
Wherein, request message determining module 302 can be there are many structure.Such as including:
URL structural units 3021 are asked in several map tiles for constructing the tile, corresponding to each map tile
URL;
Simple sentence handle associative cell 3022, for by URL and one corresponding to each map tile local simple sentence handle
Object is associated;
More handle associative cells 3023, for by all associated locals of URL corresponding with each map tile
Simple sentence handle object is associated with the more handle objects in a local;
The solicited message for determining solicited message, and is sent to the service by request message determination unit 3024
Device, the solicited message include the more handle objects in the local.
In order to be adapted with continually changing network, client needs to receive the map tile of server feedback, and determines
Then the tilc feedback number of the map tile of server feedback corrects tile number of request according to tilc feedback number.Preferably, client
End can also include:
Tilc feedback number determining module 303 for receiving the map tile of the server feedback, and determines the service
The tilc feedback number of the map tile of device feedback, the tilc feedback number are used to represent the map tile of the server feedback
Number;
Tile number of request correcting module 304, for according to the tilc feedback number, correcting the tile number of request.
Wherein, the client can also include maximum determining module 305, can provide for determining the server
The maximum of map tile number;
If client includes maximum determining module 305, tile number of request correcting module specifically can be used for:
It, please using increased tilc feedback number as revised tile if the tilc feedback number is less than the maximum
Ask several;
It, please using the tilc feedback number as revised tile if the tilc feedback number is not less than the maximum
Ask several.
Preferably, the tile number of request correcting module can be also used for:If the tile number of request and the tile are anti-
The difference of number is presented no more than preset value, then is modified to the tile number of request:The tilc feedback number adds 1.
Preferably, the tile number of request correcting module can be also used for:If the tile number of request and the tile are anti-
The difference for presenting number is more than preset value, then is modified to the tile number of request:The tilc feedback number adds the preset value.
For the ease of understanding above-described embodiment, it is described below by taking a specific application scenarios as an example.
In generalized information system, maximum determining module 305 obtains the bandwidth of current network, is 100Mb/s.Client is from clothes
The width and height that the single map tile of bmp forms is obtained at business device are 256 pixels, then calculate single map tile
Size=256*256*4=262144 byte.Then client determines map tile number that server can provide most
It is 262144=381.47/s of 100M ÷ to be worth greatly, behind fractions omitted part, obtains the map tile number that server can provide
Maximum be 381.
Tile number of request determining module 301 determines tile number of request as the maximum 381, and URL structural units 3021 construct
The URL of 381 tiles, simple sentence handle associative cell 3022 using CURL by each URL respectively with a local simple sentence handle object
Associated, more handle associative cells 3023 are associated with the more handle objects in a local by this 381 local simple sentence handle objects.Please
Execution function of the message determination unit 3024 using CURL is sought, according to the local simple sentence handle object generation solicited message, to service
Device asks 381 map tile data.After server receives solicited message, it is more the local can be obtained from the solicited message
Handle object, and then 381 local simple sentence handle objects are obtained, finally obtain the corresponding URL of each map tile.Server is according to every
The corresponding URL of a map tile determines map tile, and definite map tile is fed back to client.
Tilc feedback number determining module 303 receives the map tile of server feedback, and determines the map of server feedback
The tilc feedback number of tile is 360.
Wherein, preset value 10 is artificially provided in client.Since tile number of request and the difference of tilc feedback number are 21,
More than 10, therefore tile number of request is modified to 360+10=370 by tile number of request correcting module 304, and tile number of request determines mould
Block 301 is using revised tile number of request 370 as newest tile number of request, and request message determining module 302 is again to clothes
Business device request map tile data.The tilc feedback number that this time client receives the map tile of server feedback is 367.
Since new tile number of request and the difference of tilc feedback number are 3, less than 10, therefore tile number of request correcting module
Tile number of request is modified to 367+1=368 by 304, and tile number of request determining module 301 is by revised tile number of request 368
As newest tile number of request, request message determining module 302 asks map tile data to server again.This time client
The tilc feedback number that end receives the map tile of server feedback is 368.
Since new tile number of request and the difference of tilc feedback number are 0, but new tilc feedback number is less than server energy
The maximum 381 of the map tile number of offer, therefore tile number of request is modified to 368+1 by tile number of request correcting module 304
=369, using revised tile number of request 369 as newest tile number of request, request disappears tile number of request determining module 301
It ceases determining module 302 and asks map tile data to server again.This time client receives the map tile of server feedback
Tilc feedback number still be 368.
Afterwards, request message determining module 302 asks 369 map tiles to server every time, obtains server feedback
368 map tiles, like this endlessly at server obtain Map Services resource.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit may be referred to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
Division is only a kind of division of logic function, can there is other dividing mode, such as multiple units or component in actual implementation
It may be combined or can be integrated into another system or some features can be ignored or does not perform.It is another, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit
It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical location, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be employed in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a storage medium, is used including some instructions so that a computer
Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Embodiment is stated the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding
The technical solution recorded in each embodiment is stated to modify or carry out equivalent substitution to which part technical characteristic;And these
Modification is replaced, and the essence of appropriate technical solution is not made to depart from the spirit and scope of various embodiments of the present invention technical solution.
Claims (10)
1. a kind of Map Services resource acquiring method, which is characterized in that including:
Client determines tile number of request, and the tile number of request is used to represent that the client treats the ground to ask to server
The quantity of figure tile;
The client determines solicited message, and the solicited message is sent to the server, and the solicited message is used for
Represent that the client asks the tile to ask several map tiles to the server.
2. Map Services resource acquiring method according to claim 1, which is characterized in that the client determines request letter
It ceases, and the solicited message is sent to the server to include:
The client constructs the tile and asks in several map tiles, the URL corresponding to each map tile;
The client is associated with a local simple sentence handle object by the URL corresponding to each map tile;
The client is by all associated local simple sentence handle objects of URL corresponding with each map tile and a sheet
The more handle objects in ground are associated;
The client determines solicited message, and the solicited message is sent to the server, and the solicited message includes
The more handle objects in local.
3. Map Services resource acquiring method according to claim 1 or 2, which is characterized in that the client determines please
Information is sought, and the solicited message is sent to after the server and is further included:
The client receives the map tile of the server feedback, and determines watt of the map tile of the server feedback
Piece feedback coefficient, the tilc feedback number are used to represent the number of the map tile of the server feedback;
The client corrects the tile number of request according to the tilc feedback number.
4. Map Services resource acquiring method according to claim 3, which is characterized in that the client determines that tile please
It asks and is further included before number:
The client determines the maximum for the map tile number that the server can provide;
According to the tilc feedback number, correct the tile number of request includes the client:
If the tilc feedback number is less than the maximum, the client is using increased tilc feedback number as revised
Tile number of request;
If the tilc feedback number is not less than the maximum, the client is using the tilc feedback number as revised
Tile number of request.
5. Map Services resource acquiring method according to claim 4, which is characterized in that if the tilc feedback number is less than
The maximum, then the client include increased tilc feedback number as revised tile number of request:
If the difference of the tile number of request and the tilc feedback number, no more than preset value, the client is by the tile
Number of request is modified to:The tilc feedback number adds 1;
And/or
If the tile number of request and the difference of the tilc feedback number are more than preset value, the client please by the tile
Number is asked to be modified to:The tilc feedback number adds the preset value.
6. a kind of client, applied to Map Services resource acquisition system, which is characterized in that including:
Tile number of request determining module, for determining tile number of request, the tile number of request is used to represent that the client is treated
The quantity for the map tile to be asked to server;
The solicited message for determining solicited message, and is sent to the server by request message determining module, described to ask
Information is sought for representing that the client asks the tile to ask several map tiles to the server.
7. client according to claim 6, which is characterized in that the request message determining module includes:
URL structural units are asked for constructing the tile in several map tiles, the URL corresponding to each map tile;
Simple sentence handle associative cell, for the URL corresponding to each map tile is related to a local simple sentence handle object
Connection;
More handle associative cells, for by all associated local simple sentence handles pair of URL corresponding with each map tile
As associated with the more handle objects in a local;
The solicited message for determining solicited message, and is sent to the server by request message determination unit, described to ask
Information is asked to include the more handle objects in the local.
8. the client according to claim 6 or 7, which is characterized in that the client further includes:
Tilc feedback number determining module for receiving the map tile of the server feedback, and determines the server feedback
Map tile tilc feedback number, the tilc feedback number be used for represent the server feedback map tile number;
Tile number of request correcting module, for according to the tilc feedback number, correcting the tile number of request.
9. client according to claim 8, which is characterized in that the client further includes:
Maximum determining module, for determining the maximum of map tile number that the server can provide;
The tile number of request correcting module is specifically used for:
If the tilc feedback number is less than the maximum, increased tilc feedback number is asked as revised tile
Number;
If the tilc feedback number is not less than the maximum, the tilc feedback number is asked as revised tile
Number.
10. client according to claim 9, which is characterized in that the tile number of request correcting module is additionally operable to:
If the tile number of request and the difference of the tilc feedback number are not more than preset value, by the tile number of request amendment
For:The tilc feedback number adds 1;
And/or
If the tile number of request and the difference of the tilc feedback number are more than preset value, by the tile number of request amendment
For:The tilc feedback number adds the preset value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410810737.XA CN104468820B (en) | 2014-12-23 | 2014-12-23 | A kind of Map Services resource acquiring method and client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410810737.XA CN104468820B (en) | 2014-12-23 | 2014-12-23 | A kind of Map Services resource acquiring method and client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104468820A CN104468820A (en) | 2015-03-25 |
CN104468820B true CN104468820B (en) | 2018-05-22 |
Family
ID=52914171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410810737.XA Active CN104468820B (en) | 2014-12-23 | 2014-12-23 | A kind of Map Services resource acquiring method and client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104468820B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6650998B1 (en) * | 1996-03-11 | 2003-11-18 | At&T Corp. | Information Search System for enabling a user of a user terminal to search a data source |
CN102968442A (en) * | 2012-10-22 | 2013-03-13 | 武大吉奥信息技术有限公司 | Network map tile service aggregation method and system |
CN103177577A (en) * | 2011-12-26 | 2013-06-26 | 北京掌城科技有限公司 | Dynamic traffic information service providing method based on map layer overlapping |
CN103744995A (en) * | 2014-01-23 | 2014-04-23 | 广东中科遥感技术有限公司 | Thematic map building method and mobile terminal applying same |
CN104079672A (en) * | 2014-07-22 | 2014-10-01 | 江苏省城市规划设计研究院 | Client monitoring based method for dynamically selecting on-line tile map servers |
-
2014
- 2014-12-23 CN CN201410810737.XA patent/CN104468820B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6650998B1 (en) * | 1996-03-11 | 2003-11-18 | At&T Corp. | Information Search System for enabling a user of a user terminal to search a data source |
CN103177577A (en) * | 2011-12-26 | 2013-06-26 | 北京掌城科技有限公司 | Dynamic traffic information service providing method based on map layer overlapping |
CN102968442A (en) * | 2012-10-22 | 2013-03-13 | 武大吉奥信息技术有限公司 | Network map tile service aggregation method and system |
CN103744995A (en) * | 2014-01-23 | 2014-04-23 | 广东中科遥感技术有限公司 | Thematic map building method and mobile terminal applying same |
CN104079672A (en) * | 2014-07-22 | 2014-10-01 | 江苏省城市规划设计研究院 | Client monitoring based method for dynamically selecting on-line tile map servers |
Also Published As
Publication number | Publication date |
---|---|
CN104468820A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102752137B (en) | The apparatus and method of virtual machine network parameter are initiatively set | |
CN108574706B (en) | Media file pushing method and device | |
CN106325998A (en) | Method and device for deploying application based on cloud computing | |
CN104484469B (en) | One kind supports more non-stop-machine expansion methods of hash map data base cluster systems | |
CN107392842A (en) | Image stylization processing method, device, computing device and computer-readable storage medium | |
CN102929989B (en) | The load-balancing method of a kind of geographical spatial data on cloud computing platform | |
CN104461739B (en) | A kind of virtual machine batch dispositions method based on cloudsim platforms | |
CN110213327A (en) | A kind of resource regulating method based on edge calculations, apparatus and system | |
CN105205154A (en) | Data migration method and device | |
CN106169961B (en) | The network parameter processing method and processing device of neural network based on artificial intelligence | |
CN106021512A (en) | Page refresh method and apparatus | |
CN106611001A (en) | Method, device and system for checking consistency of data in database tables in virtual machines | |
CN114492849B (en) | Model updating method and device based on federal learning | |
CN109842652A (en) | A kind of method for uploading of file, terminal, Cloud Server and computer storage medium | |
CN104283963A (en) | Distributed and collaborative type CDN load balancing method | |
CN104320460A (en) | Big data processing method | |
CN113051102B (en) | File backup method, device, system, storage medium and computer equipment | |
CN102647470A (en) | Cloud download method in on-line application platform and on-line application platform system | |
CN106101183A (en) | The transfer method and apparatus of the source of returning request and time origin system | |
CN102201922A (en) | Data charging method and relevant apparatus | |
CN103634385A (en) | System, method and server for data synchronizing | |
CN104468820B (en) | A kind of Map Services resource acquiring method and client | |
CN105099885A (en) | Information transmitting method and device | |
CN109343650B (en) | Maximum power point tracking method, solar controller and related equipment | |
CN106789742A (en) | A kind of distribution method of the heterogeneous secure resource in the case where constraint is spent |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |