CN103226604B - SVG-based Web GIS system and relevant energy consumption monitoring system - Google Patents

SVG-based Web GIS system and relevant energy consumption monitoring system Download PDF

Info

Publication number
CN103226604B
CN103226604B CN201310152481.3A CN201310152481A CN103226604B CN 103226604 B CN103226604 B CN 103226604B CN 201310152481 A CN201310152481 A CN 201310152481A CN 103226604 B CN103226604 B CN 103226604B
Authority
CN
China
Prior art keywords
svg
layer
data
map
geodata
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
CN201310152481.3A
Other languages
Chinese (zh)
Other versions
CN103226604A (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.)
Shanghai Letter Information Technology Development Co Ltd
Original Assignee
Shanghai Letter Information Technology Development Co Ltd
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 Shanghai Letter Information Technology Development Co Ltd filed Critical Shanghai Letter Information Technology Development Co Ltd
Priority to CN201310152481.3A priority Critical patent/CN103226604B/en
Publication of CN103226604A publication Critical patent/CN103226604A/en
Application granted granted Critical
Publication of CN103226604B publication Critical patent/CN103226604B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention provides an SVG (Scalable Vector Graphics) based Web GIS (Web Geographic Information System) system. The system comprises a server and a client, wherein the server further comprises a data persistent layer, an application logic layer and a Web service interface, and the client comprises a browser; the data persistent layer is used for storing space geometrical geographic data, the application logic layer is used for transferring the Shape file format space geometrical geographic data stored in the data persistent layer into the SVG format, and finally forms an SVG map; and the client interacts with the server through the Web service interface, the client sends a request to the server through the Web service interface, and the server sends an SVG map to the client through the Web service interface. The system provided by the invention has the advantages that the system utilizes the advantages such as accuracy, high scalability and small data amount of the SVG, transfers the long-term accumulated geographical information in the traditional GIS system, and enables the information to be displayed in the network terminal for people to develop and use.

Description

