CN100504865C - Map assistance design method and system used in telecommunication line resource management - Google Patents

Map assistance design method and system used in telecommunication line resource management Download PDF

Info

Publication number
CN100504865C
CN100504865C CNB2006100024478A CN200610002447A CN100504865C CN 100504865 C CN100504865 C CN 100504865C CN B2006100024478 A CNB2006100024478 A CN B2006100024478A CN 200610002447 A CN200610002447 A CN 200610002447A CN 100504865 C CN100504865 C CN 100504865C
Authority
CN
China
Prior art keywords
map
file
facility
information
coordinate
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.)
Active
Application number
CNB2006100024478A
Other languages
Chinese (zh)
Other versions
CN101008947A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CNB2006100024478A priority Critical patent/CN100504865C/en
Publication of CN101008947A publication Critical patent/CN101008947A/en
Application granted granted Critical
Publication of CN100504865C publication Critical patent/CN100504865C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention relates to tube map aid design system, which comprises map touring, editing and aligning map functions. This invention map aid design method comprises the following steps: based on load map, storing graph information for point, line or plane and all patterns coordinates into one map file; storing each image property information into one database file; storing the relationship between map file and database file into one cross file; based on above three stored information for map browsing, editing and aligning.

Description

The map assistance design method and the system that are used for telecommunication line resource management
Technical field
The present invention relates to be used for the map assistance design method and the system of telecommunication line resource management.
Background technology
Telecommunication service of today operation generally comprises: network planning design, pipeline pole line resource, optical cable laying, line to calculate, line is to distribution, wireless application, customer service, market sale, value-added service or the like, must there be electronic chart to come the demonstration and the most management function of bearing resource object thus, therefore, the management maintenance to electronic chart becomes the condition precedent of telecommunication line resource management system construction and the important content of carrying throughout.
Because electronic chart differs at the level of application of each local network, and the composition structure of its coordinate and optical projection system, map layer etc. also there are differences, and therefore the maintenance update to map just becomes one of work of each local network.The widespread use of electronic chart has simultaneously made increasing user wish to obtain method simply and easily, and for example software comes map is operated.
The electronic chart that uses in the prior art generally comprises the reading of electronic chart, Presentation Function.Utilize instruments such as autoCAD, cartography manufacturer produces and the actual map that certain proportion relation is arranged, and these maps are converted to certain form, for example shapefile form etc.The Shapefile form is the form that uses more electronic chart now, and many instruments are all supported reading of this form, for example arcExplore, arcView or the like.These instruments can be realized reading the map file of specific format and play showing the correspondingly function of map file.But when relating to concrete service application, some shortcomings part (these deficiencies are mainly at the map edit personnel) is but arranged, for example: these technology can only play the function of displayed map, are merely able to single ground displayed map, can not edit point, line and face on the map; Can not mark modification for point, line or face facility; Can not be configured the various attributes of map, displaying ratio or the like and form the xml configuration file.For most of map edit personnel, desirable is to select the xml form for use, why select the xml form for use, at first be because the range of application of xml form is more wide in range, and the ready-made class that reads xml is arranged in the java language, by these class bags, can carry out reading and using of form easily.In addition, the xml form also can be general with many other forms, has favorable compatibility.
Summary of the invention
For overcoming the above-mentioned defective that exists in the prior art, what the purpose of this invention is to provide a kind of usefulness is to select the xml form for use, why select the xml form for use, at first be because the range of application of xml form is more wide in range, and the ready-made class that reads xml is arranged in the java language, by these class bags, can carry out reading and using of form easily.In addition, the xml form also can be general with many other forms, has favorable compatibility.
Summary of the invention
For overcoming the above-mentioned defective that exists in the prior art, the purpose of this invention is to provide a kind of map assistance design method and system that is used for telecommunication line resource management, overcome the defective that the visit of map in prior art device can not be edited and dispose map thus.
According to the present invention, a kind of map assistance design method that is used for telecommunication line resource management is provided, may further comprise the steps: based on the map that is written into, will comprise the various Drawing Objects of point, line, surface, and the coordinate information of described various Drawing Objects is kept in the map file; To be kept at corresponding to the attribute information of every kind of Drawing Object in the data library file; One-to-one relationship between described map file and the described database file is kept in the associated with; And, carry out map visit, map edit or configuration map based on the information of preserving in above-mentioned three files, wherein, loaded map adopts the shapefile form, or loaded map is converted into the shapefile form;
Described map edit comprises:
Read map file, the data based different vector data structure that imports is stored with corresponding self-defining data structure, with contextual definition record entity object and its attribute and the corresponding relation of position one to one hereof;
The facility of the attribute in the database file and mark and correspondence is bundled;
After choosing a facility on the screen, judge it is what object according to the value of returning, judge the existing file of facility according to the layer at object place; And
Choose the facility on the screen, carry out drag operation, comprising: preserve facility all information in situ, generate a new object in new position and preserve these contents; Secondly, the pairing object of facility of deletion origin-location; Utilize the synchronous refresh function to finish moving of facility at last.
According to the present invention, a kind of map aided design system that is used for telecommunication line resource management is provided, comprise: the map file memory storage, be used to preserve a map file, wherein, based on the map that is written into, will comprise the various Drawing Objects of point, line, surface, and the coordinate information of described various Drawing Objects is kept in the described map file; The database file memory storage is used to preserve a data library file, wherein, will be kept in the described database file corresponding to the attribute information of every kind of Drawing Object; The associated with memory storage is used to preserve an associated with, wherein the one-to-one relationship between described map file and the described database file is kept in the associated with; And map visit device, map edit device and map configuration device, respectively based on the information of preserving in above-mentioned three files, carry out map visit, map edit or configuration map, wherein, loaded map adopts the shapefile form, or loaded map is converted into the shapefile form;
Described map edit device is used for:
Read map file, the data based different vector data structure that imports is stored with corresponding self-defining data structure, with contextual definition record entity object and its attribute and the corresponding relation of position one to one hereof;
The facility of the attribute in the database file and mark and correspondence is bundled;
After choosing a facility on the screen, judge it is what object according to the value of returning, judge the existing file of facility according to the layer at object place; And
Choose the facility on the screen, carry out drag operation, comprising: preserve facility all information in situ, generate a new object in new position and preserve these contents; Secondly, the pairing object of facility of deletion origin-location; Utilize the synchronous refresh function to finish moving of facility at last.
According to map assistance design method that is used for telecommunication line resource management and the system that the principle of the invention realized, can edit map, the electronic chart bought according to department of each pipeline map edit personnel thus can realize the location that will carry out pipe installation is carried out the mark of map.
According to map assistance design method and the system that is used for telecommunication line resource management of the present invention, not only can displayed map, can also edit point, line and face on the map; Point, line or face facility are marked modification; Can also be configured the various attributes of map, displaying ratio or the like and form the xml configuration file.
Implemented method may further comprise the steps: based on the map that is written into, will comprise the various graphical informations of point, line, surface, and the information such as coordinate of described various figures are kept in the map file; To be kept at corresponding to the attribute information of every kind of figure in the data library file; One-to-one relationship between described map file and the described database file is kept in the associated with; And, carry out map visit, map edit or configuration map based on the information of preserving in above-mentioned three files.
According to a kind of map aided design system that is used for telecommunication line resource management provided by the invention, comprise: the map file memory storage, be used to preserve a map file, wherein, based on the map that is written into, the various graphical informations that will comprise point, line, surface, and the information such as coordinate of described various figures are kept in the described map file; The database file memory storage is used to preserve a data library file, wherein, will be kept in the described database file corresponding to the attribute information of every kind of figure; The associated with memory storage is used to preserve an associated with, wherein the one-to-one relationship between described map file and the described database file is kept in the associated with; And map visit device, map edit device and map configuration device, respectively based on the information of preserving in above-mentioned three files, carry out map visit, map edit or configuration map.
The map visit is based on the map datum that is written into, and reads map datum in proper order with the mode that flows, and is kept in the data structure of total array with the vector data structure of point, line or face.Compare by the coordinate that will draw a circle to approve map on scope coordinate and the screen,, the delineation scope is shown on the coordinate of the corresponding entity object after moving, utilize the generation of Drawing Object finally to be presented at user side according to zoom factor and displacement.
Map edit is that the data based different vector data structure that imports is stored with corresponding self-defining data structure, with contextual definition record entity object and its attribute and the corresponding relation of position one to one hereof.When after choosing certain entity on the map, according to obtaining entity object name, the i.e. object of the pairing jLoox of this entity, judge the name and the type of entity, obtain the expression of corresponding unique value, revise the record value of the relevant position of respective file, thereby change the display characteristic of entity in map.Map edit comprises and is modified in the point that shows on the map, line or in the face of resembling the attribute of pairing dbf file, and transfer point, line, in the face of resembling.The function of revising attribute is the rreturn value according to choosing entity, corresponds to selected entity correspondence hereof with interrelational form, for example the correspondence position of database dbf file.According to the write method at random of the direct location written document in the java language, revise the value on the correspondence position then.The thought that moves comprises top layer and endoplasm, promptly carries out the modification of image and file two aspects.The essence on top layer is facility and preserve its all information on original position of deletion, produces a new entity in new position.And endoplasm is the modification to corresponding dbf file position.Thereby reach the editting function of map.
Map configuration provides the configuration to all map visual appearances.For the solid pattern that is presented on the screen, give the definition of information such as color, line weight, be used for distinguishing different figure layers.For the entity of choosing a little, can revise its outward appearance and show situation, comprise color, ratio or the like.Give a displaying ratio to the original state of each figure layer,, just show, otherwise hide when the figure stratum proportion of resetting during greater than original proportional numers.Can cover the line chart layer according to face figure layer, and the line chart layer can cover the character of point diagram layer,, reach the effect that shows each figure layer with the point diagram layer is placed on uppermost thought.Map for all character all set with the character of written document, all writes all character the document of a .xml.Wherein in this .xml document, define the character of all maps, comprising: displaying ratio, figure layer color, state, data or the like, with .xml configuration file of final formation, the effect of the character of map is read in realization from configuration file.
Next, to being used for the employed shp file of map assistance design method and system of telecommunication line resource management and the form of dbf file is introduced according to of the present invention:
In the map configuration instrument, if data owner exists with the form of file.Data derive from the client usually, and pairing three files are respectively map file shp, database file dbf, and the file shx that is associated of their correspondences.These three files are the standard shapefile file layouts of being closed definition by the exploitation of ESRI company.The benefit of using the map file maximum of shapefile form is that its only needs a spot of hard drive space and conveniently reads and write.If the map that certain map manufacturer did originally is not the shapefile form, in the prior art, also can be converted into the shapefile form to original digital and electronic map with several different methods.
Comprise three files among the shapefile that ESRI company formulates: one is map file shp file, and it is a master file; An associated with shx; Also has a dBase file dbf.What preserve in the map file shp file is various figures, and the coordinate of various figures or the like graphical information.What dbf file was preserved is the attribute information of corresponding each figure.And associated with shx preservation is the one-to-one relationship of shp file and dbf file.
Three file A.shp, A.shx and A.dbf in Fig. 2, have been schematically shown, and the line between three files represents that three records in the file are to concern one to one, represent that also all records all are in order one to one, keep consistency, and will guarantee that the prefix of three files is identical.The data that define among the Shapefile have two classes, and a class is the Integer type, and a class is the Double type.The data of Integer type are 32 numbers, and with 4 byte representations of 16 systems, the data of Double type are 64 IEEE double-precision floating pointses, with 8 byte representations of 16 systems.
The form of master file shD:
(1). the overall format chart of master file shp as shown in Table 1:
Whole shp file is made up of file header (File Header) and file body two parts, and file body is made up of record-header (Record Header) and record body (Record Contents) two parts again.Generally there are very many record-headers and record body surface to show many records.
Table one: the overall form of shp file
Figure C200610002447D00101
(2). the detailed annotation of the form of master file shp, referring to table two to table four.
The form of file header:
Table two: file header form
Figure C200610002447D00111
Most important in this form in the above is exactly two of shade mark, article one, be code with the file of four byte representations, be used for making marks, its scale-of-two shows with 16 system numerical tables hereof, four byte 00 00 27 0A that are positioned at beginning are through being calculated as follows: 27*256+10=9994, explanation is the shp file, and variable is the Big type.What second was represented is the type of figure, also is four bytes, will notice that here the data of Little type are turned around when reading fully, and this will have introduction in algorithm.Optional type of the ShapeType here such as following table three:
Table three: ShapeType type correspondence
Value Shape?Type
0 Null
1 Shape?Point
3 PolyLine
5 Polygon
8 MultiPoint
11 PointZ
13 PolyLineZ
15 PolygonZ
18 MultiPointZ
21 PointM
23 PolyLineM
25 PolygonM
28 MultiPointM
31 MultiPatch
In the map configuration device, the main type of using is 1,3,5,8.
The form of file body:
Here the main file body of introducing above 1,3,5,8 four types.Their record-header form is consistent, shown in following table four:
Table four: the record-header form of file body
Figure C200610002447D00131
The form difference of record body
First kind of Point, its record physique formula is shown in following table five:
Table five: Point record physique formula
Figure C200610002447D00132
Second kind of Polyline, its record physique formula is shown in following table six:
Table six: Polyline record physique formula
Figure C200610002447D00133
The third Polygon, its record physique formula is shown in following table seven:
Table seven: Polygon record physique formula
Figure C200610002447D00141
The 4th kind of MultiPoint, its record physique formula is shown in following table eight:
Table eight: MultiPoint record physique formula
Figure C200610002447D00142
The binary file format of database file dbf
(1). overview
Dbf is the document form of database FoxPro, and it can be opened by databases such as Oracle and ForPro, also can be opened with binary form by softwares such as Ultredit.In the map configuration device, because map file contains much information, reading database must bring pressure to server continually, therefore adopts file is placed on the client terminal local read-write.Adopt Java that dbf file is done direct read-write operation, must understand the binary format of dbf.
(2). the form detailed annotation
1. the form of dbf:
BYTES?DESCRIPTION
00?FoxBase+,FoxPro,dBaseIII+,dBaseIV,no?memo-0x03
FoxBase+,dBaseIII+with?memo-0x83
FoxPro?with?memo-0xF5
dBaseIV?with?memo-0x8B
dBaseIV?with?SQL?Table-0x8E
01-03?Last?update,format?YYYYMMDD?**correction:it?is?YYMMDD**
04-07?Number?of?records?in?file(32-bit?number)
08-09?Number?of?bytes?in?header(16-bit?number)
10-11?Number?of?bytes?in?record(16-bitnumber)
12-13?Reserved,fill?with?0x00
14?dBaseIV?flag,incomplete?transaction
Begin?Transaction?sets?it?to?0x01
End?Transaction?or?RollBack?reset?it?to0x00
15?Encryption?flag,encrypted?0x01?else?0x00
Changing?the?flag?does?not?encrypt?or?decrypt?the?records
16-27?dBaseIV?multi-user?environment?use
28?Production?index?exists-0x01?else?0x00
29?dBaseIV?language?driver?ID
30-31?Reserved?fill?with?0x00
32-n?Field?Descriptor?array
n+1?Header?Record?Terminator-0x0D
2. a form is explained
Mainly comprise three parts in the form:
First is totally 31 bytes, wherein mainly comprises the main information in the dbf file, and most important is three information with top shadow.Article one, are hereof total record numbers with 4 byte representations; Second is represented the size of header file, represents with headerSize in program; Article three, be illustrated in the length of every record in the dbf file, it comprises that all attribute length sums add 1 byte that expression finishes.The numFields of definition shaping represents whole attribute numbers in program, and its computing formula is numField=(headerSize-33)/32.
Second portion has n*32 byte-sized since No. 32 byte, expression be dbfField descripto, each dbfField descriptor comprises 32 bytes, its form is as follows
BYTES?DESCRIPTION
0-10?Field?Name?ASCII?padded?with?0x00
11?Field?Type?Identifier(see?table)
12-15?Displacement?of?field?in?record
16?Field?length?in?bytes
17?Field?decimal?places
18-19?Reserved
20?dBaseIV?work?area?ID
21-30?Reserved
31Field?is?part?of?production?index-0x01?else?0x00
Wherein most important is exactly three fields that shade marks, and it represents name, type and the length of each attribute respectively.All will represent afterwards with fieldName, fieldType, fieldLength.
What third part was represented is the data type of describing, and all revises with ASCII here.
ASCII DESCRIPTION
C Character
D Date,format?YYYYMMDD
F Floating?Point
G General-FoxPro?addition
L Logical,T:t,F:f,Y:y,N:n,?-not?initialized
M Memo(stored?as?10?digits?representing?the?dbt?block?number)
N Num?eric
P Picture-FoxPro?addition
3. record---be exactly according to above-mentioned structure allocation space, wherein represent in database, not show the record deleted with * number record.
The Xml form is introduced
<?xml?version="1.0"encoding="GB2312"?>
<MapDescript>
<MapName〉map</MapName〉<!--name map--〉
<Path〉map</Path<!--placing the path of map file--〉
<Is_Long_Lati〉true</Is_Long_Lati〉<!--whether map adopts latitude and longitude coordinates--〉
<MinLongitude〉0</MinLongitude〉<!--the minimum longitude when showing full figure--〉
<MinLatitude〉0</MinLatitude〉<!--the minimum latitude when showing full figure--〉
<MaxLongitude〉0</MaxLongitude〉<!--the maximum longitude when showing full figure--〉
<MaxLatitude〉0</MaxLatitude〉<!--the maximum latitude when showing full figure--〉
<MigratePointX〉1000000.0000001</MigratePointX〉<!--convected coordinate X value--〉
<MigratePointY〉1000000.0000001</MigratePointY〉<!--convected coordinate Y value--〉
<MapMaxDisplayScale〉5000</MapMaxDisplayScale〉<!--the maximum displaying ratio of map
-->
<LoadDataScale〉0</LoadDataScale〉<!--load the ratio of pipeline data as required, little
Do not use loading as required in equaling 1 expression--〉
<MapLayers〉<!--the figure layer is described section--〉
</MapLayers>
<!--below be the layering of pipeline facility, unsuppressible-suppression and increase the figure layer, and order is not interchangeable--〉
<DataLayers>
<LAYER>
<Name〉duct section</Name 〉
<VisibleIn?View>true</VisibleIn?View>
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>5000</MaxDisplayScale>
<Color>blue</Color>
<LabelDisplay>false</LabelDisplay>
<LabelColor>black</LabelColor>
<SelectColor>red</SelectColor>
<HighlightColor>green</HighlightColor>
</LAYER>
<LAYER>
<Name〉pole line</Name 〉
<VisibleInView>true</VisibleInView>
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>5000</MaxDisplayScale>
<Color>magenta</Color>
<LabelDisplay>false</LabelDisplay>
<LabelColor>black</LabelColor>
<SelectColor>black</SelectColor>
<HighlightColor>red</HighlightColor>
</LAYER>
<LAYER>
<Name〉connecting line</Name 〉
<VisibleInView>true</VisibleInView>
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>5000</MaxDisplayScale>
<Color>255,196,255</Color>
<LabelDisplay>false</LabelDisplay>
<LabelColor>black</LabelColor>
<SelectColor>black</SelectColor>
<HighlightColor>red</HighlightColor>
</LAYER>
<LAYER>
<Name〉optical cable</Name 〉
<VisibleInView>true</VisibleInView>
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>5000</MaxDisplayScale>
<Color>gray</Color>
<LabelDisplay>false</LabelDisplay>
<LabelColor>black</LabelColor>
<SelectColor>green</SelectColor>
<HighlightColor>green</HighlightColor>
</LAYER>
<LAYER>
<Name〉cable</Name 〉
<VisibleInView>true</VisibleInView>
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>5000</MaxDisplayScale>
<Color>darkGray</Color>
<LabelDisplay>false</LabelDisplay>
<LabelColor>black</LabelColor>
<SelectColor>green</SelectColor>
<HighlightColor>green</HighlightColor>
</LAYER>
<LAYER>
<Name〉the office station</Name 〉
<VisibleInView>true</VisibleInView>
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>5000</MaxDisplayScale>
<Color>yellow</Color>
<LabelDisplay>false</LabelDisplay>
<LabelColor>black</LabelColor>
<SelectColor>black</SelectColor>
<HighlightColor>red</HighlightColor>
</LAYER>
<LAYER>
<Name〉people's well/basement</Name 〉
<VisibleInView>true</VisibleInView>
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>5000</MaxDisplayScale>
<Color>255,196,255</Color>
<LabelDisplay>false</LabelDisplay>
<LabelColor>black</LabelColor>
<SelectColor>black</SelectColor>
<HighlightColor>red</HighlightColor>
</LAYER>
<LAYER>
<Name〉electric pole/support point</Name 〉
<VisibleInView>true</VisibleInView>
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>5000</MaxDisplayScale>
<Color>255,196,255</Color>
<LabelDisplay>false</LabeIDisplay>
<LabelColor>black</LabelColor>
<SelectColor>black</SelectColor>
<HighlightColor>red</HigblightColor>
</LAYER>
<LAYER>
<Name〉fiber optic cable facility</Name 〉
<VisibleInView>true</VisibleInView>
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>5000</MaxDisplayScale>
<Color>red</Color>
<LabelDisplay>false</LabelDisplay>
<LabelColor>black</LabelColor>
<SelectColor>black</SelectColor>
<HighlightColor>red</HighlightColor>
</LAYER>
<LAYER>
<Name〉cable installation</Name 〉
<VisibleInView>true</VisibleInView>
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>5000</MaxDisplayScale>
<Color>cyan</Color>
<LabelDisplay>false</LabelDisplay>
<LabelColor>black</LabelColor>
<SelectColor>black</SelectColor>
<HighlightColor>red</HighlightColor>
</LAYER>
<LAYER>
<Name〉other facility</Name 〉
<VisibleInView>true</VisibleInView>
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>5000</MaxDisplayScale>
<Color>white</Color>
<LabelDisplay>false</LabelDisplay>
<LabelColor>black</LabelColor>
<SelectColor>black</SelectColor>
<HighlightColor>red</HighlightColor>
</LAYER>
<LAYER>
<Name〉construction area</Name 〉
<MinDisplayScale>0</MinDisplayScale>
<MaxDisplayScale>0</MaxDisplayScale>
<Color>green</Color>
<LabelDisplay〉false</LabelDisplay〉<!--be left in the future and use, do not have at present
Imitate.Whether demonstration marks--〉
<LabelColor>black</LabelColor>
<SelectColor>black</SelectColor>
<HighlightColor>red</HighlightColor>
</LAYER>
</DataLayers>
</MapDescript>
Concrete example
One, the realization of map aided design system map visit
After importing map datum, on screen, drag out a rectangular shaped rim with mouse.The factor that a coordinate amplifies or dwindles is set.All facility objects in the selected zone are carried out new calculating according to this coordinate factor pair coordinate, amplify or dwindle coordinate figure, display graphics entity object.
Two, the realization of map aided design system edit methods
Mainly comprise four steps
1.shapefile reading of map file
According to the expression of vector data structure, import the map that shows and be divided into three kinds of data structures, be respectively point, line and face.These three kinds of facilities can be represented three class facilities in the corresponding line resource equally: some facility, line facility and face facility.Just belong to the line facility such as river, highway or the like, and houses etc. belong to a facility.Actual to lay facility accurate in order to cooperate in the line resource management system, the user is also different to the requirement of map, wish to have map the design of oneself, for example can write mark to the facility on the map, modification marks or is made amendment in position of some some facility.The realization of map edit method comprises two parts:
First one is reading of data from the map data structure of shapfile structure, and usefulness is the jLoox bag here.The method that reads is that order reads map datum from binary file, at first select to import the file of map, then each file is read according to a figure layer, read successively with the mode of data stream, press the binary structure of the file in the accompanying drawing, read successively.Earlier judge whether the version number of file is the shapefile file, check the form that whether satisfies the shapefile file then.Read corresponding byte again, what judgement was read is point or line or face data type.According to judging that the different value of being returned reads different data structures.Then the data structure that reads is carried out instantiation with the point, line, surface object among the jLoox, be presented on the screen again.
2. the synchronous demonstration of mark and corresponding facility
The data structure of a mark manager of design.Wait mark the attribute of dbf data and corresponding facility to bundle.Status informations such as the shown font of definition manager, type, color, with a mark factory, a data structure in the java language for example, deposit various markup informations: Binding information refreshes demonstration when guaranteeing facility and attribute synchronously with pressure.
3.shapefile the location of file and dbf and writing
In editting function, at first be exactly to want accurate positioning.Thought is: after choosing a facility on the screen, at first judge it is what object according to the value of returning.Layer according to the object place is judged the existing file of facility.When reading this layer, at first with a kind of data structure records corresponding facility relevant with it in binary file the relation of information.Which facility such as a facility is hereof, the byte number that each facility is shared, byte number that different facility different pieces of information structures are shared or the like.Preserve in the superincumbent data structure after reading these information, in the location, determine the position according to these information.Open file then, use the mode of stream, according to random read-write information is write back in the file and go.The locating content of dbf file is more, needs length of preserving each facility attribute field or the like.
4 facilities move
Choose the facility on the screen, carry out drag operation, realize the plane operations that facility moves.Facility moves the thought that comprises two aspects: at first will preserve facility all information in situ, generate a new object in new position and preserve these contents; Secondly, the facility object of deletion origin-location.Utilize the synchronous refresh function to finish moving of facility at last.
Three, the realization of map Aided Design collocation method
For most of map visit devices, map datum all is unified being presented on the interface.But according to map configuration device of the present invention, the thought of having used figure stratum proportion to show makes map more clear.The house is negligible corresponding to high mountain on map.Therefore principle of the present invention is exactly certain ratio to each corresponding figure layer to be set.After reaching certain allocation ratio, corresponding facility object just can show or not be presented on the interface.
According to the present invention, map configuration is xml, and this is that other instrument is not available.Configuration to map, for map color, displaying ratio and various attribute operate all finish after, resolve with xml, and leave in the xml document, so that when re-use map next time, only need call this xml document, the just map styles that can obtain wanting, the better design that must assist the pipeline map.
Above use-case indicates that this this map aided design system can be the telecommunications service management personnel the unified platform that the pipeline map is operated is provided, and finishes the configuration of needed map environment before the business development.By the map configuration device, can realize once importing the map of a large amount of standards, map is edited and disposed form according to business need and satisfy the needed electronic chart of line resource management system.

