A kind of dynamic layer inducing method and system
Technical field
This application involves technical field of electric power more particularly to a kind of dynamic layer inducing method and systems.
Background technology
In webgis network geographic information systems, how front end carry out spatial object display and selection, be very much
The emphasis of application.
In general application, directly from GIS (Geographic Information System, GIS-Geographic Information System)
Server obtains the coordinate information of spatial object, and it is a kind of widespread practice then directly to be drawn in front end.But this way has
A defect, the information content exactly obtained cannot be too big, and more than 20000 spatial data objects will be such that the drafting of front end blocks very much
, so as to cause the not smooth of application effect, using effect is had a greatly reduced quality so that user experience is poor, it is difficult to normal operation
Business operation.
Invention content
In view of this, this application provides a kind of dynamic layer inducing method and system, to overcome in the prior art
Webgis network geographic information systems can not cope with a large amount of spatial datas, cause front end draw interim card the problem of.
To achieve the above object, the application provides following technical scheme:
A kind of dynamic layer inducing method, including:
Grille picture is generated, and the grille picture is sent to the grid map of front end using the coordinate information of spatial object
Piece figure layer is shown;
It is sent using the dynamic sensing object acquisition service receiving front-end developed in advance according to the grille picture figure layer
Solicited message, and the spatial object for meeting the solicited message is fed back into the front end;
The spatial object is shown in the dynamic sensing figure layer developed in advance the front end;
Wherein, the dynamic sensing figure layer is covered in above the grille picture figure layer.
Preferably, it is described to be specifically included using the coordinate information generation grille picture of spatial object:
Obtain the coordinate information of the spatial object in preset range;
The coordinate information is rendered to form grille picture using pre-defined configuration.
Preferably, the solicited message includes:Engineer's scale is asked and indication range request.
Preferably, the spatial object is to meet the spatial object that dynamic senses element definition;
Wherein, the dynamic sensing element definition includes:Element to be shown and the member are needed under preset ratio ruler
Color, pattern, size and the angle of element.
Preferably, the spatial object feeds back to the front end in the form of XML file.
A kind of dynamic layer induction system, including:Grille picture generation module, transit module and display module;
The grille picture generation module, for generating grille picture using the coordinate information of spatial object, and by described in
The grille picture figure layer that grille picture is sent to front end is shown;
The transit module, for the request sent using the dynamic sensing object acquisition service receiving front-end developed in advance
Information, and the spatial object for meeting the solicited message is fed back into the front end;
The display module senses figure layer for the spatial object to be shown in the dynamic developed in advance the front end;
Wherein, the dynamic sensing figure layer is covered in above the grille picture figure layer.
Preferably, the grille picture generation module includes:Acquisition module forms module and sending module;
The acquisition module, for obtaining the coordinate information of the spatial object in preset range;
The formation module, for rendering to form grille picture by the coordinate information using pre-defined configuration;
The sending module, the grille picture figure layer for the grille picture to be sent to front end are shown.
Preferably, the solicited message includes:Engineer's scale is asked and indication range request.
Preferably, the spatial object is to meet the spatial object that dynamic senses element definition;
Wherein, the dynamic sensing element definition includes:Element to be shown and the member are needed under preset ratio ruler
Color, pattern, size and the angle of element.
Preferably, the spatial object feeds back to the front end in the form of XML file.
By above technical scheme it is found that this application provides a kind of dynamic layer inducing methods and system, this method to include:
Generate grille picture using the coordinate information of spatial object, and by the grille picture be sent to the grille picture figure layer of front end into
Row display;It is asked using the dynamic sensing object acquisition service receiving front-end developed in advance according to what the grille picture figure layer was sent
Information is sought, and the spatial object for meeting the solicited message is fed back into the front end;The spatial object is shown in described
The dynamic sensing figure layer that front end is developed in advance;Wherein, the dynamic sensing figure layer is covered in above the grille picture figure layer.It should
Method goes out the mode that figure and front end dynamic access spatial object are combined by using rear end GIS service, can either cope with big number
It is selected according to the spatial object under amount, and can show that content is operated to front end, improve using effect, and enhance user
Experience.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention, for those of ordinary skill in the art, without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart of a kind of dynamic layer inducing method that the embodiment of the present application one provides;
Fig. 2 is the flow chart of a kind of generation grille picture that the embodiment of the present application one provides;
Fig. 3 is the structure diagram of a kind of dynamic layer induction system that the embodiment of the present application two provides;
Fig. 4 is the structure diagram of a kind of grille picture generation module that the embodiment of the present application two provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment shall fall within the protection scope of the present invention.
For overcome in the prior art webgis network geographic information systems can not cope with a large amount of spatial datas, front end is caused to be painted
The problem of fabrication, this application provides a kind of dynamic layer inducing method and system, concrete scheme are as described below:
Embodiment one
The embodiment of the present application one provides a kind of dynamic layer inducing method, and as shown in FIG. 1, FIG. 1 is the embodiment of the present application
A kind of flow chart of the one dynamic layer inducing method provided.This method includes:
S101:Grille picture is generated, and grille picture is sent to the grid of front end using the coordinate information of spatial object
Picture figure layer is shown.
Specifically, as shown in Fig. 2, Fig. 2 is the flow chart of a kind of generation grille picture that the embodiment of the present application one provides.Profit
It is specifically included with the coordinate information generation grille picture of spatial object:
S201:Obtain the coordinate information of the spatial object in preset range.
S202:Coordinate information is rendered to form grille picture using pre-defined configuration.
Specifically, rasterize layer is exactly that polar plot is become pixel map, the data of raster map layer are rendered as image, grid
It formats so that original magnanimity spatial object is converted to single picture pixels, while keeping abundant performance, reduces data
Transmission quantity, the source of the figure layer are rear ends into figure.WebGIS rear ends are used in the application into diagram technology.Rear end refers to taking into figure
Spatial data in specified range is rendered to be formed by business end according to pre-defined configuration deletes trrellis diagram piece, then passes through communications protocol
The process shown to front end is sent, this is also the Core Feature of ArcGIS Server.Rear end will calculate and render pressure into diagram technology
Rear end is moved to, greatly reduces the requirement to front end system environment, simultaneously because using picture transfer, also greatly reduces net
The pressure of network transmission.
By the grille picture of formation by communications protocol, such as ICP/IP protocol, it is sent to the grille picture figure layer of front end
It is shown, so as to obtain static figure layer.It should be noted that due to transmission be to delete trrellis diagram piece rather than vector file, because
This content shown in front end is inoperable, can not be selected and be analyzed, and is unsatisfactory for practical business requirement.It is if simple
It is handled using inquiry, then increases the complexity of user's operation, experience sense is poor, it is therefore desirable to what the application subsequently introduced
Dynamic layer senses.
S102:The solicited message that receiving front-end is sent according to grille picture figure layer, and the space pair that solicited message will be met
As feeding back to front end.
Specifically, the solicited message sent using the dynamic sensing object acquisition service receiving front-end developed in advance, and will
The spatial object for meeting solicited message feeds back to front end.Wherein, solicited message includes:Engineer's scale is asked and indication range request.
Spatial object is to meet the spatial object that dynamic senses element definition, and spatial object feeds back to front end in the form of XML file.
Dynamic sensing element definition includes:Color, pattern, the size of element to be shown and the element are needed under preset ratio ruler
With angle etc., for example, when power grid to be shown, element can be included with electric brake, switch, circuit and substation etc..
Specifically, when user browses map dragging map, the controller of front end can detect, and flutter and catch map
Visible range changes, and empties pel figure layer, sends space querying to server again, after obtaining result, creates pel, is added to
In dynamic sensing figure layer.In this application, the controller of front end include three parts logic, i.e., map change events flutter catch, space
Object Query and pel are drawn and response.Map change events, which are flutterred, to be caught, and is realized with a messaging list, is become in frequent map
It is intermediate to flutter the message caught and be ignored when change, remove unnecessary query actions, to optimize response;Spatial object is inquired,
It is realized using the querytask of arggis, front end is allowed to set the details such as querying condition;Pel is drawn and response, from service
After obtaining information, after the parsing of front end, example chemical conversion graphics primitive object is added in sensing figure layer and is shown, and to each pel
Increase mouse response, in order to later business operation.
In the application, further include for cache front-end map frequent operation message query task manager, in rear end
It in the case that query result returns not yet, will be dropped in the map operation message of progress, until an inquiry request is handled
It completes, then receives new request again.
Message receives pseudocode:
Protected function map_extendChangeHandler(event:ExtentEvent):void
{
Var mapLevel:Int=this.map.level;
Var lc:String=this.map.extent.xmin+ " "+this.map.extent.ymin;
Var uc:String=this.map.extent.xmax+ " "+this.map.extent.ymax;
// increase message to queue
Task(maplevel,lc,uc);
// primary space Object Query is carried out, if currently having had request, then just skip
Taskquey();
}
Space querying pseudocode:
S103:Spatial object is shown in the dynamic sensing figure layer developed in advance front end.
In this application, firstly, it is necessary to define dynamic sensing element.Dynamic sensing element definition refers to map a certain
Under engineer's scale, which element needs shown, and color pattern for show of element etc., and cooperation dynamic sensing object acquisition takes
The service of business works together.Based on the type of spatial object shown under the general ruler in varing proportions of definition of dynamic sensing element
Will foundation, be aided with the screening conditions such as important level, administrative department and be filtered.Mainly consider during definition at 2 points:Whether in business
On pay close attention to the element;The quantity of element needs to control in a certain range.
Secondly, development behavior sensing object acquisition service.The engineer's scale and indication range that the service receiving front-end is sent please
It asks, after search space database, returns to a series of spatial object information list and go back to front end.
Finally, sense figure layer in front end development behavior.Dynamic sensing figure layer, which is covered in, deletes on trrellis diagram piece figure layer, works as user
During operation, the dynamic in current indication range is constantly asked to sense object, and dynamic sensing object is converted into transparent front end
Drawing Object receives the mouse event of user, timely responds to user's selection and analysis behavior.
By above technical scheme it is found that the embodiment of the present application one provides a kind of dynamic layer inducing method, including:It utilizes
The coordinate information generation grille picture of spatial object, and the grille picture figure layer that the grille picture is sent to front end is shown
Show;Believed using the dynamic sensing object acquisition service receiving front-end developed in advance according to the request that the grille picture figure layer is sent
Breath, and the spatial object for meeting the solicited message is fed back into the front end;The spatial object is shown in the front end
The dynamic sensing figure layer developed in advance;Wherein, the dynamic sensing figure layer is covered in above the grille picture figure layer.This method
Go out a kind of mode that figure and front end dynamic access spatial object are combined by using rear end GIS service, big number can either be coped with
It is selected according to the spatial object under amount, and can show that content is operated to front end, improve using effect, and enhance user
Experience.
Embodiment two
The embodiment of the present application two provides a kind of dynamic layer induction system, as shown in figure 3, Fig. 3 is the embodiment of the present application
A kind of structure diagram of the two dynamic layer induction systems provided.The system includes:Grille picture generation module 301, transfer
Module 302 and display module 303.
Grille picture generation module 301, for generating grille picture using the coordinate information of spatial object, and by the grid
The grille picture figure layer that trrellis diagram piece is sent to front end is shown.
Specifically, as shown in figure 4, Fig. 4 is the structure of a kind of grille picture generation module that the embodiment of the present application two provides
Schematic diagram.The grille picture generation module includes:Acquisition module 401 forms module 402 and sending module 403.
Acquisition module 401, for obtaining the coordinate information of the spatial object in preset range.
Module 402 is formed, for rendering to form grille picture by coordinate information using pre-defined configuration.
Sending module 403, the grille picture figure layer for grille picture to be sent to front end are shown.
Specifically, rasterize layer is exactly that polar plot is become pixel map, the data of raster map layer are rendered as image, grid
It formats so that original magnanimity spatial object is converted to single picture pixels, while keeping abundant performance, reduces data
Transmission quantity, the source of the figure layer are rear ends into figure.WebGIS rear ends are used in the application into diagram technology.Rear end refers to taking into figure
Spatial data in specified range is rendered to be formed by business end according to pre-defined configuration deletes trrellis diagram piece, then passes through communications protocol
The process shown to front end is sent, this is also the Core Feature of ArcGIS Server.Rear end will calculate and render pressure into diagram technology
Rear end is moved to, greatly reduces the requirement to front end system environment, simultaneously because using picture transfer, also greatly reduces net
The pressure of network transmission.
By the grille picture of formation by communications protocol, such as ICP/IP protocol, it is sent to the grille picture figure layer of front end
It is shown, so as to obtain static figure layer.
Transit module 302, for the request sent using the dynamic sensing object acquisition service receiving front-end developed in advance
Information, and the spatial object for meeting solicited message is fed back into front end.
Wherein, solicited message includes:Engineer's scale is asked and indication range request.Spatial object is meets dynamic sensing element
The spatial object of definition, and spatial object feeds back to front end in the form of XML file.Dynamic sensing element definition includes:Pre-
If needing the color of element to be shown and the element, pattern, size and angle etc. under engineer's scale, for example, when to show electricity
During net, element can be included with electric brake, switch, circuit and substation etc..
Display module 303 senses figure layer for spatial object to be shown in the dynamic developed in advance front end.
In this application, firstly, it is necessary to define dynamic sensing element.Dynamic sensing element definition refers to map a certain
Under engineer's scale, which element needs shown, and color pattern for show of element etc., and cooperation dynamic sensing object acquisition takes
The service of business works together.Based on the type of spatial object shown under the general ruler in varing proportions of definition of dynamic sensing element
Will foundation, be aided with the screening conditions such as important level, administrative department and be filtered.Mainly consider during definition at 2 points:Whether in business
On pay close attention to the element;The quantity of element needs to control in a certain range.
Secondly, development behavior sensing object acquisition service.The engineer's scale and indication range that the service receiving front-end is sent please
It asks, after search space database, returns to a series of spatial object information list and go back to front end.
Finally, sense figure layer in front end development behavior.Dynamic sensing figure layer, which is covered in, deletes on trrellis diagram piece figure layer, works as user
During operation, the dynamic in current indication range is constantly asked to sense object, and dynamic sensing object is converted into transparent front end
Drawing Object receives the mouse event of user, timely responds to user's selection and analysis behavior.
By above technical scheme it is found that the embodiment of the present application two provides a kind of dynamic layer induction system, including:Grid
Image generating module, transit module and display module;The grille picture generation module, for being believed using the coordinate of spatial object
Breath generation grille picture, and the grille picture figure layer that the grille picture is sent to front end is shown;The transit module,
For the solicited message sent using the dynamic sensing object acquisition service receiving front-end developed in advance, and the request will be met
The spatial object of information feeds back to the front end;The display module, it is pre- for the spatial object to be shown in the front end
The dynamic sensing figure layer first developed;Wherein, the dynamic sensing figure layer is covered in above the grille picture figure layer.The system is led to
It crosses and a kind of mode that figure and front end dynamic access spatial object are combined is gone out using rear end GIS service, big data can either be coped with
Spatial object selection under amount, and can show that content is operated to front end, using effect is improved, and enhance user's body
It tests.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only include that
A little elements, but also including other elements that are not explicitly listed or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except also there are other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other
The difference of embodiment, just to refer each other for identical similar portion between each embodiment.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or using the application.
A variety of modifications of these embodiments will be apparent for those skilled in the art, it is as defined herein
General Principle can in other embodiments be realized in the case where not departing from spirit herein or range.Therefore, the application
The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one
The most wide range caused.