WebGIS system based on SVG and corresponding energy consumption monitoring system
Technical field
The present invention relates to internet GIS application technical field, particularly to a kind of based on SVG's WebGIS system and corresponding energy consumption monitoring system.
Background technology
With the development of Internet technology, internet GIS-Geographic Information System (webGIS) becomes current geography information system The focus of system (GIS, Geographic Information System).The main development direction of WWW GIS One of be multivariate data access, it require in distributed network, spatial data can reach opening, can by DIF Access any data in distributed network.WebGIS both domestic and external adopts two kinds of map generation techniques, i.e. grid substantially at present Graph technology and vector graphics arts.
Wherein, the shortcoming of grid graph technology is cannot to separate text data with the geometry form of expression, network transmission number Big according to amount, interactivity is poor, and generation grid graph needs server end to carry out substantial amounts of calculating, is unfavorable for GIS diversification is put down more The development of platform and popularization.
Compared to grid graph technology, vector graphics arts have the advantage that for:Adopt in vector graphics arts rises Level vector graphics (SVG, Scalable Vector Graphic) is the two-dimension vector graphics form of an opening, is extension mark One application of note Language XML;SVG has that any scalability, document size be little, easy generation, modifiability, strong interactivity, literary composition The features such as this independence, hyperlink, neutrality, platform-neutral, therefore in webGIS, geographical spatial data is encoded into SVG form, to carry out space technology storage, transmission and performance, can effectively eliminate and be produced for existing proprietary Data Format Problem in raw data dissemination, additionally, the graphic element in SVG has animated function, can produce cartoon map accordingly, make Map in face of client user has more representability, therefore SVG is used for WebGIS, has very important significance.
At present, in generalized information system, generally there are three kinds of data management modes, that is,:Flat file systematic, hybrid, cardinar number According to storehouse formula.Wherein, come data storage, file is spatial data to the file that gets up according to certain structure organization of flat file system File and attribute data file, the management (i.e. the operation to file) of data is carried out by oneself coding.Hybrid adopt With file and two kinds of forms of relational database, relational database is used for the attribute data of regular length that is stored with, such as text etc., by Excessive in the data volume of spatial data and some attribute datas, length change wide ranges, it is not easy to traditional relational to deposit Storage, therefore still to be stored using file, managed by coding.Or for spatial data, can be elongated space Data resolves into the spatial data of fixed field, then is stored with data base, but such spatial database has a lot of tables and deposits In incidence relation, and associating is the very big operation of expense in data base, very high to server requirement.After full database formula is improved Relational database storing total data, the data base after this improvement also has higher when storing and access variable-length field Efficiency, and do not need user oneself to become realization the management of data, but diverse data deposited for data length Storage will constantly new field being stored, the unfixed data storage therefore for length, data base is not one Wise selection.So generally attribute data is stored in relational database, by the tissue of data base management system, look into Ask, optimize and very easily management attribute data the advantages of con current control, and spatial data is stored using document form, here it is Hybrid-type storage method.
Existing WebGIS has problems with:
First:The data store organisation of existing WebGIS does not adopt standardized storage rule so as to storing and reading There is no versatility, and data does not have autgmentability.
Second:Geographical spatial data is only carried out with a data buffer storage storage data, there is instant data genaration phenomenon, so The pressure of server database can be very big, is easy for white space when user service is using map;
3rd:, there is certain closure in existing geographical spatial data.
Content of the invention
It is an object of the invention to provide a kind of WebGIS system based on SVG, to improve the property of the WebGIS system of SVG Energy.
Another object of the present invention is to providing a kind of energy consumption monitoring system of the WebGIS system based on SVG, to realize Patterned monitoring management to energy consumption.
To achieve these goals, the invention discloses a kind of WebGIS system based on SVG, including client and service Device end, wherein:
Described server end includes Data Persistence Layer, application logical layer and Web service interface;Described Data Persistence Layer with Interact between described application logical layer;
Described Data Persistence Layer includes ESRI Shape spatial data files system, attribute database and PWMLW file System;Described application logical layer includes Shape file converteractivemil builder activemil builder, SVG assembler and data buffer storage manager;Wherein:
Described ESRI Shape spatial data files system memory space geometry geodata;
The attribute data of the pel of described attribute database memory space geometry geodata;
Pattern that described PWMLW file system storage space geodata presents, figure layer, structural information;
Described Shape file converteractivemil builder activemil builder is by the geometry geodata in described ESRI Shape spatial data files system Form is converted to SVG form from Shape file format;
Pattern that described SVG assembler presents according to the spatial geography data that described PWMLW file system stores, figure layer, Structural information, by the geometry geodata of the SVG form after the conversion of described Shape file converteractivemil builder activemil builder and described attribute database The attribute data of the pel of space geometry geodata of storage is assembled, and is merged into complete SVG element, and each is complete Whole SVG element is assembled again, until forming a complete SVG map;
Interacted by described Web service interface between described client and described server end, described client is led to Cross described Web service interface and send request to described server end, described server end is by described Web service interface to described Client sends SVG map;
The data that described data buffer storage manager is crossed to described client request enters row cache, when same resource again by During access, from described data buffer storage manager, directly read data be rapidly returned to described client.
It is preferred that described Data Persistence Layer also includes pre-generatmg spatial database, described ESRI Shape spatial data literary composition Geometry geodata in part system is stored in described pre-generatmg spatial data after Shape file format is converted to SVG form In storehouse.
It is preferred that the sample that described SVG assembler presents according to the spatial geography data that described PWMLW file system stores Formula, figure layer, structural information, will be stored in the geometry geodata of SVG form in described pre-generatmg spatial database and described The attribute data of the pel of space geometry geodata of attribute data library storage is assembled, and is merged into complete SVG element, And each complete SVG element is assembled again, until form a complete SVG map.
It is preferred that the geometry that described SVG assembler will be stored in the SVG form in described pre-generatmg spatial database is geographical The attribute data of the pel of space geometry geodata of data and described attribute data library storage is assembled, and is merged into complete SVG element, and each complete SVG element being assembled again, until forming a complete SVG map, being specifically included:
1) described SVG assembler presents according to the spatial geography data that described PWMLW file system stores pattern, figure Layer, structural information are by the geometry geodata of the SVG form in described pre-generatmg spatial database and described attribute data stock The attribute data of the pel of space geometry geodata of storage is assembled, and forms multiple atural object entity objects;
2) described SVG assembler presents according to the spatial geography data that described PWMLW file system stores pattern, figure Some described atural object entity objects are assembled by layer, structural information, form multiple figure layer objects;
3) described SVG assembler presents according to the spatial geography data that described PWMLW file system stores pattern, figure Some described figure layer objects are assembled by layer, structural information, form multiple map objects;
4) circulate 1) to 3), until forming SVG map.
It is preferred that described application logical layer also includes map data update device, for updating described ESRI Shape space Data in data file system.
It is preferred that described client includes browser, described server end is by described Web service interface to described client The SVG map that end sends is by described browser display.
It is preferred that described client also includes SVG graphic viewers, described SVG graphic viewers are installed as a plug-in unit On described browser, when SVG form do not supported by described browser, described SVG graphic viewers are not support SVG form Browser provides supports function.
It is preferred that described client also includes JavaScript resolver, described JavaScript resolver is described clear Look at and directly execute on device and described SVG graphic viewers, the SVG that described JavaScript resolver sends to described server Map is parsed, and the map after parsing is filled in SVG graphic viewers;It passes through described JavaScript resolver Realize the translation to SVG map, roll scaling, attribute information inquiry, figure layer display control.
It is preferred that described client carries out asynchronous communication by described JavaScript resolver and described server end.
To achieve these goals, the invention also discloses a kind of map inquiry of the above-mentioned WebGIS system based on SVG Method is it is characterised in that comprise the following steps:
Described client sends a request to described server end by described Web service interface;
After described data buffer storage manager receives request, according to figure layer, coordinate range, zoom level parameter, first from data Retrieving map datum in cache manager, if finding coupling, directly this data being returned to described client, otherwise Enter line retrieval from described Data Persistence Layer, and the geometry retrieving geodata is given described Shape file converteractivemil builder activemil builder;
The form of described geometry geodata is converted to SVG lattice from Shape file format by described Shape file converteractivemil builder activemil builder It is sent to described SVG assembler after formula;
Pattern that described SVG assembler presents according to the spatial geography data that described PWMLW file system stores, figure layer, Structural information, by the geometry geodata of the SVG form after the conversion of described Shape file converteractivemil builder activemil builder and described attribute database The attribute data of the pel of space geometry geodata of storage is circulated assembling, until completing required SVG map document;
The SVG assembling map document is carried out returning to described client after GZIP compression by described SVG assembler, simultaneously It is sent to described data buffer storage manager and enter row cache.
To achieve these goals, the invention also discloses a kind of energy consumption monitoring system of the WebGIS system based on SVG, Carry out energy consumption monitoring using above-mentioned WebGIS system, should WebGIS system based on SVG energy consumption monitoring system by SVG map Corresponding space geometry geodata is divided into area level, green layer, rivers and lakes layer, path layer, building nitride layer, bridge layer, public affairs Hand over station layer, street lamp layer, monitoring camera-shooting layer, water energy mechanical floor, water energy pipeline layer, water energy transport layer, electric energy device layer, electric energy cable Layer, electric energy Communication Layer, gas-fired equipment layer, burning line layer, its SVG map is also accordingly divided into region figure layer, greening figure layer, river Stream lake figure layer, road figure layer, building figure layer, bridge figure layer, bus station's figure layer, street lamp figure layer, monitoring camera-shooting figure layer, water energy Equipment figure layer, water energy pipeline figure layer, water energy transmission figure layer, electric energy device figure layer, electric energy cable figure layer, electric energy communication figure layer, combustion Gas equipment figure layer, burning line figure layer;When using this energy consumption monitoring system based on the WebGIS system of SVG, only need to be in visitor The switching of family end needs the figure layer of concern can check corresponding information in this figure layer.
Compared with prior art, beneficial effects of the present invention are as follows:
1st, standardization.Using the data structure based on W3C standard as map appearance form, figure is attractive in appearance, files-designated Accurate unified, readable strong, flexibly easy-to-use.
2nd, high-performance.Due to having carried out to geographical spatial data, multiple cache is processed and pre-generatmg is processed, and is substantially not present Immediately the phenomenon of data genaration, the pressure of server database substantially reduces, and is not in clear area when user is using map Domain, experience is very good.
3rd, portability.Data volume and programme-control size of code are few, and on the basis of assurance function improves, execution efficiency is high, Take resource few.
4th, promptness.SVG geometric data and attribute data are relative separation, do not interfere with when updating map graph data To related adeditive attribute information, so the renewal operation of map datum is relatively easy a lot.
5th, high scalability.With the content of traditional GIS simply and compared with same dull interface as thousand, the system can provide The data message of abundant dynamic and customization of individual character, and SVG to have any scalability, modifiability, strong interactivity, text only The features such as vertical property, hyperlink, neutrality, platform-neutral, we provide a lot of extensions functionally, user can be very square Just the application by oneself and the system integrate.
6th, open.The present invention use Web Service process geographical spatial data, there is provided an opening, can be mutual Operation, the spatial Information Service platform of dynamic link.Meanwhile, Web Service is to carry out service describing, clothes based on XML document Business request and feedback result, can be with Seamless integration- with the SVG being equally based on XML.
7th, user friendly.The present invention increased a layer in browser end -- Ajax (Asynchronous JavaScript and XML), the request of user's triggering just gives this engine to process, and it is responsible for sending request to server, What server was passed back is business datum rather than html page, after engine receives, is rendered, by browser resolves in the page On present, carry out Local hydrodynamic unit using Ajax technology in WebGIS map and can greatly improve the user friendly of system Property, user may not even be aware that browser is just being server communication.
Brief description
Fig. 1 is the structural representation based on the WebGIS of SVG for the specific embodiment of the invention;
Fig. 2 is the structural representation of specific embodiment of the invention geographical spatial data;
Fig. 3 is the operating diagram of specific embodiment of the invention querying method;
The schematic diagram of the multi-level buffer that Fig. 4 provides for the present invention.
Specific embodiment:
Below with the drawings and specific embodiments, the present invention will be further described:
Embodiment
As Fig. 1, a kind of WebGIS system based on SVG and spatial database, including client 1 server end 2;Service Device end 2 includes Data Persistence Layer 4, application logical layer 3 and Web service interface 12;Between Data Persistence Layer 4 and application logical layer 3 Carry out data interaction, client 1 and server end 2 carry out data interaction by Web service interface 12.
As Fig. 1, Data Persistence Layer 4 include ESRI Shape spatial data files system 16, attribute database 10 and PWMLW file system 9, wherein:ESRI Shape spatial data files system 16 memory space geometry geodata;Attribute data The attribute data of the pel of storehouse 10 memory space geometry geodata;PWMLW file system 9 memory space geodata presents Pattern, figure layer, structural information.Wherein, attribute database 10 adopts SQL Serve data base, and it can further include SQL Serve database caches unit, to play the effect of the response speed accelerating data base.
As Fig. 1, described application logical layer 3 includes data buffer storage manager 5, Shape file converteractivemil builder activemil builder 8 and SVG assembling Device 6;Wherein:Shape file converteractivemil builder activemil builder 8 is responsible for the geometry geodata in ESRI Shape spatial data files system 16 Form is converted to SVG form from Shape file format;SVG assembler 6 stores spatially according to described PWMLW file system 9 Reason data present pattern, figure layer, structural information, by the geometry of the SVG form after changing through described Shape file converteractivemil builder activemil builder 8 The attribute data of the pel of the space geometry geodata that geodata is stored with described attribute database 10 is assembled, and merges Become complete SVG element, and each complete SVG element is assembled again, until forming a complete SVG map;
Described client 1 sends request, described server end 2 by described Web service interface 12 to described server end 2 SVG map is sent to described client 1 by described Web service interface 12;
Described data buffer storage manager 5 data requested to described client 1 enters row cache, when same resource again When accessed, from described data buffer storage manager 5, directly read data be rapidly returned to described client 1.
And in order to improve the responding ability of server end further, present invention employs three-level cache technology, The responding ability of the raising server of limits.Three-level cache is located at the spatial data caching of Data Persistence Layer 4 respectively, should With SVG cache map and the client-cache of logical layer 3, first two caching is all based on a storage key/value pair Hashmap, data is that existed with the matching method of key/value, just as a very big Hash table, sees Fig. 4.
The attribute database 10 of Data Persistence Layer mainly applies SQLSERVER database caches to rely on, the property of GIS server Can bottleneck major part be when inquiring about data base, so the caching for data base is very important, the present invention passes through one Array configuration achieves the caching of SQL Server data base, when tables of data does not update, just reads from caching, when there being number Read data according to ability when updating from data base.The essential information of the building often inquired about such as in GIS, we will build Thing information data table is cached, and when the request road having building information comes, avoids the need for have read from data base again, plus The fast response speed of system.
The spatial geography data of data base persistence layer and application logical layer employ distributed memory target cache technology.Its In, application logical layer also includes a load balancing management device, and load balance is as the term suggests be just responsible for the negative of processing server Carry balance, it is analyzed to the request receiving, and then transmits the request to the less server of load pressure and is processed, Thus improving the response speed of server.So-called distributed that is can be set up by multiple servers one bigger slow Depositing server, reducing the number of times of reading database by data cached in internal memory and object, thus improving weblication Response speed.Such as client request figure layer L, zoom level A, the data in coordinate range C, data buffer storage manager can be first Check in distributed memory target cache system whether there is caching, take out data from caching if there are just direct;If it did not, From data base, just take out data return to load balancing management device and delay the data buffer storage of request to distributed memory object In deposit system, so next time request identical data just can directly from internal memory reading and without go again inquiry data base Once, have renewal to data, update the data caching in storehouse and internal memory it is ensured that the accuracy of data and synchronicity simultaneously. By substantial amounts of test with put into practice, the cache technology of application logical layer can be by the concurrently access number of single server from 20 Bring up to 1000 about, that is, improve 50 times, this is a considerable performance boost.
Client-cache is mainly realized by browser and the SVG graphic viewers caching of itself.
In order to improve the processing speed of system, Data Persistence Layer 4 also includes pre-generatmg spatial database 11, pre-generatmg space The geometry geodata that data base 11 stores in ESRI Shape spatial data files system 16 turns through Shape file converteractivemil builder activemil builder Change, and the pel document of the SVG form obtaining after arranging;This pre-generatmg spatial database 11 also includes space geometry data Buffer unit, it can accelerate the processing speed of space geometry data.By Shape file converteractivemil builder activemil builder, by ESRI Shape file Space geometry data cell in system and corresponding attribute data carry out assembly and are converted into the Element Fragment of SVG form, warp It is stored in centralized management in pre-generatmg spatial database after crossing process, when there being request of data, directly access pre-generatmg space number According to storehouse.
Wherein, the assembling mode of SVG assembler 6 is:SVG assembler 6 is according to the space of storage in PWMLW file system 9 Pattern that geodata presents, figure layer, structural information, will be stored in the geometry of the SVG form in pre-generatmg spatial database 11 In geodata and attribute database 10, the attribute data of the pel of space geometry geodata of storage is assembled, and is merged into Complete SVG element, and each complete SVG element is assembled again, until forming a complete SVG map.Specifically Including procedure below:
1) SVG assembler 6 according in PWMLW file system 9 storage spatial geography data present pattern, figure layer, knot The space that structure information will store in the geometry geodata of the SVG form in pre-generatmg spatial database 11 and attribute database 10 The attribute data of the pel of geometry geodata is assembled, and forms multiple atural object entity objects;
2) SVG assembler 6 according in PWMLW file system 9 storage spatial geography data present pattern, figure layer, knot Some described atural object entity objects are assembled by structure information, form multiple figure layer objects;
3) SVG assembler 6 according in PWMLW file system 9 storage spatial geography data present pattern, figure layer, knot Some described figure layer objects are assembled by structure information, form multiple map objects;
4) circulate 1) to 3), until forming SVG map.
In certain embodiments, application logical layer 3 also includes map data update device 7, is responsible for updating ESRI Shape sky Between Shape file data in data file system 16.
As Fig. 1, described client 1 includes:Browser 13, server end 2 is by described Web service interface 12 to described visitor The SVG map that family end 1 sends is shown by browser 13, and therefore described browser 13 is the WebGIS accessing based on SVG Instrument.
For the compatibility of strengthening system, in the preferred embodiment, described client 1 also includes SVG graphic viewers 15, It is the plug-in unit installed on a web browser, and SVG graphic viewers 15 carry for some browsers not supporting SVG document form For supporting function.
And, in the preferred embodiment, described client 1 also includes Javascript parser 14, and it is used for realizing SVG The translation of WebGIS, rolling scaling, attribute information inquiry, figure layer display control and server asynchronous communication, resolution server end The SVG document sending the operation being filled in SVG graphic viewers, described JavaScript resolver 14 can be also used for Define the other application programs interface interacting with SVG map, developer calls for other map application, and then develops The more rich SVG map application of function.Described client 1 also includes client-cache unit, and described client-cache unit adds The response processing speed of fast client.
The principle forming SVG map to the present invention below is specifically described:
Geographical spatial data is used to describe geographical space phenomenon, is generally divided into space geometry data and attribute data, Because space geometry data is more complicated, and SVG only supports some basic graphic elements at present, so by space geometry data Spatially to organize, (so-called spatial entities model is the contact of each spatial entity is to be stored directly in reality to physical model Within body object, independent), it is embodied as:Atural object in real world is divided into simple atural object big with complicated atural object two Class, simple atural object is divided into point-like to realize again, wire map, area feature, and complicated atural object is that have multiple simple maps to constitute.Separately Outward, the collective data that each atural object entity by target identifying code, describes this atural object and attribute data form.With general generalized information system (such as Arc) different, in the WebGIS based on SVG, a figure layer can comprise different types of geographical entity, and several figure layers can One map of composition.
As shown in Fig. 2 a map object can be divided into several figure layer objects, and some figure layer object include some Individual earth object, the packet label g that all map objects are all provided using SVG, to represent, is represented with the ID attribute of g label Object number, such as:Agreement map object is with " M " beginning of letter;Figure layer object is with " L " beginning of letter;Entity object is marked with " R " Show, for punctual geo-objects, linear ground object, area feature, complicated atural object respectively with " RP ", " RL ", and " RA ", " RC " starts.SVG carries For graphic element these atural objects can directly be described:Punctual geo-objects symol element definition, is then quoted with use element, wire Atural object circle, the element representation such as rect, polyline, path, area feature circle, rect, polyline, path Deng element representation.
WebGIS map data storage method based on SVG:Each atural object entity is by target identifying code, the collection that describes this subway Close data and attribute data composition, a figure layer can comprise different types of geographical entity in the WebGIS based on SVG, and Several figure layers can form a map, and spatial geography data is stored in ESRI Shape spatial data with Shape document form In file system, attribute data is stored in attribute database 10, and attribute database 10 is relational database;Described Shape literary composition Part stores positional information and the attribute information of geographic object using simply non-topology format, and Shape file is vector format ground Map file, its coordinate is cartesian coordinate, in Shape map file, the geometry of each of figure layer geographic element with One group of phasor coordinate form storage, corresponding attribute information leaves the number of the attribute database (dBase) being connected with Shape file in According in table, and it is associated by unique mark;Each Shape file stores the geographic element of a certain type, each Individual key element is equivalent to a line record in tables of data, and positional information and attribute information are deposited by ESRI Shape file format respectively In the specific file of one group of extended file name, these files leave in same catalogue, and this group file comprises a master file, One dBase form document and an index file,
Master file, with .shp as extension name, is the file that a record length being directly accessed differs, and each of which is remembered The geological information of one object of address book stored;
With .shx as extension name, in indexed file, each record preserves corresponding one in master file index file Record its deviant with respect to master file original position;
With .dbf as extension name, it comprises the attribute information of object to dBase form document, and a record correspondence one is right As the contact of attribute and object is that attribute record is deposited dbase form document based on recording mechanism (record number) Sequence consensus in master file for the corresponding geographical location information record of storage order.
During the storage of described attribute data in data base opening relationships table, each pel has a corresponding data attribute Link, stores the attribute of all examples of such pel in table.
When WebGIS uses Shape data, Shape file is converted to the document of SVG form by instrument, after arrangement It is stored in pre-generatmg spatial database, then by SVG assembler, itself and corresponding attribute data is assembled, until completing institute The SVG map document needing.
As Fig. 3, the map inquiry method of the WebGIS system based on SVG, it comprises the steps:
S1:Client sends a request to described server end by described Web service interface;
S2:After data buffer storage manager receives request, according to figure layer, coordinate range, zoom level parameter, first delay from data Depositing in manager retrieval map datum, if finding coupling, directly this data being returned to described client, otherwise just from Enter line retrieval in described Data Persistence Layer, and the geometry retrieving geodata is given described Shape file converteractivemil builder activemil builder;
S3:The form of described geometry geodata is converted to SVG lattice from Shape file format by Shape file converteractivemil builder activemil builder It is sent to described SVG assembler after formula;
S4:Pattern that SVG assembler presents according to the spatial geography data that described PWMLW file system stores, figure layer, knot Structure information, by the geometry geodata of the SVG form after the conversion of described Shape file converteractivemil builder activemil builder and described attribute data stock The attribute data of the pel of space geometry geodata of storage is circulated assembling, until completing required SVG map document;
S5:The SVG assembling map document is carried out returning to described client after GZIP compression by SVG assembler, simultaneously It is sent to described data buffer storage manager and enter row cache.
Wherein, the coordinate system of oneself defined in SVG, is coordinate transform defined in SVG (transform), its implication Similar to the coordinate transform in analytical geometry and mapping ruler, one or a block graphics object can be carried out translating, scales, revolves Turn, mistake is cut, specific conversion regime is as follows:translate(x,y):Graphic element is entered in X, Y direction respectively by specified numerical value Line displacement;scale(x,y):The zooming in and out in X, Y direction respectively by specified numerical value of graphic element, if only specify one Value, it will be used for both direction;rotate(n):Graphic element is rotated by specified angle.
In a browser, the drawing area of SVG file one determination rectangle viewport,<svg>It is marked with " width " With " height " attribute, viewport size when they render for labelling SVG figure;When accessing SVG document, client is first just Beginningization viewport, sets up Viewport coordinate system, its acquiescence far point in the upper left corner of viewport, X-axis positive direction level to the right, Y-axis positive direction Straight down.
By controlling the root element attribute viewbox of SVG document, change the top left co-ordinate of viewing window and the lower right corner is sat Mark, realizes the Zoom display of figure;The viewbox attribute tolerable injury level of SVG label or vertically move and scale original figure, this Individual attribute comprises 4 numerals to specify top left co-ordinate and bottom right angular coordinate, and these coordinates can be become through Pan and Zoom Change the new window coordinates after calculating.
The inquiry of ground feature attribute data can also be carried out in the WebGIS system based on SVG, specially:Attribute data with Geometry data is stored separately, and only stores the descriptive geometry data of atural object, and attribute data leaves server in SVG document In the attribute database at end, both are attached by " atural object identification number ", pass through way of bailment by JavaScript program Increase a mouse-click event to each earth object in SVG map, when user clicks on an atural object, JavaScript Current atural object " atural object identification number " can be got, then " atural object identification number " is sent to by server by asynchronous communication technology Inquired about, shown in the form of ejecting float layer again after server returned data.
And the control of map layer can also be carried out, specially:First pass through the getElementById of JavaScript Method finds g packet label, and visual (Visibility) property value then arranging this element is hiding (hidden) or visible (visible) can achieve and figure layer is closed and display control;Wherein, getElementById is the language in JavaScript Method, it is meant that and obtains element by the ID characteristic of element.
The present invention, on the basis of the WebGIS system based on SVG, additionally provides a kind of WebGIS system based on SVG Energy consumption monitoring system, should WebGIS system based on SVG energy consumption monitoring system by corresponding for SVG map space geometry geography number Supervise according to being divided into area level, green layer, rivers and lakes layer, path layer, building nitride layer, bridge layer, bus station's layer, street lamp layer, shooting Control layer, water energy mechanical floor, water energy pipeline layer, water energy transport layer, electric energy device layer, electric energy cable layer, electric energy Communication Layer, combustion gas set Standby layer, burning line layer, its SVG map be also accordingly divided into region figure layer, greening figure layer, rivers and lakes figure layer, road figure layer, Building figure layer, bridge figure layer, bus station's figure layer, street lamp figure layer, monitoring camera-shooting figure layer, water energy equipment figure layer, water energy conduit line map Layer, water energy transmission figure layer, electric energy device figure layer, electric energy cable figure layer, electric energy communication figure layer, gas-fired equipment figure layer, burning line Figure layer;The figure of concern when using this energy consumption monitoring system based on the WebGIS system of SVG, only need to be needed in client switching Layer can check corresponding information in this figure layer.
Below with WebGIS the answering in energy consumption monitoring management analyses platform based on SVG under two operation case explanations With:
1. user switches out " water energy mechanical floor ", can be by the energy device closing with aqueous phase (water meter, harvester, letter in map Number repeater, signal concentrator) icon shows, user passes through scaling, oneself water energy equipment to be paid close attention to is found in translation, Water energy equipment to be paid close attention to can be navigated to by comprehensive inquiry, clicking on icon can be by the essential information of this equipment, water consumption post Shape diagrammatic representation is out;
2. user switches out " monitoring camera-shooting layer ", the icon of monitoring device can be shown in map, user passes through contracting Put, translate and find oneself monitoring device to be paid close attention to it is also possible to monitoring device to be paid close attention to is navigated to by comprehensive inquiry, click on Icon can will eject a window, and the inside is shown that the video pictures of this monitoring device.
Above simply two operation cases, user can also use the energy consumption monitoring system of this WebGIS system based on SVG System is checked to other map data mining platform.
The present invention passes through the integrated WebGIS application based on SVG in energy consumption monitoring management analyses platform, realizes graphical Monitoring management, it is possible to provide directly perceived, simple and clear, efficiently data message inquiry and decision support service, simultaneously by not phase in system The functional module closed is integrated together, and user only need to be switched on map interface needs the figure layer of concern can obtain accordingly Information, improve user the efficiency of management.
The preferred embodiment of the present invention is only intended to help illustrate the present invention.It is all of that preferred embodiment does not have detailed descriptionthe Details, does not limit the specific embodiment that this invention is only described yet.Obviously, the content according to this specification, can make a lot Modifications and variations.This specification is chosen and is specifically described these embodiments, is to preferably explain the principle of the present invention and reality Border is applied, so that skilled artisan can utilize the present invention well.The present invention only be subject to claims and its Four corner and the restriction of equivalent.