Claims (6)

1, a kind of map assistance design method that is used for telecommunication line resource management may further comprise the steps:
Based on the map that is written into, will comprise the various Drawing Objects of point, line, surface, and the coordinate information of described various Drawing Objects is kept in the map file;
To be kept at corresponding to the attribute information of every kind of Drawing Object in the data library file;
One-to-one relationship between described map file and the described database file is kept in the associated with; And
Based on the information of preserving in above-mentioned three files, carry out map visit, map edit or configuration map;
Wherein, loaded map adopts the shapefile form, or loaded map is converted into the shapefile form;
Described map edit comprises:
Read map file, the data based different vector data structure that imports is stored with corresponding self-defining data structure, with contextual definition record entity object and its attribute and the corresponding relation of position one to one hereof;
The facility of the attribute in the database file and mark and correspondence is bundled;
After choosing a facility on the screen, judge it is what object according to the value of returning, judge the existing file of facility according to the layer at object place; And
Choose the facility on the screen, carry out drag operation, comprising: preserve facility all information in situ, generate a new object in new position and preserve these contents; Secondly, the pairing object of facility of deletion origin-location; Utilize the synchronous refresh function to finish moving of facility at last.
2, the map assistance design method that is used for telecommunication line resource management as claimed in claim 1 is characterized in that, described map visit comprises:
Based on the map datum that is written into, read map datum in proper order with the mode that flows, and be kept in the data structure of total array with the vector data structure of point, line or face;
The coordinate of map on delineation scope coordinate and the screen is compared,, the delineation scope is shown on the coordinate of the corresponding entity object after moving, utilize the generation of Drawing Object finally to be presented at user side according to zoom factor and displacement.
3, the map assistance design method that is used for telecommunication line resource management as claimed in claim 1 is characterized in that, described configuration map comprises:
For shown solid pattern, give the definition of color, line weight information, be used for distinguishing different figure layers;
For the entity of choosing a little, can revise its outward appearance and show situation, comprise color, ratio;
Certain displaying ratio is set for original state of each corresponding figure layer,, just shows, otherwise hide when the figure stratum proportion of resetting during greater than original proportional numers;
Map for all character all set with the character of written document, all writes all character the document of a .xml.
4, a kind of map aided design system that is used for telecommunication line resource management comprises:
The map file memory storage is used to preserve a map file, wherein, based on the map that is written into, will comprise the various Drawing Objects of point, line, surface, and the coordinate information of described various Drawing Objects is kept in the described map file;
The database file memory storage is used to preserve a data library file, wherein, will be kept in the described database file corresponding to the attribute information of every kind of Drawing Object;
The associated with memory storage is used to preserve an associated with, wherein the one-to-one relationship between described map file and the described database file is kept in the associated with; And
Map visit device, map edit device and map configuration device respectively based on the information of preserving in above-mentioned three files, carry out map visit, map edit or configuration map;
Wherein, loaded map adopts the shapefile form, or loaded map is converted into the shapefile form;
Described map edit device is used for:
Read map file, the data based different vector data structure that imports is stored with corresponding self-defining data structure, with contextual definition record entity object and its attribute and the corresponding relation of position one to one hereof;
The facility of the attribute in the database file and mark and correspondence is bundled;
After choosing a facility on the screen, judge it is what object according to the value of returning, judge the existing file of facility according to the layer at object place; And
Choose the facility on the screen, carry out drag operation, comprising: preserve facility all information in situ, generate a new object in new position and preserve these contents; Secondly, the pairing object of facility of deletion origin-location; Utilize the synchronous refresh function to finish moving of facility at last.
5, the map aided design system that is used for telecommunication line resource management as claimed in claim 4 is characterized in that, described map visit device is used for:
Based on the map datum that is written into, read map datum in proper order with the mode that flows, and be kept in the data structure of total array with the vector data structure of point, line or face;
Compare by the coordinate that will draw a circle to approve map on scope coordinate and the screen,, the delineation scope is shown on the coordinate of the corresponding entity object after moving, utilize the generation of Drawing Object finally to be presented at user side according to zoom factor and displacement.
6, the map aided design system that is used for telecommunication line resource management as claimed in claim 4 is characterized in that, described map configuration device is used for:
For shown solid pattern, give the definition of color, line weight information, be used for distinguishing different figure layers;
For the entity of choosing a little, can revise its outward appearance and show situation, comprise color, ratio;
Certain displaying ratio is set for original state of each corresponding figure layer,, just shows, otherwise hide when the figure stratum proportion of resetting during greater than original proportional numers;
Map for all character all set with the character of written document, all writes all character the document of a .xml.
CNB2006100024478A 2006-01-26 2006-01-26 Map assistance design method and system used in telecommunication line resource management Active CN100504865C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100024478A CN100504865C (en) 2006-01-26 2006-01-26 Map assistance design method and system used in telecommunication line resource management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100024478A CN100504865C (en) 2006-01-26 2006-01-26 Map assistance design method and system used in telecommunication line resource management

