A kind of transmission of CAD, GIS, SWMM data collaborative and organization and management method
Technical field
The present invention relates to information technology fields, more particularly to a kind of CAD, GIS, SWMM data collaborative transmission method.
Background technology
In recent years, the Development of Urbanization of high speed brings the protrusions such as flooding risk, water environment pollution, Ecology destruction and asks
Topic has seriously threatened urban safety operation and people life property safety, and country has carried out a series of sponge cities and builds thus
If thinking and correlation technique, sponge city is to establish the city with nature accumulation, naturally osmotic, self-purification, is a kind of new
City development pattern, Developing is carried out under the premise of complying with the nature, realizes the harmonious development and coexistence of man and nature.Sea
Continuous urban construction be related to city always advise, ad hoc planning, Project design, the links such as scheme evaluation, and planning, municipal administration,
Multiple industries such as government and department have the characteristics that construction area is wide, range is big, flow is complicated, data are more, format disunity,
It needs to get through the technical barrier between links, each department.At present CAD and third party CAD is mostly used in design field
Plug-in unit carrys out implementation design, it is advantageous that drawing is convenient, effect is intuitive, in terms of having arrived audit and assessment, often uses GIS
Technology and SWMM models, SWMM are flash flood model, are simulated for design scheme, and GIS can be based on analog result and carry out a system
Row analysis and assessment, and result displaying is carried out using method for visualizing, including dynamically floods analysis, pipe network visualization assessment etc..
Data format disunity is connected difficult between causing links, and existing data transfer device, practicability is not strong, it is difficult to simultaneous
The data constraint between CAD, GIS, SWMM and related request are cared for, manual processing is many times needed, causes data error excessive,
Inefficiency really realizes a kind of number by the invention it is possible to fast implement the data transmission problems between CAD, GIS, SWMM
According to multidirectional transmission, freely convenient data collaborative transmission and organization and management method are updated.
Invention content
The additional aspect and advantage of the present invention will be set forth in part in the description, and will partly become from the following description
Obviously, or practice through the invention is recognized.
A kind of transmission of CAD, GIS, SWMM data collaborative and organization and management method, include the following steps:
S1, the data type for identifying data transmission terminal and receiving terminal, the data type includes CAD, GIS, SWMM, will be passed
The data type information of defeated end and receiving terminal is transferred to transmission end data packaging unit;
S2, the transmission end data packaging unit will need transmission data according to the transmission end and the data type of receiving terminal
It is packaged into data packet, described to need transmission data include system data and instance data;The system data includes system time version
Originally, instance data field sum, the system data are non-null value;The instance data includes code field, field name, often
One code field is corresponding with a field name;When the transmission end data packaging unit is packaged, extraction is all
System data and one or all instance data;
The data packet is transferred to transmission end transmission unit, the transmission end by S3, the transmission end data packaging unit
The connection that link layer is completed between transmission unit and receiving terminal data receipt unit, to establish transmission channel;
S4, receiving terminal data receipt unit receive data and are examined to the data by receiving terminal DCU data control unit
It looks into, the generation error information if the data are invalid data;If the data are valid data, it is single to receive end data control
First the data of the data of the current version in receiving terminal data storage cell and old version are compared for member, work as described in taking-up
The data of preceding version are compared current corresponding to the code field to change and respective field coding with the data of old version
Data and historical data are as transaction data, and the data then transmitted again with transmission end are compared, if the conjunction of transmission end
There is code field identical with transaction data in method data, and respectively corresponding data are different under field number, then receive
End data control unit generates the information for needing secondary-confirmation, and the secondary-confirmation information is passed through by receiving terminal data outputting unit
Dedicated channel transfer is crossed to the data receipt unit of transmission end, when user transmission end DCU data control unit make confirmation or
After abort operation, the DCU data control unit of transmission end by the confirmation or abandons data transmission unit warp of the information by transmission end
The dedicated channel is sent to the data receipt unit of the receiving terminal, and the data receipt unit of the receiving terminal will be described true
The DCU data control unit that information is transmitted to the receiving terminal is recognized, if the DCU data control unit reception of the receiving terminal is confirmation letter
All data under the current version are stored in the reception end data as the data backup of old version and store list by breath
Member, all data in the transmission end receiving unit are corresponding by its by the data by receiving terminal data storage cell
The data of number filling current version;If what the receiving terminal DCU data control unit received is to give up information, the biography is deleted
In defeated end receiving unit the data abandoned are selected through secondary-confirmation;If in the transaction data and the valid data, do not have
The number repeated, then be stored in the receiving terminal using all data under the current version as the data backup of old version
Data storage cell, will be described by receiving terminal data storage cell by the valid data in the transmission end receiving unit
Data insert the data of current version by its corresponding number, and generate new version number;It generates and successfully records simultaneously, and pass through
The successfully record is returned to transmission end receiving unit by the dedicated channel, and the transmission end receiving unit is successfully remembered described
Record is stored in log space by receiving terminal data storage cell.
The method achieve the data transmission problems between CAD, GIS, SWMM between arbitrary two system or model, really
It realizes a kind of multidirectional transmission of data, updates freely convenient data collaborative transmission and organization and management method, and realize transmission end
Respectively occur to need to carry out the unified management of version after data change with receiving terminal.
In a kind of preferred embodiment of the present invention, the invalid data includes that there are null field, institutes in the system data
State the inconsistent quantity that instance data actual quantity and the instance data field sum are filled in, the system data and/or
Data formatting error in the instance data, the error message include type of error, mistake time of origin, and by described special
The error message is returned to transmission end data receipt unit by channel, and the transmission end data receipt unit is by the mistake
Information is stored in log space by receiving terminal data storage cell.
The program can allow user mistake occur in data generate, transmit and receive each link and can be returned in real time
Feedback, and log recording is provided to check and to correct in time.
In another preferred embodiment of the present invention, when the transmission end or receiving terminal are any one in CAD or GIS
When, field name described in the instance data includes inspection shaft, drainage pipeline, surface water channel, water pump, aperture, weir, other classes
Type water outlet, water catchment area, underlying surface, low influence development facility;It is described when it is SWMM that transmission end or receiving terminal, which arbitrarily have one end,
Field name described in instance data includes engineering title, analysis option, output report instruction, interface document option, rainfall gauge
Parameter, low influence exploitation control letter are oozed under information, water catchment area geological information, water catchment area permeable face/impermeable face data, water catchment area
It ceases, low influence development facility information, connecting node information, connecting pipeline information, the cross section information of water catchment area.
The program is different in view of different systems or model data structures, therefore needs the field transmitted to do it
Standardized management according to different system or the model extraction data information different with transmission can be real without artificially defining
Existing automatic business processing.
Description of the drawings
The above-mentioned and/or additional aspect and advantage of the utility model will in the description from combination following accompanying drawings to embodiment
Become apparent and is readily appreciated that, wherein:
Fig. 1 is data collaborative transmission and the organization and management method flow chart of the present invention;
Fig. 2 is that the receiving terminal of the present invention receives the versions merging method flow diagram after data;
Fig. 3 be the present invention according to transmission end and receiving terminal different system or model to choosing the logic judgment figure of field;
Specific implementation mode
The embodiments of the present invention are described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning
Same or similar element or element with the same or similar functions are indicated to same or similar label eventually.Below by ginseng
The embodiment for examining attached drawing description is exemplary, and is only used for explaining the utility model, and should not be understood as to the utility model
Limitation.
In the description of the present invention, unless otherwise specified and limited, it should be noted that term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be mechanical connection or electrical connection, can also be the company inside two elements
It is logical, it can be directly connected, can also indirectly connected through an intermediary, for the ordinary skill in the art, it can
To understand the concrete meaning of above-mentioned term as the case may be.
The present invention provides a kind of transmission of CAD, GIS, SWMM data collaborative and organization and management methods, as shown in Figure 1, it is wrapped
Include following steps:
S1, the data type for identifying data transmission terminal and receiving terminal, the data type includes CAD, GIS, SWMM, will be passed
The data type information of defeated end and receiving terminal is transferred to transmission end data packaging unit.
S2, the transmission end data packaging unit will need to pass according to the system or model information of the transmission end and receiving terminal
Transmission of data is packaged into data packet, and described to need transmission data include system data and instance data;The system data includes system
Time version, instance data field sum, the system data is non-null value;The instance data includes code field, field
Title, each code field are corresponding with a field name;When the data packaging unit is packaged, described in extraction
Whole system datas and one or all instance data.It is specific select as shown in figure 3, work as the transmission end and transmission end for
In CAD or GIS any one when, field name described in the instance data include inspection shaft, drainage pipeline, surface water channel,
Water pump, aperture, weir, other types water outlet, water catchment area, underlying surface, low influence development facility;When transmission end or receiving terminal are arbitrary
Have one end be SWMM when, field name described in the instance data include engineering title, analysis option, output report instruction,
Ginseng is oozed under interface document option, rainfall gauge information, water catchment area geological information, water catchment area permeable face/impermeable face data, water catchment area
Several, low influence exploitation control information, the low influence development facility information of water catchment area, connecting node information, connecting pipeline information, cross
Section information.
The data packet is transferred to transmission end transmission unit, the transmission end by S3, the transmission end data packaging unit
According to the workflow of SOCKET transport protocol defineds between data receipt unit in transmission unit and data receiver
The connection of link layer is completed, and establishes the dedicated channel of SOCKET transport protocols institute.
S4, receiving terminal data receipt unit receive data and are examined to the data by receiving terminal DCU data control unit
Look into, specific steps as shown in Fig. 2, if the data be invalid data if generation error information;If the data are valid data,
Then DCU data control unit first by data storage cell described in receiving terminal current version and old version be compared, take out institute
State that current version compares historical data corresponding to the coding to change and corresponding encoded with old version and current data is made
For transaction data, then the data that transmission end is transmitted are compared again, if changing in the valid data of transmission end
Number there is also and respectively corresponding data are different under number, then it is single to receive end data control in the transaction data
First then generation needs the information of secondary-confirmation, and the secondary-confirmation information is i.e. by receiving terminal data outputting unit by described special
Channel transfer to transmission end data receipt unit, when user transmission end DCU data control unit make confirmation or abandon grasping
After work, the control unit of transmission end by the confirmation or abandons information by the data transmission unit of transmission end through described dedicated
Channel is sent to the data receipt unit of the receiving terminal, and the data receipt unit of the receiving terminal transmits the confirmation message
It, will be described if the DCU data control unit reception of the receiving terminal is confirmation message to the DCU data control unit of the receiving terminal
All data under current time version are stored in the data storage cell as old version backup, by the transmission end
The data are inserted current version by all data in receiving unit by data storage cell by its corresponding number;If institute
That states the reception of receiving terminal DCU data control unit is to give up information, then deletes being selected through secondary-confirmation in the transmission end receiving unit
Select the data abandoned;If in the transaction data and the valid data, the number not repeated, or have number but the institute of repetition
It is identical to state corresponding data under the number of repetition, then using all data under the current time version as history version
This backup is stored in the data storage cell, and the valid data in the transmission end receiving unit is stored by data
The data are inserted current version by unit by its corresponding number, and generate new version number.
S5, receiving terminal DCU data control unit by the data of current version in the data storage cell press its said system
Re-start space drafting.
In a preferred embodiment of the present invention, if transmission end data format is CAD, receiving terminal data format is
SWMM, then transmission end is when initiating transmission operation, by the control unit of transmission end according to the system information of the transmitting-receiving two-end of typing
Notification data encapsulation unit, flow chart according to fig. 2, data packaging unit extraction need the data transmitted, system data packet
System time version, instance data field sum are included, system time version is 20170405102800 in the present embodiment, embodiment
Field sum is 5;This instance data include oozed under water catchment area parameter (being encoded to 209), low influence exploitation control information (be encoded to
210), the low influence development facility information (being encoded to 211) of water catchment area, connecting node information (being encoded to 212), connecting pipeline letter
It ceases (being encoded to 213).Data packaging unit will be transferred to transmission end after the completion of the system information and example information encapsulation
Transmission unit, and by between the transmission unit and receiving terminal data receipt unit according to the work of SOCKET transport protocol defineds
Make the connection that flow completes link layer.After receiving terminal data receipt unit obtains data packet, receiving terminal DCU data control unit pair
The data are checked, judge whether it is invalid data, the invalid data situation includes having information to lose in system data
It loses or format error, there are the fields of actual transmissions in mistake or instance data and field sum for format in the instance data
In numerical value describe it is inconsistent, as in instance data in the present embodiment only have 5 fields below if also be invalid data, if
It is all correct and system data is also correct for 5 and data format in instance data, then it is judged as valid data.Then data control
Unit first by data storage cell described in receiving terminal current version and old version be compared, current version in the present embodiment
This system time version is 20170403120005, and the system time version of old version is 20170305091500, is taken out
The current version compares the historical data and current data corresponding to the coding to change and corresponding encoded with old version
As transaction data, in the present embodiment, it is found that the field of transaction data is that water catchment area permeable face/impermeable face data (is encoded to
208) parameter (being encoded to 209), is oozed under water catchment area, the low low influence for influencing exploitation control information (being encoded to 210), water catchment area is opened
Facilities information (being encoded to 211) is sent out, then the data that transmission end is transmitted are compared again, finds valid data and transaction data
Middle coding respectively 209,210,211 codings all exist, wherein 209 times corresponding data contents of coding are consistent, coding 210,
Data corresponding to 211 are inconsistent, then receiving terminal DCU data control unit then generates the information for needing secondary-confirmation, pass through receiving terminal number
Data receipt unit according to output unit by the dedicated channel transfer to transmission end, user is in transmission end data control
Unit, which is made, abandons 210, confirms that 211 operations, the control unit of transmission end will abandon data legend list of the information by transmission end
Member is sent to the data receipt unit of the receiving terminal through the dedicated channel, and the data receipt unit of the receiving terminal is by institute
The DCU data control unit that confirmation message is transmitted to the receiving terminal is stated, corresponding 210 in the transmission end receiving unit are deleted
The lower corresponding data of coding, all data under current version are copied and stored in old version, the transmission end is received
The data are inserted current version by corresponding data by data storage cell by its corresponding number under 211 codings in unit
This, and new version number is generated, such as 20170406171700;It generates and successfully records simultaneously, and will by the dedicated channel
The successfully record returns to transmission end data receipt unit, and the data receipt unit stores the successfully record by data
Unit is stored in log space.Last receiving terminal is according to all parametric synthesis in newest current version 20170406171700
Space drafting is carried out, newest image is formed.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the utility model.In the present specification, to the schematic table of above-mentioned term
It states and may not refer to the same embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be
It can be combined in any suitable manner in any one or more embodiments or example.
While there has been shown and described that the embodiments of the present invention, it will be understood by those skilled in the art that:
Can these embodiments be carried out with a variety of variations in the case where not departing from the principles of the present invention and objective, modification, replaced
And modification, the scope of the utility model are limited by claim and its equivalent.