Claims (10)

1. a kind of WebGIS system based on SVG is it is characterised in that include client and server end, wherein:
Described server end includes Data Persistence Layer, application logical layer and Web service interface;Described Data Persistence Layer with described Interact between application logical layer;
Described Data Persistence Layer includes ESRI Shape spatial data files system, attribute database and PWMLW file system; Described application logical layer includes Shape file converteractivemil builder activemil builder, SVG assembler and data buffer storage manager;Wherein:
Described ESRI Shape spatial data files system memory space geometry geodata;
The attribute data of the pel of described attribute database memory space geometry geodata;
Pattern that described PWMLW file system storage space geodata presents, figure layer, structural information;
Described Shape file converteractivemil builder activemil builder is by the form of the geometry geodata in described ESRI Shape spatial data files system Be converted to SVG form from Shape file format;
Pattern that described SVG assembler presents according to the spatial geography data that described PWMLW file system stores, figure layer, structure Information, by the geometry geodata of the SVG form after the conversion of described Shape file converteractivemil builder activemil builder and described attribute data library storage The attribute data of the pel of space geometry geodata assembled, be merged into complete SVG element, and each is complete SVG element is assembled again, until forming a complete SVG map;
Interacted by described Web service interface between described client and described server end, described client passes through institute State Web service interface and send request to described server end, described server end is by described Web service interface to described client End sends SVG map;
The data that described data buffer storage manager is crossed to described client request enters row cache, when same resource is accessed again When, from described data buffer storage manager, directly read data be rapidly returned to described client;
Also include three-level cache, three-level cache is located at the spatial data caching of Data Persistence Layer respectively, applies logic The SVG cache map of layer and client-cache;
Described Data Persistence Layer also includes pre-generatmg spatial database, several in described ESRI Shape spatial data files system What geodata is converted to from Shape file format is stored in after SVG form described pre-generatmg spatial database;
This pre-generatmg spatial database also includes space geometry data buffer storage unit, by Shape file converteractivemil builder activemil builder, by ESRI Space geometry data cell in Shape file system and corresponding attribute data carry out assembly and are converted into the unit of SVG form Plain piece section, is stored in centralized management in pre-generatmg spatial database after treatment, when there being request of data, directly accesses pre- life Become spatial database.
2. the WebGIS system based on SVG according to claim 1 is it is characterised in that described SVG assembler is according to described Pattern that the spatial geography data of PWMLW file system storage presents, figure layer, structural information, will be stored in described pre-generatmg empty The pel of the space geometry geodata of the geometry geodata of the SVG form in spatial database and described attribute data library storage Attribute data assembled, be merged into complete SVG element, and each complete SVG element assembled again, until Form a complete SVG map.
3. the WebGIS system based on SVG according to claim 2 is it is characterised in that described SVG assembler will be stored in The space geometry ground of the geometry geodata of the SVG form in described pre-generatmg spatial database and described attribute data library storage The attribute data of the pel of reason data is assembled, and is merged into complete SVG element, and by each complete SVG element again Being assembled, until forming a complete SVG map, being specifically included:
1) described SVG assembler presents according to the spatial geography data that described PWMLW file system stores pattern, figure layer, knot Structure information is by the sky of the geometry geodata of the SVG form in described pre-generatmg spatial database and described attribute data library storage Between the attribute data of pel of geometry geodata assembled, form multiple atural object entity objects;
2) described SVG assembler presents according to the spatial geography data that described PWMLW file system stores pattern, figure layer, knot Some described atural object entity objects are assembled by structure information, form multiple figure layer objects;
3) described SVG assembler presents according to the spatial geography data that described PWMLW file system stores pattern, figure layer, knot Some described figure layer objects are assembled by structure information, form multiple map objects;
4) circulate 1) to 3), until forming SVG map.
4. the WebGIS system based on SVG according to claim 3 is it is characterised in that described application logical layer also includes Map data update device, for updating the data in described ESRI Shape spatial data files system.
5. the WebGIS system based on SVG according to claim 1 is it is characterised in that described client includes browser, The SVG map that described server end is sent to described client by described Web service interface is by described browser display.
6. the WebGIS system based on SVG according to claim 5 is it is characterised in that described client also includes SVG figure Shape reader, described SVG graphic viewers are arranged on described browser as a plug-in unit, when SVG do not supported by described browser During form, described SVG graphic viewers support function for not supporting the browser of SVG form to provide.
7. the WebGIS system based on SVG according to claim 6 is it is characterised in that described client also includes JavaScript resolver, described JavaScript resolver is direct on described browser and described SVG graphic viewers Execution, described JavaScript resolver parses to the SVG map that described server sends, and the map after parsing is filled out It is charged in SVG graphic viewers;It is realized the translation to SVG map, is rolled scaling, belongs to by described JavaScript resolver Property information inquiry, figure layer display control.
8. the WebGIS system based on SVG according to claim 7 is it is characterised in that described client is by described JavaScript resolver and described server end carry out asynchronous communication.
9. a kind of map inquiry method of the WebGIS system based on SVG as claimed in claim 1 is it is characterised in that include Following steps:
Described client sends a request to described server end by described Web service interface;
After described data buffer storage manager receives request, according to figure layer, coordinate range, zoom level parameter, first from data buffer storage Retrieving map datum in manager, if finding coupling, directly this data being returned to described client, otherwise just from institute State and in Data Persistence Layer, enter line retrieval, and the geometry retrieving geodata is given described Shape file converteractivemil builder activemil builder;
The form of described geometry geodata is converted to after SVG form by described Shape file converteractivemil builder activemil builder from Shape file format It is sent to described SVG assembler;
Pattern that described SVG assembler presents according to the spatial geography data that described PWMLW file system stores, figure layer, structure Information, by the geometry geodata of the SVG form after the conversion of described Shape file converteractivemil builder activemil builder and described attribute data library storage The attribute data of the pel of space geometry geodata be circulated assembling, until completing required SVG map document;
The SVG assembling map document is carried out returning to described client after GZIP compression by described SVG assembler, sends simultaneously Enter row cache to described data buffer storage manager.
10. a kind of energy consumption monitoring system of the WebGIS system based on SVG, using WebGIS system as claimed in claim 1 Carry out energy consumption monitoring it is characterised in that should WebGIS system based on SVG energy consumption monitoring system by corresponding for SVG map sky Between geometry geodata be divided into area level, green layer, rivers and lakes floor, path layer, building nitride layer, bridge floor, bus station's floor, road Lamp layers, monitoring camera-shooting layer, water energy mechanical floor, water energy pipeline layer, water energy transport layer, electric energy device layer, electric energy cable layer, electric energy lead to News layer, gas-fired equipment layer, burning line layer, its SVG map is also accordingly divided into region figure layer, greening figure layer, rivers and lakes figure Layer, road figure layer, building figure layer, bridge figure layer, bus station's figure layer, street lamp figure layer, monitoring camera-shooting figure layer, water energy equipment drawing Layer, water energy pipeline figure layer, water energy transmission figure layer, electric energy device figure layer, electric energy cable figure layer, electric energy communication figure layer, gas-fired equipment Figure layer, burning line figure layer;When using this energy consumption monitoring system based on the WebGIS system of SVG, only need to cut in client Change and need the figure layer of concern can check corresponding information in this figure layer.
CN201310152481.3A 2013-04-27 2013-04-27 SVG-based Web GIS system and relevant energy consumption monitoring system Expired - Fee Related CN103226604B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310152481.3A CN103226604B (en) 2013-04-27 2013-04-27 SVG-based Web GIS system and relevant energy consumption monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310152481.3A CN103226604B (en) 2013-04-27 2013-04-27 SVG-based Web GIS system and relevant energy consumption monitoring system