Publications (2)

Publication Number Publication Date
CN101008947A CN101008947A (en) 2007-08-01
CN100504865C true CN100504865C (en) 2009-06-24

Family

ID=38697380

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100024478A Active CN100504865C (en) 2006-01-26 2006-01-26 Map assistance design method and system used in telecommunication line resource management

Country Status (1)

Country Link
CN (1) CN100504865C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340733B (en) * 2008-08-12 2011-01-26 中国移动通信集团江苏有限公司 Method for automatically generating optical service in communication line resource management system
CN101930470B (en) * 2010-09-07 2012-04-18 上海盈隽实业有限公司 Urban power network geographic information system and urban pipeline geographic information system
CN102169509B (en) * 2011-05-30 2012-07-25 中铁第一勘察设计院集团有限公司 Method for storing metro comprehensive pipeline data based on relational database and XML file
CN110309239B (en) * 2018-03-13 2022-04-12 北京京东尚科信息技术有限公司 Visual map editing method and device
CN109754700A (en) * 2018-12-07 2019-05-14 深圳坤辰物联网有限公司 A kind of production of indoor map and database application system and its method
CN112733286A (en) * 2020-12-29 2021-04-30 中国市政工程中南设计研究总院有限公司 File generation method of underground pipeline diagram with detection information

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6542813B1 (en) * 1999-03-23 2003-04-01 Sony International (Europe) Gmbh System and method for automatic managing geolocation information and associated references for geographic information systems
CN1435779A (en) * 2002-01-30 2003-08-13 上海众恒信息产业有限公司 Geographic information system on-line analysis data model and attribute data hybrid relating method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6542813B1 (en) * 1999-03-23 2003-04-01 Sony International (Europe) Gmbh System and method for automatic managing geolocation information and associated references for geographic information systems
CN1435779A (en) * 2002-01-30 2003-08-13 上海众恒信息产业有限公司 Geographic information system on-line analysis data model and attribute data hybrid relating method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
基于ARC/INFO的城市管网信息系统的设计与建立. 潘伟,阎贫.工程勘察,第2005年第1期. 2005
基于ARC/INFO的城市管网信息系统的设计与建立. 潘伟,阎贫.工程勘察,第2005年第1期. 2005 *
基于GIS的城市有线电视网络综合业务管理系统简介. 廖作全.有线电视技术,第2005年第6期. 2005
基于GIS的城市有线电视网络综合业务管理系统简介. 廖作全.有线电视技术,第2005年第6期. 2005 *

