CN100458787C - Method for forming and applying high speed Wcb electronic map based on space data base and SVG - Google Patents

Method for forming and applying high speed Wcb electronic map based on space data base and SVG Download PDF

Info

Publication number
CN100458787C
CN100458787C CNB2006101258228A CN200610125822A CN100458787C CN 100458787 C CN100458787 C CN 100458787C CN B2006101258228 A CNB2006101258228 A CN B2006101258228A CN 200610125822 A CN200610125822 A CN 200610125822A CN 100458787 C CN100458787 C CN 100458787C
Authority
CN
China
Prior art keywords
svg
layer
data
map
sxw
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.)
Expired - Fee Related
Application number
CNB2006101258228A
Other languages
Chinese (zh)
Other versions
CN1945578A (en
Inventor
林松福
郑万疆
何禧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kairui Power Communication Science And Technology Co Ltd Fuzhou
Original Assignee
Kairui Power Communication Science And Technology Co Ltd Fuzhou
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kairui Power Communication Science And Technology Co Ltd Fuzhou filed Critical Kairui Power Communication Science And Technology Co Ltd Fuzhou
Priority to CNB2006101258228A priority Critical patent/CN100458787C/en
Publication of CN1945578A publication Critical patent/CN1945578A/en
Application granted granted Critical
Publication of CN100458787C publication Critical patent/CN100458787C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a database structure that is constructed or arranged by the use of the internet map data, especially belonging to a generation and application method of high speed Web electric map based on the space database and SVG, which is composed of server and client end that is named foreground control module. The server contains the data permanent layer that includes SXW documents and Oracle Spatial, and the application logic layer that includes data storage, SXW analysis device, data updating device, SVG packaging device, SVG element plant, distribution device and client end. The effect of the invention is: the efficient and independent Oracle Spatial management and calculating spatial system. Because the space data performance and space dada calculation are separated, the terminal user greatly improves speed in space inquiry and map examination, so that it is beneficial in the user experience.

Description

A kind of high speed Web based on spatial database and SVG is map generalization and application process electronically
Technical field
The present invention relates to use the structure of map datum of interconnection network or the database structure of layout, especially belong to a kind of high speed Web based on spatial database and SVG map generalization and application process electronically.
Background technology
At present, adopt two kinds of map generation techniques basically in the domestic Web GIS field, the carrier difference of figure is divided into grid graph (Raster) technology and vector graphics (Vector) technology according to the map.The shortcoming of grid technique is that the transmitted data on network amount of figure is big, generating grid graph simultaneously needs server to carry out a large amount of budgets, cause very big calculating pressure to server, grid graph can't separate data with manifestation mode in addition, be unfavorable for of the data use of following 3G epoch based on portable terminal, isolated organic relation of geographic information data object, interactivity is poor, and view data can't smoothly be amplified.Comparatively speaking, the advantage of vectoring technology is: can intactly describe the geographic information data object properties, the network data transmission amount is little, and the SVG element interactions is strong, and data are separated with presentation mode, supports the optimization that image presents, and can be applied to portable terminal easily.But because vector graphics lacks corresponding standard, each producer has one of one's own and is, is unfavorable for data multiplexing and exchange, and because fund and technical reason, the vector graphics definition of producer lacks integrality, only can satisfy self-demand, can't rise to the standard grade.
Summary of the invention
The object of the present invention is to provide a kind of high speed Web electronics SVG ground map generalization and application process based on spatial database and SVG, use high speed SVG engine map to integrate spatial database (OracleSpatial) to reach, SVG vector graphics interaction technique, AJAX asynchronous data transfer technology and data pre-service buffer technology, but realized helping the mutual WebGIS map operation engine of the degree of depth of internet and portable terminal characteristic.
The technical solution used in the present invention is: it is that foreground control module is formed by the server and client side; Wherein, server comprises data permanent layer and applied logic layer, and each several part is specially:
One, the data permanent layer comprises SXW (hypergraph extending mark language work space) file and spatial database (Oracle Spatial), wherein:
1, the SXW file is mainly used to the relation that record space information presents statement and each figure layer;
2, spatial database (Oracle Spatial) is mainly used to the permanent storage space data and carries out some main spatial operation;
Two, the applied logic layer comprises data buffer, SXW resolver, Data Update device, SVG assembler, SVG element factory and distributor, wherein:
1, data buffer: the data that data buffer is used for that client requests is crossed are carried out necessary buffer memory, and when same resource was visited once more, system is return results rapidly just;
2, SXW resolver: SXW resolver Frame Design is used to realize the parsing of the XML formatted file that SVG map edit software produces, and outside required figure layer element value is provided;
3, Data Update device: the effect of Data Update device mainly is to dynamically update the SVG map;
4, SVG assembler: this module major function is for assemble merging after SVG element factory has produced the SVG element, and is bigger until complete SVG map to form;
5, SVG element factory: this module major function is for producing a SVG element, and the source of its data is spatial data tables of spatial database (Oracle Spatial) lining;
6, distributor: this module mainly act as the processing load balance, it is for the operation requests of being received, dynamically be distributed on the less server of relative pressure by analysis again, its course of work is: write down handled request number of each server and time of return earlier, differentiate the pressure of each server with this, after operation requests arrives, it is assigned on the less server of pressure, to obtain the fastest reaction velocity.
The course of work of applied logic layer:
Client is that foreground control module is initiated operation requests by asynchronous communications to server, the distributor of applied logic layer is received operation requests, performance to present each server is assessed, distribution according to qualifications, realize load balance, data buffer is received operation requests, in cache data blocks, search earlier data, directly these data are returned if any finding then, otherwise turn to spatial database (Oracle Spatial) to search the SVG map datum, upgrade cache data blocks then, distributor receives the SVG map datum that returns, and it is foreground control module that its former road is returned to client;
In addition, the generative process that comprises the SVG map in the applied logic layer; The generative process of described SVG map is meant:
(1) the SVG assembler splits the minimum rectangle covering frame (MBR) on the map, and carries out recursive call according to minimum rectangle covering frame (MBR) split result; The newly-built SXW resolver of SVG assembler object;
(2) the SXW resolver returns new Object and gives the SVG assembler;
(3) the SVG assembler sends figure layer, minimum rectangle covering frame (MBR), SXW resolver object to SVG element factory, and requires SVG element factory to return corresponding SVG element piecemeal;
(4) SVG element factory sends request to SXW resolver object, requires to return figure layer information;
(5) SXW resolver object returns figure layer information;
(6) SVG element factory requires to call storing process to spatial database (Oracle Spatial), imports figure layer name, minimum rectangle into and covers information such as frame (MBR), table name claim, requires the return results record set;
(7) storing process return results record set;
(8) SVG element factory sends request to SXW resolver object, requires to return figure layer style;
(9) SXW resolver object returns figure layer style;
(10) SVG element factory-assembled and return SVG element piecemeal to the SVG assembler;
(11) SVG assembler compression SVG element piecemeal, and be deposited in the data buffer;
Continue above-mentioned steps, until finishing required SVG map.
Three, client is a foreground control module: it be meant with computing machine, PDA, Smart Phone or other electric terminal operating system in carry out mutual program module with SVG figure reader (SVG Viewer); Its major function is for providing the mutual realization and the third party application interface (API) of exploitation foreground and SVG figure reader (SVG Viewer); Map application developer can develop high performance SVG map by calling these application programming interfaces (API) operation native system.
Beneficial effect of the present invention is: 1, efficient and independent spatial data management and spatial operation system.The present invention is because spatial data performance and spatial data computing separately, allow the final user all be greatly improved regardless of speed at space querying and aspect consulting a map like this.So extremely useful effect is arranged aspect user experience.2, based on the data structure of W3C standard.The present invention has adopted based on W3C standard XML form in the definition of data structure, therefore all can be by the parsing voluntarily of XML data layout being finished the exploitation based on bottom data under the situation of needs to any exploitation.From this angle, we can say that native system provides high other user's development ability of level.3, low server configures requirement.Because what the present invention adopted the processing of data is generating mode in advance, so open the pressure that just there is not instant data generation in the back to the user, this kind form greatly reduces the configuration requirement to server, thereby has saved user cost greatly.4, high speed reaction capacity and high stability.Because the present invention has adopted three grades of caching mechanisms, improves the reaction capacity of system greatly.Simultaneously, be to come constructing system in enterprise-level J2EE standard based on present maturation, aspect stable, also be enterprise-level.5, product price is low, is fit to popular requirement.The location of this product is based on the medium and small sized enterprises website, and therefore, price is low, and product has competitive edge.
Description of drawings
Fig. 1, one-piece construction figure of the present invention
The generative process synoptic diagram of Fig. 2, SVG map
Fig. 3, processing operation requests process sequential organization figure
Fig. 4, data buffer structure figure
Fig. 5, SXW resolver frame diagram
Embodiment
Be illustrated in figure 1 as one-piece construction figure of the present invention, it is that foreground control module is formed by the server and client side; Wherein, server comprises data permanent layer and applied logic layer, and each several part is specially:
One, the data permanent layer comprises SXW file and spatial database (Oracle Spatial), wherein:
1, the SXW file is mainly used to the relation that record space information presents statement and each figure layer;
2, spatial database (Oracle Spatial) is mainly used to the permanent storage space data and carries out some main spatial operation;
Two, the applied logic layer comprises data buffer, SXW resolver, Data Update device, SVG assembler, SVG element factory and distributor, wherein:
1, data buffer: the data that data buffer is used for that client requests is crossed are carried out necessary buffer memory, and when same resource was visited once more, system is return results rapidly just;
2, SXW resolver: SXW resolver Frame Design is used to realize the parsing of the XML formatted file that SVG map edit software produces, and outside required figure layer element value is provided;
3, Data Update device: the effect of Data Update device mainly is to dynamically update the SVG map;
4, SVG assembler: this module major function is for assemble merging after SVG element factory has produced the SVG element, and is bigger until complete SVG map to form;
5, SVG element factory: this module major function is for producing a SVG element, and the source of its data is spatial data tables of spatial database (Oracle Spatial) lining;
6, distributor: this module mainly act as the processing load balance, it is for the operation requests of being received, dynamically be distributed on the less server of relative pressure by analysis again, its course of work is: write down handled request number of each server and time of return earlier, differentiate the pressure of each server with this, after operation requests arrives, it is assigned on the less server of pressure, to obtain the fastest reaction velocity.
The course of work of applied logic layer:
Client is that foreground control module is initiated operation requests by asynchronous communications to server, the distributor of applied logic layer is received operation requests, performance to present each server is assessed, distribution according to qualifications, realize load balance, data buffer is received operation requests, in cache data blocks, search earlier data, directly these data are returned if any finding then, otherwise turn to spatial database (Oracle Spatial) to search data, suitably upgrade cache data blocks then, distributor receives the data of returning, and it is foreground control module that its former road is returned to client;
Three, client is a foreground control module: it be meant with computing machine, PDA, Smart Phone or other electric terminal operating system in carry out mutual program module with SVG figure reader (SVG Viewer); Its major function is for providing the mutual realization and the third party application interface (API) of exploitation foreground and SVG figure reader (SVG Viewer); Map application developer can develop high performance SVG map by calling these application programming interfaces (API) operation native system.
Be illustrated in figure 2 as the generative process synoptic diagram of SVG map, its flow process is:
1, the SVG assembler splits the minimum rectangle covering frame (MBR) on the map, and carries out recursive call according to minimum rectangle covering frame (MBR) split result; The newly-built SXW resolver of SVG assembler object;
2, the SXW resolver returns new Object and gives the SVG assembler;
3, the SVG assembler sends figure layer, minimum rectangle covering frame (MBR), SXW resolver object to SVG element factory, and requires SVG element factory to return corresponding SVG element piecemeal;
4, SVG element factory sends request to SXW resolver object, requires to return figure layer information;
5, SXW resolver object returns figure layer information;
6, SVG element factory requires to call storing process to spatial database (Oracle Spatial), imports figure layer name, minimum rectangle into and covers information such as frame (MBR), table name claim, requires the return results record set;
7, storing process return results record set;
8, SVG element factory sends request to the SXW resolver, requires to return figure layer style;
9, the SXW resolver returns figure layer style;
10, SVG element factory-assembled and return SVG element piecemeal to the SVG assembler;
11, SVG assembler compression SVG element piecemeal, and be deposited in the data buffer;
Continue above-mentioned steps, until finishing required SVG map.
Be illustrated in figure 3 as the applied logic layer and handle operation requests process sequential organization figure,
It is meant corresponding system handles flow process when an operation requests arrives sequential system, and this figure is order with time; Complete operation request process following steps:
1, send request: by client is that foreground control module sends map operation request arrival distributor;
2, dispense request: data buffer is assessed and be distributed to distributor to this operation requests, to realize load balance;
3, return request results to distributor: data buffer carries out buffer memory to data or reads from spatial database, and returns request results SVG map datum to distributor; Promptly earlier whether the SVG map datum of inquiry distributor request is in data buffer, and if any then directly returning from buffer, otherwise the search space database turns back to distributor then to get access to requested SVG map datum;
4, be that foreground control module is returned request results to client: distributor receives the SVG map datum that returns, and it is turned back to the client of initiating request this time is foreground control module;
5, constitute the SVG map: splicing SVG element constitutes complete SVG map.
Be illustrated in figure 4 as data buffer structure figure, it is made up of cache policy logic module and cache data blocks, and its workflow is:
Operation requests arrives data buffer, and the cache policy logic module in the data buffer is retrieved cache data blocks, as hits, arrangement SVG map datum, return results; As miss, from spatial database (Oracle Spatial), read the SVG map datum, after the arrangement result is returned, and cache data blocks is carried out necessary renewal according to algorithm; The cache policy logic module is responsible for work such as the inquiry of buffer memory and renewal, and cache data blocks is used for physics and places the SVG map datum that is buffered.
Be illustrated in figure 5 as SXW resolver frame diagram, it is handled class (MapConfig), figure layer cache class (LayerBuffer), resolver class (Parser) by the map preparation and schemes layer class (LayerBean) and formed, and each several part is specially:
Class (MapConfig) is handled in the map preparation, and major function is the preparation information of storage SVG map;
Figure layer cache class (LayerBuffer) carries out buffer memory to the figure layer when major function is processing figure layer data;
Resolver class (Parser), major function is for to resolve preparation information;
Figure layer class (LayerBean) is the entity of figure layer, deposits each figure layer information and data.
SXW resolver Frame Design is used to realize the parsing of the XML formatted file that SVG map edit software produces, and outside required figure layer element value is provided; It comprises that an external interface class is that main classes/driving class is: class (MapConfig) is handled in the map preparation; Two intrinsic call classes are: figure layer cache class (LayerBuffer) and resolver class (Parser); A figure layer class (LayerBean);
Wherein, external program can only the invocation map preparation be handled two methods that class (MapConfig) is provided, and one is: the SVG figure layer element value that returns is a figure layer class (LayerBean), and external program needs this figure layer class (LayerBean) of instantiation; It two is: provide the SXW document to resolve, external program at first should call the SXW document and resolve, and drives resolver class (Parser) and resolves the SXW file, and return.
The specific implementation method of principle of work of the present invention and correlation technique
One, principle of work of the present invention is:
1, the spatial information of map correspondence is carried out layering and cut into area level, greenery patches layer, water system layer, bridge system layer, path layer, bus station layer, information point layer, and be mapped as the figure layer among the SVG, figure layer information leaves in the SXW file.
2, SVG figure layer is carried out formal definition, for each figure layer is given limit color, width, fill color, hem width, font, font size or other graphic presentation property values, and saving as XML formal definition file, the related pattern defined file information of figure layer also leaves in the SXW file.
3, carry out the cutting of SVG element piecemeal at the longitude and latitude scope at map place, set up the mapping table from latitude and longitude coordinates to SVG element piecemeal, the longitude and latitude scope is recorded in the SXW file equally.
4, write spatial information SVG converse routine, read spatial information and pass through the parsing XML format defined file, the spatial information of each longitude and latitude scope is generated as corresponding SVG element divides block file, spatial information is generated as corresponding SVG element piecemeal document storage in spatial database (Oracle Spatial).
5, use GZIP compressed format to compress, make the data downloaded amount reach 15% to 30% compressibility, compress by the SVG assembler for the SVG element block data after generating and realize cutting apart good SVG element block data in advance.
6, set up SVG element block data buffer memory at a high speed at server end, when handling each user and asking, directly read the SVG element block data that corresponding minimum rectangle covers frame (MBR) from high-speed cache, the data buffer among the present invention is exactly to be used for realizing this function specially.
This step also can read SVG element block data from server by AJAX asynchronous transmission technology.
7, use the JavaScript script to write the foreground integration of user interaction functionality,, provide powerful map operation ability by OO design and coding.
Two, the specific implementation method of correlation technique of the present invention is based on below that system module sets forth according to the order of summary of the invention:
1, data format definition
Carry out the database structure design at the map space information data format:
(1) geographic information data on the electronic chart classification, layering, subregion have been carried out.
The different cities cartographic information is done area dividing, for setting up the geographical coordinate range in place, down town point, city codes, corresponding map configuration documentation in each city;
Cartographic information under the different proportion chi is done longitudinal layered, be divided into: 35840000: 1,2880000: 1,360000: 1,90000: 1,45000: 1,22500: 1,11200: 1,72000: 1,36000: 1;
Different attribute SVG element under the same ratio chi is laterally divided: region layer, resident stratum, water system layer, greenery patches layer, bridge system layer, railway layer, path layer, POI layer, bus routes layer, bus station layer.
(2) divide according to engineer's scale and attribute, map datum is imported respectively in the tables of data corresponding in the spatial database (OracleSpatial);
2,, show formal definition
(1) definition is based on the spatial information data presentation format of XML text
Be region layer defined attribute: fill color, font color, font size, font;
Be resident stratum defined attribute: fill color, sideline look;
Be water system layer defined attribute: fill color, sideline look;
Be greenery patches layer defined attribute: fill color, sideline look;
Be bridge system layer defined attribute: fill color, sideline look, sideline width, background sideline look, background width;
Be railway layer defined attribute: live width, line segment length;
Be the path layer defined attribute: fill color, sideline look, sideline width, background sideline look, background width;
Be POI layer defined attribute: font size, font, font color, picture;
Be bus routes layer defined attribute: live width, line look;
Be bus station layer defined attribute: font size, font, font color, picture;
(2) XML that configuration effort is finished the back generation stores on the server, uses for SVG element generation module.
3, SVG element piecemeal cutting
City map size under the high scale is several MB, tens MB or even MB up to a hundred, if disposable with download content to the WEB front end, obviously can't satisfy application requirements.
In order to realize quick response to request, the map datum amount that minimizing operation is each time returned is too big, need carry out the piecemeal cutting operation to map, and the SVG map is in the relatively more concentrated zone of atural object, the data volume of map is big especially, so need density according to the map that it is cut apart, as far as possible the size of each piece map remained on below the 50KB.
(1) exploitation map cutting tool uses the whole map in city base map as a setting, is used to support the cutting to the map datum zone.
(2) utilize instrument that map is cut, and the map piecemeal that cutting finishes stored in the database, and give unique identification number for each piece SVG element, suitably its minimum rectangle of expansion covers frame (MBR) simultaneously, can keep path connected when guaranteeing the splicing of SVG element.
(3) to the map under the different proportion chi, use different branch block sizes, avoid the data volume that SVG element piecemeal causes very little under large scale too big, also avoid the slow problem of arithmetic speed that SVG element piecemeal causes too much under the small scale.
4, the SVG element generates
(1) foundation is to the Java object reader of spatial database (Oracle Spatial).Because the data structure of spatial database (Oracle Spatial) and access application interface (API) are far from each other with traditional Oracle relational database, the existing public application programming interfaces of JDBC connection pool (API) based on relevant database can't operate as normal.
At the spatial data object of spatial database (Oracle Spatial), the storing process of having developed Oracle is used for computing cutting SVG element result.
At the special-purpose data-base recording resolver of J2EE server end design space database (Oracle Spatial).
(2) in internal memory, set up the best property of attribute mapping table of geography information, for spatial information SVG element generation module provides the translation data support.
(3) design SVG element maker, according to geographical information attribute mapping table obtain and the table of spatial database (Oracle Spatial) and field in corresponding SVG element descriptor, read the spatial data in the spatial database (Oracle Spatial), and convert it into the XMLSVG element fragment of SVG form.
5, SVG element data compressed cache
(1) sets up automonitor, when startup of server, open up large-scale memory headroom automatically, and set up internal memory high-speed buffer based on Hash table.
(2) from the Oracle relevant database, read the SVG map datum, and the data of reading at each piece, use GZIP that it is compressed, and with blocking sign number as key word, be stored in the internal memory high-speed buffer, set up the coordinate Mapping of buffer zone and two bit planes.
When (3) receiving the request of SVG element data, from the internal memory high-speed buffer, read the SVG element content that was compressed, and return to the requestor, realize quick response the drawing information request.
6, generate treatment technology in advance
Generate the SVG element database by early stage each tables of data of spatial database (Oracle Spatial) lining being passed through SVG element generation module in advance, and it is saved in spatial database (Oracle Spatial) centralized management, when request arrives, directly return target data, can save a large amount of operation times of server, improve system performance greatly.
7, geographical spatial data renovator module
(1) add or the spatial data of discrete spatial database (Oracle Spatial) storage of upgrading extracts discrete, generate the SVG element object of correspondence, and during the spatial database that adds the corresponding region piecemeal to writes down.
(2) provide manually and the Data Update mechanism of plan target.Finish divide the renewal of block message to static space after, corresponding application interface (API) is provided, making can be by artificial or timer mode, upgrade the space S VG element information in the online server cache, do not influence external cartographic information service (heat that is the implementation space cartographic information is upgraded) simultaneously.
8, three grades of cache technologies
Aspect buffer memory, general system only adopts the level cache technology, and obviously this raising to system performance is not helpful.Native system is broken through these technical bottlenecks, adopts three grades of cache technologies, from having improved the reaction capacity of system to greatest extent.Three grades of high-speed caches are respectively at spatial database, and application service system (applied logic layer) has carried out caching process, the speed that has adopted data structures such as Hash table to come the raising system to read simultaneously respectively on the client browser.
At spatial database (Oracle Spatial) end, write first order metadata cache code thereon by the PL/SQL language, realize level cache by the read rate of monitoring space form.Realize L2 cache at the applied logic end by impact damper, aspect client, realize third level buffer memory by the buffer memory that improves browser and SVG figure reader (SVG Viewer) etc. itself.
9, the user asks the load balance module
(1) to the differently collaborative calculating of trooping of domain information user request.Adopt the server zone mode set, for the geography information in different regions and city provides independent server zone, like this can be according to the number of users difference in different regions and city, reasonable distribution system hardware resources.
(2) to the collaborative calculating of trooping of domain information multi-user concurrent request in the same manner.By the server zone mode set, to a plurality of users' requests of the same region arrived at simultaneously, press the flow equalization algorithm, each station server of sharing in trooping is handled, thus obtain under the high concurrency situation the user ask quick response.
10, graphics data manipulation application programming interfaces (API)
Based on the graphical interfaces operating application program interface (API) of ECMA Script, and at Web program development provides JavaScript application interface.This technology has remedied among the present SVG, and the defective that the user interactions ability is more weak is for application programming interfaces (API) basis that higher level is provided is used in the commercialization based on the map vector of SVG.Application programming interfaces (API) content comprises: show city map, display-object point, demonstration bus station, show Public Transport Transfer scheme, demonstration bus routes, convergent-divergent map, skew map, map punctuate, track of vehicle playback.
11, operating function
(1) can freely control city map data in the complete output region database in ground (Oracle Spatial).
(2) provide basic map operation function: roam, amplify, dwindle, the frame choosing is amplified, the frame choosing is dwindled, full figure, range finding.
(3) the secondary development personnel can provide map to represent and basic operational functions by using system.
(4) the map application interface (API) that can using system provides of secondary development personnel is finished work such as bus routes inquiry, Public Transport Transfer inquiry, self-driving circuit query, place and position enquiring, peripheral information inquiry, and shows Query Result automatically on map.
(5) can finish smoothly that map moves, dwindles, enlarging function, the almost imperceptible delay of user.
(6) provide good system architecture, the function of later development can be added easily.
Three, the course of work of the present invention is:
1, open the system that this engine is housed, client is that foreground control module is carried out necessary initialization to this engine;
2, the client carries out operation requests by SVG VIEWER, and client is that foreground control module is intercepted and captured it, and carries out integration processing, formatting command;
3, client is that foreground control module is initiated operation requests by asynchronous communications to server;
4, the applied logic layer of this engine is received operation requests, forwards it to distributor;
5, distributor is assessed the performance of present each server, and distribution according to qualifications realizes load balance;
6, metadata cache is received request, searches data earlier in cache data blocks, directly this blocks of data is returned if any finding then, otherwise turns to spatial database (Oracle Spatial) to search data, suitably upgrades cache data blocks then;
7, distributor receives the data of returning, and it is foreground control module that its former road is returned to client;
8, client is that foreground control module is received data, is presented to the client.

Claims (3)

1, a kind of high speed Web based on spatial database and SVG map generalization and application process electronically, it is that foreground control module is formed by the server and client side; Wherein, server comprises data permanent layer and applied logic layer, it is characterized in that:
The data permanent layer comprises hypergraph extending mark language work space SXW file and spatial database, wherein:
The SXW file is mainly used to the relation that record space information presents statement and each figure layer;
Spatial database is mainly used to the permanent storage space data and carries out some main spatial operation;
The applied logic layer comprises data buffer, SXW resolver, Data Update device, SVG assembler, SVG element factory and distributor, wherein:
Data buffer: the data that data buffer is used for that client requests is crossed are carried out necessary buffer memory, when same resource is visited once more, and return results rapidly;
The SXW resolver: SXW resolver Frame Design is used to realize the parsing of the XML formatted file that SVG map edit software produces, and outside required figure layer element value is provided;
The Data Update device: the effect of Data Update device mainly is to dynamically update the SVG map;
The SVG assembler: major function is for assemble merging after SVG element factory has produced the SVG element, and is bigger until complete SVG map to form;
SVG element factory: major function is for producing a SVG element, and the source of its data is the spatial data tables in the spatial database;
Distributor: mainly act as the processing load balance, it is for the operation requests of being received, dynamically be distributed on the less server of relative pressure by analysis again, its course of work is: write down handled request number of each server and time of return earlier, differentiate the pressure of each server with this, after operation requests arrives, it is assigned on the less server of pressure, to obtain the fastest reaction velocity;
The applied logic layer is carried out the generative process of SVG map, and the generative process of described SVG map is meant:
(1) the SVG assembler splits the minimum rectangle covering frame on the map, and carries out recursive call according to minimum rectangle covering frame split result; The newly-built SXW resolver of SVG assembler object;
(2) the SXW resolver returns new Object and gives the SVG assembler;
(3) the SVG assembler sends figure layer, minimum rectangle covering frame and SXW resolver object to SVG element factory, and requires SVG element factory to return corresponding SVG element piecemeal;
(4) SVG element factory sends request to SXW resolver object, requires to return figure layer information;
(5) SXW resolver object returns figure layer information;
(6) SVG element factory requires to call storing process to spatial database, imports figure layer name, minimum rectangle covering frame and table name into and claims information, requires the return results record set;
(7) storing process return results record set;
(8) SVG element factory sends request to SXW resolver object, requires to return figure layer style;
(9) SXW resolver object returns figure layer style;
(10) SVG element factory-assembled and return SVG element piecemeal to the SVG assembler;
(11) SVG assembler compression SVG element piecemeal, and be deposited in the data buffer;
Continue above-mentioned steps, until finishing required SVG map;
The course of work of applied logic layer:
Client is that foreground control module is initiated operation requests by asynchronous communications to server, the distributor of applied logic layer is received operation requests, performance to present each server is assessed, distribution according to qualifications, realize load balance, data buffer is received operation requests, in cache data blocks, search earlier data, directly these data are returned if any finding then, otherwise turn to spatial data library lookup SVG map datum, upgrade cache data blocks then, distributor receives the SVG map datum that returns, it is foreground control module that its former road is returned to client, constitutes complete SVG map;
Client is a foreground control module: it be meant with computing machine, PDA, Smart Phone or other electric terminal operating system in carry out mutual program module with SVG figure reader; Its major function is for providing the mutual realization and the third party application interface of exploitation foreground and SVG figure reader; Map application developer can develop high performance SVG map by calling these application programming interfaces.
2, a kind of high speed Web based on spatial database and SVG according to claim 1 map generalization and application process electronically is characterized in that:
Described data buffer, it is made up of cache policy logic module and cache data blocks, and its workflow is:
When operation requests arrival data buffer, the cache policy logic module in the data buffer is retrieved cache data blocks, as hits, arrangement SVG map datum, return results; As miss, from spatial database, read the SVG map datum, after the arrangement result is returned, and cache data blocks is carried out necessary renewal according to algorithm; The cache policy logic module is responsible for the inquiry and the renewal work of buffer memory, and cache data blocks is used for physics and places the SVG map datum be buffered.
3, a kind of high speed Web based on spatial database and SVG according to claim 1 map generalization and application process electronically is characterized in that:
Described SXW resolver, it is handled class, figure layer cache class, resolver class by the map preparation and schemes layer class and formed, and the each several part major function and the course of work are:
3.1, major function:
Class is handled in the map preparation, and major function is the preparation information of storage SVG map;
Figure layer cache class carries out buffer memory to the figure layer when major function is processing figure layer data;
The resolver class, major function is for to resolve preparation information;
Figure layer class is the entity of figure layer, deposits each figure layer information and data;
3.2, the course of work: SXW resolver Frame Design is used to realize the parsing of the XML formatted file that SVG map edit software produces, and outside required figure layer element value is provided; It comprises that an external interface class is that main classes/driving class is: class is handled in the map preparation; Two intrinsic call classes are: figure layer cache class and resolver class; A figure layer class;
Wherein, external program can only the invocation map preparation be handled two methods that class provided, and one is: the SVG figure layer element value that returns is a figure layer class, and external program needs this figure layer class of instantiation; It two is: provide the SXW document to resolve, external program at first should call the SXW document and resolve, and drives the resolver class and resolves the SXW file, and return.
CNB2006101258228A 2006-08-26 2006-08-26 Method for forming and applying high speed Wcb electronic map based on space data base and SVG Expired - Fee Related CN100458787C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101258228A CN100458787C (en) 2006-08-26 2006-08-26 Method for forming and applying high speed Wcb electronic map based on space data base and SVG

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101258228A CN100458787C (en) 2006-08-26 2006-08-26 Method for forming and applying high speed Wcb electronic map based on space data base and SVG

Publications (2)

Publication Number Publication Date
CN1945578A CN1945578A (en) 2007-04-11
CN100458787C true CN100458787C (en) 2009-02-04

Family

ID=38044981

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101258228A Expired - Fee Related CN100458787C (en) 2006-08-26 2006-08-26 Method for forming and applying high speed Wcb electronic map based on space data base and SVG

Country Status (1)

Country Link
CN (1) CN100458787C (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763356B (en) * 2008-10-08 2013-05-01 新奥特(北京)视频技术有限公司 Acquisition and organization method of topographic data in virtual map
KR101643608B1 (en) * 2009-02-13 2016-07-29 삼성전자주식회사 Method and apparatus for providing remote UI service
CN101901151B (en) * 2009-05-27 2013-05-15 同方股份有限公司 Method for realizing dynamic play of enterprise trademark under extensible firmware interface
US8560600B2 (en) * 2011-09-26 2013-10-15 Google Inc. Managing map elements using aggregate feature identifiers
CN102508888B (en) * 2011-10-20 2014-04-09 福建四创软件有限公司 File compression storage and indexing method for improving map access efficiency
CN103226604B (en) * 2013-04-27 2017-02-15 上海来信信息科技发展有限公司 SVG-based Web GIS system and relevant energy consumption monitoring system
CN103268343A (en) * 2013-05-24 2013-08-28 北京京东尚科信息技术有限公司 System and method for transparently combining relational database and cache
CN103390061B (en) * 2013-07-31 2016-12-28 浙江大学 Customer-centric and spatio-temporal data accessing method based on multi-level buffer
CN104933057A (en) * 2014-03-18 2015-09-23 北京图盟科技有限公司 Map service providing method and apparatus
CN103885780A (en) * 2014-03-28 2014-06-25 深圳创维-Rgb电子有限公司 Website development method and server
CN107316474B (en) * 2016-04-27 2020-07-10 上海炬宏信息技术有限公司 Method for making dynamic traffic information sketch based on SVG vector data format
CN105791328A (en) * 2016-05-25 2016-07-20 江苏省基础地理信息中心 Calling method and device and sharing method and device for three-dimensional information
CN106599087B (en) * 2016-11-24 2019-10-18 天津市普迅电力信息技术有限公司 A kind of Secondary of spatial Information Service
CN107992589B (en) * 2017-12-11 2021-07-09 机械工业第六设计研究院有限公司 SVG map data loading method, device and system
CN109657030A (en) * 2018-12-27 2019-04-19 北斗天地股份有限公司 A kind of system and method for electronic map blind area monitoring
CN109871028B (en) * 2019-01-29 2021-08-10 华南理工大学 Unmanned aerial vehicle control system based on data service
CN113347276B (en) * 2021-07-07 2022-07-12 南京大学城市规划设计研究院有限公司深圳分公司 Mobile access system based on GIS

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6985929B1 (en) * 2000-08-31 2006-01-10 The United States Of America As Represented By The Secretary Of The Navy Distributed object-oriented geospatial information distribution system and method thereof
CN1746913A (en) * 2005-07-21 2006-03-15 大连海事大学 Ship state symbol identification system based electronic sea chart
JP2006172380A (en) * 2004-12-20 2006-06-29 Mitsubishi Electric Corp Search index creation device for spatial data, spatial data search device, and search index creation method for spatial data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6985929B1 (en) * 2000-08-31 2006-01-10 The United States Of America As Represented By The Secretary Of The Navy Distributed object-oriented geospatial information distribution system and method thereof
JP2006172380A (en) * 2004-12-20 2006-06-29 Mitsubishi Electric Corp Search index creation device for spatial data, spatial data search device, and search index creation method for spatial data
CN1746913A (en) * 2005-07-21 2006-03-15 大连海事大学 Ship state symbol identification system based electronic sea chart

Also Published As

Publication number Publication date
CN1945578A (en) 2007-04-11

Similar Documents

Publication Publication Date Title
CN100458787C (en) Method for forming and applying high speed Wcb electronic map based on space data base and SVG
CN101346000B (en) System for providing local mobile geographic information service based on GPS and mobile terminal
Chang et al. XML Web Service‐based development model for Internet GIS applications
CN101493825B (en) GIS middleware collocation and management method
CN101799826B (en) Networking data sharing system and method based on virtual view
US8918429B2 (en) Database versioning system
CA2560560C (en) Generating and serving tiles in a digital mapping system
CN101853305A (en) Method for establishing comprehensive agricultural environmental information database
CN110134755A (en) Map updating method, device, equipment, server and medium
CN101370025A (en) Storing method, scheduling method and management system for geographic information data
CN102364523A (en) Method for realizing three-dimensional virtual city system based on RIA (rich Internet application) architecture
KR102150280B1 (en) Linked platform for urban river management
CN114595302A (en) Method, device, medium, and apparatus for constructing multi-level spatial relationship of spatial elements
Nativi et al. Unidata’s common data model mapping to the ISO 19123 data model
CN107220363B (en) Cross-region query method and system supporting global complex retrieval
Hoel et al. High performance multimodal networks
CN106055578A (en) Geography national condition monitoring system based on GIS network service and rich internet application
CN103077273B (en) Be based upon the online route selection interactive design system of engineering on network electronic map and method
CN114595301A (en) Tile data acquisition method, device, equipment and storage medium
CN106570051B (en) A kind of offshore oil application platform construction method based on three-dimension GIS model
Babu Implementing internet GIS with java based Client/Server Environment
CN104731785A (en) Information searching method and device
CN116861013B (en) CIM data credibility improving method
KR100588740B1 (en) Method for constructing GIS database using cadastral map
JP2004287931A (en) Map data providing system, and device and method for managing map data storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090204

Termination date: 20150826

EXPY Termination of patent right or utility model