Publications (2)

Publication Number Publication Date
CN103226604A CN103226604A (en) 2013-07-31
CN103226604B true CN103226604B (en) 2017-02-15

Family

ID=48837049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310152481.3A Expired - Fee Related CN103226604B (en) 2013-04-27 2013-04-27 SVG-based Web GIS system and relevant energy consumption monitoring system

Country Status (1)

Country Link
CN (1) CN103226604B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832460A (en) * 2017-11-28 2018-03-23 航天天绘科技有限公司 The graphical page control method of real-time display Satellite TT data based on SVG

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955549A (en) * 2014-05-26 2014-07-30 重庆大学 Web GIS system based on SVG and data input and search method thereof
CN104318508A (en) * 2014-10-31 2015-01-28 北京思特奇信息技术股份有限公司 Data visualization method and system based on planar shp map layer
CN104391947B (en) * 2014-12-01 2017-11-21 广东电网有限责任公司清远供电局 Magnanimity GIS data real-time processing method and system
CN104598678B (en) * 2015-01-12 2018-01-16 中国南方电网有限责任公司 Power transmission network logic geography drawing generating method
CN106610957A (en) * 2015-10-21 2017-05-03 星际空间(天津)科技发展有限公司 Multi-source data integration method based on geographic information
CN108228624A (en) * 2016-12-15 2018-06-29 深圳市优朋普乐传媒发展有限公司 Data acquisition and update method, piece list service system and piece single system
CN106530399A (en) * 2016-12-23 2017-03-22 成都四威电子有限公司成都星石科技分公司 Electronic sand table generation method
CN106780684B (en) * 2017-01-09 2021-08-31 腾讯科技(深圳)有限公司 Animation effect realization method and device
CN107450431B (en) * 2017-08-14 2020-04-10 广州耐奇电气科技有限公司 Energy comprehensive management system
CN107450432B (en) * 2017-08-14 2020-07-07 广州耐奇电气科技有限公司 Centralized energy visual management system
CN107562308B (en) * 2017-08-14 2020-04-10 广州耐奇电气科技有限公司 Energy information management system and method
CN107861485A (en) * 2017-11-29 2018-03-30 西门子工厂自动化工程有限公司 Data acquisition and monitoring control method, client, server and system
CN107871128B (en) * 2017-12-11 2023-06-06 广州市标准化研究院(广州市组织机构代码管理中心) High-robustness image recognition method based on SVG dynamic graph
CN108765188A (en) * 2018-05-02 2018-11-06 深圳供电局有限公司 A kind of graphical real-time energy efficiency monitoring system
CN108803995B (en) * 2018-06-14 2020-11-20 曙光信息产业(北京)有限公司 SVG-based chart data display system
CN109101688B (en) * 2018-07-06 2022-06-17 烽火通信科技股份有限公司 Method for drawing pipeline section sectional drawing in template mode
CN109344217A (en) * 2018-10-09 2019-02-15 四川长虹电器股份有限公司 A kind of WebGIS implementation method based on JavaScript and SVG
CN109360485A (en) * 2018-10-10 2019-02-19 泰华智慧产业集团股份有限公司 Intelligent road-lamp map methods of exhibiting and system
CN109857819B (en) * 2018-11-20 2021-02-05 国网能源研究院有限公司 Global energy geography multimedia interactive display system
CN109765796A (en) * 2019-01-15 2019-05-17 江苏方天电力技术有限公司 A kind of garden comprehensive energy real time monitoring and on-line analysis based on SVG and Ajax
CN109981740A (en) * 2019-02-25 2019-07-05 湖北金拓维信息技术有限公司 A kind of distribution image data multi-level buffer method
CN111737196B (en) * 2020-06-22 2023-11-10 国能日新科技股份有限公司 Meteorological resource grid text-to-vector diagram method and device based on power transaction system
CN115952427B (en) * 2023-03-14 2023-05-30 山东美航天天能源技术有限公司 Industrial garden digital operation management method and system
CN117390579A (en) * 2023-10-16 2024-01-12 广东省城乡规划设计研究院有限责任公司 Urban safety risk space data fusion processing and visualization method