Also Published As

Publication number Publication date
CN101008947A (en) 2007-08-01

Similar Documents

Publication Publication Date Title
CN100504865C (en) Map assistance design method and system used in telecommunication line resource management
CN104008162B (en) A kind of one-touch thematic maps automatic mapping method and system based on template
CN106779417A (en) The collection of engineering investigation information digitalization, management and integrated application method
CN110489499B (en) On-line intelligent thematic map compiling method
MacDonald Building a geodatabase
CN112069582A (en) Engineering scene establishing method
CN101438231A (en) System and method for providing a virtual database environment and generating digital map information
CN110750590B (en) Automatic generation method of pipeline three-dimensional visualization platform
US20100013831A1 (en) Method for geographically displaying oil and gas related information
CN101933015B (en) system and method for editing cartographic data
CN108711356A (en) Geography target and symbol figure method for registering in vectorial geographical PDF cartographies
Gordillo et al. Developing GIS applications with objects: a design patterns approach
CN1414518A (en) Standardization method of virtual reality data
Martin et al. The visualization of socio‐economic GIS data using virtual reality tools
Zhu et al. CyberCity GIS (CCGIS): integration of DEMs, images, and 3D models
Halim et al. Developing a 3D city model database beyond cadastral purposes
Park et al. A spatial-temporal POI data model for implementing location-based services
Du et al. An approach for 3D visualization of pipelines
Oosterom et al. Generic query tool for spatio-temporal data
CN113392339A (en) Inland waterway element management system based on network element service
JP4224263B2 (en) A program that allows a computer to manage map information
Souleyrette et al. Developing small area network planning models using desktop GIS
Jun et al. A 3-dimensional data model for visualizing cloverleaf junction in a city model
Chen et al. Research on embedded GIS based on wireless networks
Grant ISSUE Interactive Software System for the Urban Environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1106306

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1106306

Country of ref document: HK