Summary of the invention
The problem to be solved in the present invention is the information reusability that improves in the existing Geographic Information System.
In order to address the above problem, one embodiment of the present of invention have provided a kind of geographical location information disposal route, comprising:
GIS middleware device is selected the GIS server after receiving the geographic position request message that comes from client;
This geographic position request message is transmitted to selected GIS server;
The GIS server is replied the geographic position response message according to described geographic position request message to described GIS middleware device;
GIS middleware device sends to described client with described geographic position response message.
In order to address the above problem, an alternative embodiment of the invention provides a kind of GIS middleware device, comprising:
The first interface communication module, the geographic position request message that comes from client that is used for receiving sends to routing module, and the geographic position response message that will come from routing module sends to this client;
Routing module, be used for when receiving the geographic position request message that comes from the first interface communication module, select the GIS server, this geographic position request message is sent to the second interface communication module, and the geographic position response message that will come from the second interface communication module sends to the first interface communication module;
The second interface communication module, this geographic position request message that is used for coming from routing module carries out being transmitted to the selected GIS server of routing module after the protocol adaptation, and the geographic position response message that this GIS server is replied carries out sending to routing module after the protocol adaptation.
In order to address the above problem, another embodiment of the present invention provides a kind of geographic position information system, comprises GIS middleware device of the present invention, and comprises:
The GIS server links to each other with described GIS middleware device, is used for preserving and providing geographical location information;
The charging center links to each other with described GIS middleware device, is used to receive the charge information that comes from described charging wholesale price module and carries out accounting processing;
Client links to each other with described GIS middleware device, is used for sending the geographic position request message to described GIS middleware device the geographical location information in request inquiry or the renewal GIS server.
By the present invention, not only can realize mobile location service, also can realize other geographical location information services.And because function and other equipment such as GIS server in the geographic position information system that GIS middleware device is realized are relatively independent, therefore, GIS middleware device can be reused, other equipment in the system do not need to reset yet, thereby help improving usage factor of system resource, also help improving the extensibility of system.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Embodiment
Embodiment 1
Present embodiment provides a kind of geographic position information system, as shown in Figure 3, the subscription client 60 and content supplier (Content Provider, the abbreviation: CP client 70 CP) that comprise GIS middleware device 10 and the local GIS server 20 that is connected with GIS middleware device 10, outside GIS server 30, charging center 40, SP client 50, request geo-location service.
Wherein, middleware is a kind of independently system software or service routine, and Distributed Application software is by this software shared resource between different technology, and middleware is positioned on the operating system of client-server, Management Calculation resource and network service.The middleware device is the device that can realize the middleware function.Local GIS server 20 and outside GIS server 30 all can be used to preserve geographical location information for one or more, and also local GIS server 20 can be set as required in this geographic position information system; Outside GIS server 30 can link to each other with GIS middleware device 10 as Li interface standard or other interface standards based on existing client query interface.Similarly, GIS middleware device 10 can link to each other with outside generalized information systems such as outside GIS server 30, charging center 40, SP clients 50 by diversified standard interface, by GIS middleware device 10, make that the query interface offer client at last is unified, thus help the expansion of system and information alternately; SP client 50 can or provide the service provider's of internet location server client for service provider's that Location based service is provided client.
When needs inquiry or renewal geographical location information, send the geographic position request message to GIS middleware device.Particularly, when the user need inquire about geographical location information, can carry the geo-location service request message of desiring the requested service content by SP client 50 or direct the transmission to GIS middleware device 10 by subscription client 60, wherein, desire the requested service content and can be the latitude and longitude information, POI information in the geographic position that will inquire about and other by the service content that query interface is supported, comprise relevant geographical location information such as mapping, directory service, route searching, geocoding, contrary geocoding, measuring and calculating and metadata.When content supplier need upgrade geographical location information, send the geographic position update inquiry information that carries update content to GIS middleware device 10 by CP client 70.
Have the first interface communication module 11A, the second interface communication module 11B and a routing module 12 in the GIS middleware device 10.The first interface communication module 11A sends to routing module 12 after receiving the geographic position request message that comes from each client; Routing module 12 is selected the GIS server, and this geographic position request message is transmitted to the second interface communication module 11B; The geographic position request message that the second interface communication module 11B will come from routing module 12 carries out being transmitted to routing module 12 selected GIS servers after the protocol adaptation.Wherein, when the GIS server is selected, specifically can select according to the particular content of the geographic position request message that receives or according to system state.
After local GIS server 20 or outside GIS server 30 receive the geographic position request message that comes from GIS middleware device 10, handle accordingly.For example, if this geographic position request message is the geo-location service request message, then according to the desire requested service content search corresponding geographical position information of wherein carrying; If this geographic position request message is the geographic position update inquiry information, then corresponding geographical position information is upgraded according to the update content of wherein carrying.After finishing above-mentioned processing, geographical location information that inquires or renewal confirmation are carried on and reply to GIS middleware device 10 in the response message of geographic position.
The second interface communication module 11B in the GIS middleware device 10 carries out the geographic position response message that receives to send to routing module 12 after the protocol adaptation; The geographic position response message that routing module 12 will come from the second interface communication module 11B sends to the first interface communication module 11A; The geographic position response message that the first interface communication module 11A will come from routing module 12 sends to the client of sending this geographic position request message.Wherein, it is adaptive that protocol adaptation is meant that the interface protocol that adopted according to the GIS server that will mail to carries out the protocol format of the data message that will send, to finish and the communicating by letter of GIS server.By the protocol adaptation process of the second interface communication module 11B, make outside GIS server 30 to carry out information communication by multiple different interface protocol and GIS middleware device 10.
In addition, charging wholesale price module 14 can also be set in the GIS middleware device 10, be used for when detect use release module 13 and finish the geographic position response message and send after, according to the geographical location information that carries in this geographic position response message corresponding client is carried out accounting processing.Wherein, charging process can comprise the step of wholesale price, and determining the price of this service, wholesale price can comprise wholesale price or wholesale price repeatedly, for example, when needs carry out when preferential certain service, can by the second time wholesale price to the first time wholesale price adjust.After finishing operation such as wholesale price charge information being sent to charging center 40, charges according to this charge information in charging center 40, to finish user's clearing.
In addition, examination module 15 can also be set in the GIS middleware device 10, be used for when geographic position request message that interface communication module 11 receives is the geographic position update inquiry information, the update content of carrying in this geographic position update inquiry information is examined, and sent examination result to interface communication module 11; 11 pairs of these examination results of interface communication module are judged, if pass, then the geographic position update inquiry information is sent to routing module 12, otherwise it is abandoned.
In addition, user management module 16 and authentication module 17 can also be set in the GIS middleware device 10.Wherein, user management module 16 is used to dispose the authority information of client, for example increases or reduce authority etc.Authentication module 17 is used for after interface communication module 11 receives the geographic position request message that comes from client, according to the authority information in the user management module 16 this client that inserts is carried out authentication.
In addition, in the GIS middleware device 10 statistical analysis module 18 can also be set, be used for the relevant information of route module 12 or 13 transmission of application release module is added up, for example, certain service provider's access number of times, the number of times that certain POI information is inquired about etc. are so that can adjust the service operation strategy according to the state of affairs in one period.
In addition, can also comprise network management center 80 in the geographic position information system, correspondingly, in the GIS middleware device 10 system management module 19 can also be set, be used for communicating, other each modules in the GIS middleware device 10 are managed or dispatch with network management center 80.
In addition, can also be provided with in the GIS middleware device 10 and use release module 13 and be used for when detecting local GIS server 20 or outside GIS server 30 new service or metadata have been arranged, service or metadata that these are new are distributed to client, promptly be current in the mode of certain application when geographical positional information, inform relevant user by using release module 13.
By described geographic position information system of present embodiment and GIS middleware device, not only can realize mobile location service, also can realize other geographic position inquiry services.And because function and other equipment such as GIS server in the geographic position information system that GIS middleware device is realized are relatively independent, GIS middleware device can link to each other with other equipment by interface standard of the prior art, therefore, when needs are expanded system of geographic location, for example when the interface protocol of GIS middleware device and client changes, and the interface protocol between GIS middleware device and the GIS server is irrelevant, need not to change the interface protocol of GIS server, GIS middleware device can be reused, other equipment in the system do not need to reset yet, thereby help improving usage factor of system resource, also help improving the extensibility of system.
And, by present embodiment content supplier can be upgraded to geographical location information, improved the opening and the dirigibility of geographic position information system.
In addition, because the function opposite independent of each module in the GIS middleware device, the degree of coupling of intermodule is more open, is easy to carry out the function expansion.
Embodiment 2
Present embodiment provides a kind of geographical location information disposal route that the geographic position inquiry service can be provided, and as shown in Figure 4, comprising:
Step 101, GIS middleware device receives the geo-location service request message that comes from client.
Wherein, client can provide the user client of the service provider of Location based service, the service provider that the internet location server is provided or request geo-location service.The user by the service provider client or directly send the geo-location service request message that carries desire requested service content to GIS middleware device by own client.
Need to prove herein, receive after the geo-location service request message, can also carry out authentication, if authentication is passed through the client of this transmit leg, then begin to select the step of GIS server, otherwise do not provide the geographical location information service this client.But if this GIS middleware device can determine in advance that the client that inserts is all registered, then the step of above-mentioned authentication also is omissible.
Step 102, GIS middleware device is selected the GIS server, and the geo-location service request message is transmitted to selected GIS server.
Wherein, the GIS server can be that local GIS server also can be outside GIS server, and outside GIS server can have a plurality of.When GIS middleware device is selected the GIS server, specifically can select according to the geo-location service request message that receives, for example, this geo-location service request message has been specified the GIS server that will mail to or has been existed only in certain GIS server with the entrained corresponding geographical location information of desire requested service content of this geo-location service request message; In addition, GIS middleware device also can be selected according to the default routing policy or the current state of GIS server, for example, this GIS middleware device is connected with local GIS server, in order to improve the speed of response, can select local GIS server,, also can select to be in certain outside GIS server of idle condition perhaps for reasonable load sharing.
Step 103, the GIS server is inquired about corresponding geographical position information according to geographical location service request message on book server, and replys the geographic position response message that carries the geographical location information that inquires to GIS middleware device.
Particularly, the GIS server can as latitude and longitude information, POI information or other service content of being supported by query interface etc., carry out the inquiry of geographical location information according to the desire requested service content of carrying in the geographical location service request message.
Step 104, the geographic position response message that comes from the GIS server that GIS middleware device will receive sends to client.In addition, GIS middleware device can also carry out accounting processing to this client according to the geographical location information that wherein carries, and charge information can be sent to the charging center after finishing geographic position response message transmission.
By the described method of present embodiment, not only can realize mobile location service, also can realize other geographical location information services.And because function and other equipment such as GIS server in the geographic position information system that GIS middleware device is realized are relatively independent, GIS middleware device can link to each other with other equipment by interface standard of the prior art, therefore, when needs are expanded system of geographic location, GIS middleware device can be reused, other equipment in the system do not need to reset yet, thereby help improving usage factor of system resource, help improving the extensibility of system yet.
Embodiment 3
Present embodiment provides a kind of geographical location information disposal route that the geographic position update service can be provided, and as shown in Figure 4, comprises
Step 201, GIS middleware device receives the geographic position update inquiry information that comes from client.
Wherein, client can provide the service provider of geographical location information, also can be called content supplier.When this service provider need upgrade the geographical location information that is kept on the GIS server, send the geographic position update inquiry information that carries update content by its client to GIS middleware device, show and will upgrade which geographical location information.
Need to prove herein, receive after this geographic position update inquiry information, can also carry out authentication,, then begin subsequent step, otherwise do not allow this client that geographical location information is upgraded if authentication is passed through to the client of this transmit leg.But if this GIS middleware device can determine in advance that the client that inserts is all registered, then the step of above-mentioned authentication also is omissible.
Step 202, GIS middleware device is examined the update content in the geographical location update request message, particularly, can examine the validity of update content, legitimacy etc.Pass back execution in step 203; Otherwise return error message, refuse this update request.
It needs to be noted, be effective, legal if GIS middleware device can pre-determine the update content that comes from certain client herein certainly, and then the described checking process of this step also is omissible.
Step 203, GIS middleware device is selected the GIS server, and the geographic position update inquiry information is transmitted to selected GIS server.Particularly, GIS middleware device selects the GIS server at the geographical location information place that will upgrade with this geographic position update inquiry information to transmit.
Step 204, the GIS server upgrades corresponding geographical position information on book server according to geographical location update request message, and replys the geographic position response message that carries the renewal confirmation to GIS middleware device, finishes to confirm to upgrade.Particularly, can upgrade according to the update content of carrying in the geographical location update request message.
Step 205, the geographic position response message that comes from the GIS server that GIS middleware device will receive sends to client, upgrades with the notice client and finishes.
By the described method of present embodiment, make by same GIS middleware device, both can content supplier can be upgraded for the user provides the geographical location information service to geographical location information.Make whole geographic position information system except having embodiment 2 described advantages, also have higher opening and dirigibility.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.