Citations (4)

* 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
CN1945578A (en) * 2006-08-26 2007-04-11 福州开睿动力通信科技有限公司 Method for forming and applying high speed Wcb electronic map based on space data base and SVG
CN101075249A (en) * 2007-06-22 2007-11-21 上海众恒信息产业有限公司 Data warehouse system and its construction for geographical information system
CN101075248A (en) * 2007-06-22 2007-11-21 上海众恒信息产业有限公司 System and method for providing geographical information system interface service

Patent Citations (4)

* 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
CN1945578A (en) * 2006-08-26 2007-04-11 福州开睿动力通信科技有限公司 Method for forming and applying high speed Wcb electronic map based on space data base and SVG
CN101075249A (en) * 2007-06-22 2007-11-21 上海众恒信息产业有限公司 Data warehouse system and its construction for geographical information system
CN101075248A (en) * 2007-06-22 2007-11-21 上海众恒信息产业有限公司 System and method for providing geographical information system interface service

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于SVG的WebGIS地图展示系统的研究与实现;杜琳;《中国优秀硕士学位论文全文数据库 信息科技辑》;20100228(第2期);I138-143 *
基于SVG的WebGIS设计;矫树春;《中国优秀硕士学位论文全文数据库 基础科学辑》;20060930(第9期);A008-18 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832460A (en) * 2017-11-28 2018-03-23 航天天绘科技有限公司 The graphical page control method of real-time display Satellite TT data based on SVG

Also Published As

Publication number Publication date
CN103226604A (en) 2013-07-31

Similar Documents

Publication Publication Date Title
CN103226604B (en) SVG-based Web GIS system and relevant energy consumption monitoring system
CN106909644B (en) A kind of multistage tissue and indexing means towards mass remote sensing image
CN106898047A (en) The adaptive network method for visualizing of oblique model and multivariate model dynamic fusion
CN108009211A (en) Multisource map vector tile rendering system based on rule base
CN103955549A (en) Web GIS system based on SVG and data input and search method thereof
CN107992589B (en) SVG map data loading method, device and system
CN110322326A (en) A kind of economic big data sharing method of geography based on ArgGis
CN103744995A (en) Thematic map building method and mobile terminal applying same
CN102073455B (en) Database-based multi-screen data switching display method
CN110032610A (en) A kind of scale vector method for exhibiting data and system
CN106156205A (en) A kind of three-dimensional visualization method of ultra-large data
CN110110248A (en) Panoramic picture computer system is shown along a kind of realization electronic map
CN107733694A (en) The automatic analysis method of internet of things oriented real time data
CN102708167B (en) Web-based semantic annotation system and Web-based semantic annotation method for high resolution SAR (synthetic aperture radar) image interpretation
CN101814070B (en) Method and system for realizing geographic information data sharing
Nativi et al. Differences among the data models used by the geographic information systems and atmospheric science communities
CN102306247A (en) Network customer service and pass management system based on doctor on-line interaction
Xi et al. Application of GML and SVG in the development of WebGIS
CN105631934A (en) Three-dimensional visualization information system under network environment
Zhang et al. Visualization of large spatial data in networking environments
Wen et al. Fast visualisation of massive data based on viewpoint motion model
Chen et al. Virtual globe-based integration and sharing service method of GeoSpatial Information
Liu et al. Research on the Integration of Silverlight and WebGIS Based on REST
Wu et al. Research and implementation of smart transmission grids based on WebGIS
CN112445951A (en) Ocean data visualization method compatible with various maps and capable of being switched quickly and flexibly

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 200063 2006-C room, No. 509, Wuning Road, Shanghai, Putuo District

Applicant after: Shanghai Laixin Information Technology Development Co.,Ltd.

Address before: 200063 2006-C room, No. 509, Wuning Road, Shanghai, Putuo District

Applicant before: Shanghai Powerinvent Information Technology Development Co.,Ltd.

COR Change of bibliographic data
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: 20170215

CF01 Termination of patent right due to non-payment of annual fee