CN106096121B - Intelligent building project method for drawing map based on universal map control - Google Patents

Intelligent building project method for drawing map based on universal map control Download PDF

Info

Publication number
CN106096121B
CN106096121B CN201610398497.6A CN201610398497A CN106096121B CN 106096121 B CN106096121 B CN 106096121B CN 201610398497 A CN201610398497 A CN 201610398497A CN 106096121 B CN106096121 B CN 106096121B
Authority
CN
China
Prior art keywords
layer
record
map
point
rectangle
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
CN201610398497.6A
Other languages
Chinese (zh)
Other versions
CN106096121A (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.)
Wuhan Hong Xin Technological Service Co Ltd
Original Assignee
Wuhan Hong Xin Technological Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Hong Xin Technological Service Co Ltd filed Critical Wuhan Hong Xin Technological Service Co Ltd
Priority to CN201610398497.6A priority Critical patent/CN106096121B/en
Publication of CN106096121A publication Critical patent/CN106096121A/en
Application granted granted Critical
Publication of CN106096121B publication Critical patent/CN106096121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A kind of intelligent building project method for drawing map based on universal map control, including initialization coordinate system, configure the corresponding relationship of real-world coordinate and map reference;It creates layer and manages figure layer record, each figure layer contains a different aspect of entire map, indicated with record;Graphing, including fundamental figure, extension dot pattern, extension line graph and extension rectangular graph, carry out the management of graphic style table and data and bind, including being associated with by data binding realization figure layer and record;Several spirtes are subjected to configuration processes, including determining display scale and each spirte central point opposite offset from whole figure central point of each spirte in whole figure first, according to each spirte drawn obtained by step 3, according to the line node coordinate of spirte, right angle orientation is set, the pipeline in building project is drawn.The present invention promotes maps processing performance, and easy to maintain and extension, and operation is efficient, convenient for the abundant presentation of intelligent building project electronic map.

Description

Intelligent building project method for drawing map based on universal map control
Technical field
The present invention relates to drawing electronic map fields, and more specifically, the present invention relates to a kind of based on universal map control Intelligent building project method for drawing map.
Background technique
Intelligent building project is related to multiple subsystems, and such as parking lot management subsystem, electronic patrol subsystem become and match electronics System, elevator subsystem are proposed corresponding requirement to electronic map according to the different characteristics of subsystems.
The realization of electronic map at present is mostly that secondary development is carried out using MapX mapable component, only need to be by MapX control It is put into interface widgets, and it is programmed, set a property or call method.But intelligent building project demand map Control has Suresh Kumar, configurable, easy extension, high performance feature, and MapX map components are unable to configuration, are not easy to extend and refresh Performance is poor, can not neatly meet above-mentioned requirements, lacks high performance intelligent building project method for drawing map.
Summary of the invention
The present invention provides a kind of intelligent building project method for drawing map based on universal map control, is mainly used for putting down Face map is shown and configuration map is shown, the speed of service is fast, flexible operation, animation are smooth, is easy to extend.
Technical solution of the present invention provides a kind of intelligent building project method for drawing map based on universal map control, including Following steps,
Step 1, initialization coordinate system, the corresponding relationship of configuration real-world coordinate and map reference, realization real-world coordinate, Conversion between figure coordinate, screen coordinate;
Step 2 creates layer and manages figure layer record, and each figure layer contains a different aspect of entire map, uses Record indicates;
Step 3, graphing, including fundamental figure, extension dot pattern, extension line graph and extension rectangular graph, substantially Figure includes point, line and rectangle, and extension dot pattern includes GIF point, picture point and text point, and extension line graph includes symbol line, Extending rectangular graph includes GIF rectangle, picture, text rectangle and tab rectangle;
Step 4, the management of graphic style table and data are bound, including being associated with by data binding realization figure layer and record;
Several spirtes are carried out configuration processes, including determining each spirte in whole figure first by step 5 The opposite offset of display scale and each spirte central point from whole figure central point, it is each according to being drawn obtained by step 3 Spirte sets right angle orientation according to the line node coordinate of spirte, draws the pipeline in building project.
The mode for taking multilayer to raise speed when moreover, drawing figure layer in step 2, realization is as follows,
If A indicates that current screen draws range, B indicates actual inside drawing area, takes textures when A is without departing from B Mode is drawn, and when A exceeds B, is expanded B area according to current screen, is stored in memory for screen drawing textures;Each figure layer There is independent internal caching of drawing to regenerate new figure layer if caching needs to update and draw caching, otherwise direct textures It draws;If only some figure layer of map records change, figure layer needs are repainted, and other direct textures of figure layer are drawn System.
Moreover, point record set is carried out the quartering, including coordinate value is pressed X when handling in step 4 record set Axis is split into two halves, and the coordinate points quantity on the left side and the right is close, then the Y-axis of pressing of the right and left is split into two halves respectively;Line note The mode tissue registration of dictionary table is directly taken in record, rectangle record, and wherein the key assignments of dictionary is record unique identification, the value of dictionary It is line record object or rectangle record object.
The requirement that the present invention is directed to the characteristic of map and easily extends defines a set of basic object, and the map including simplified version is sat System, figure layer, record, figure, configuration figure are marked, and devises a series of general graphicals on this basis, can flexibly be carried out flat Face Map Design or simple Configuration Design take multilayer to draw speed-raising, the mode of point set quartering processing promotes maps processing Can, and easy to maintain and extension, operation is efficient, convenient for the abundant presentation of intelligent building project electronic map.
Detailed description of the invention
Fig. 1 is the coordinate system initialization flowchart of the embodiment of the present invention.
Fig. 2 is that the multilayer of the embodiment of the present invention draws speed-raising flow chart.
Fig. 3 is the point set quartering design diagram of the embodiment of the present invention.
Specific embodiment
Present invention specific implementation is illustrated below according to drawings and examples.
The embodiment of the present invention provides the intelligent building project method for drawing map based on universal map control, when specific implementation , by the management to data, a kind of efficient, configurable simplified version universal map control can be designed based on control can be drawn.
The method includes: firstly, initializing coordinate systems, configure the corresponding relationship of real-world coordinate and map reference, then pass through setting Screen coordinate is converted into map reference by center's point of screen and magnification ratio, realizes the conversion of three kinds of coordinate systems.Secondly creation figure Layer simultaneously manages figure layer record, describes the types of objects of composition map, and the multilayer taken in design draws speed-raising, point record Collect the method for quartering design, promotes the speed that record searches element, keep interface more smooth.The side of unified addition map record is provided Method, so that exploitation is simple.In order to cooperate the application of intelligent building project, in addition to the drafting of fundamental figure, also support self-defining image The drafting of shape such as extends dot pattern: GIF point, picture point, text point, extends line graph: symbol line, extends rectangular graph: GIF Rectangle, picture, text rectangle, tab rectangle;A kind of simple configuration method is also provided, is shown with meeting to draw configuration Needs.
The specific implementation of embodiment the following steps are included:
Step 1, initialization coordinate system, the corresponding relationship of configuration real-world coordinate and map reference, realization real-world coordinate, Conversion between figure coordinate, screen coordinate.
Step 2 creates layer and manages figure layer record;
Step 3, graphing, including fundamental figure: point, line, rectangle extend dot pattern: GIF point, picture point, text Point extends line graph: symbol line, extends rectangular graph: GIF rectangle, picture, text rectangle, tab rectangle;
Step 4, the management of graphic style table and data are bound, and the graphic style table, that is, codomain style sheet is recorded in difference Corresponding Show Styles table when value;
Several spirtes can be carried out configuration processes by step 5.
Further, step 1 is realized referring to Fig. 1, is the coordinate system initialization flowchart of the embodiment of the present invention.It is first initial Change setting real-world coordinate system and unit, forms real-world coordinate point set corresponding with map reference, be as follows:
Wherein map intrinsic coordinates can be converted mutually with screen coordinate, and real-world coordinate can mutually turn with map intrinsic coordinates It changes, and then realizes the mutual conversion of screen coordinate and real-world coordinate.
The ratio of real-world coordinate and map reference X to, Y-direction is first calculated, real-world coordinate is corresponding with map reference, then lead to Crossing setting screen central point is reference point and magnification ratio, obtains the real-world coordinate and map reference of the reference point, screen is sat Mark is converted into map reference, finds the corresponding map reference of the center's point of screen and is displayed in proportion.
Further, step 2 is realized as follows,
One width electronic map is processed into multiple hyaline layers being layering, this hyaline layer is known as figure layer.Each figure Layer contains a different aspect of entire map, is indicated with record.It may include region building bottom in intelligent building project Figure figure layer, equipment figure layer, the dynamic layer for realizing flicker effect, the configuration figure layer for realizing configuration function.Record can Comprising equipment essential information, equipment running status, equipment under various operating statuses corresponding Show Styles.
Figure layer can be divided into a figure layer, line chart layer, rectangle figure layer, the variable and the operation that can be carried out for figure layer that figure layer includes It is as follows:
The corresponding record of figure layer can be divided into record, line record, rectangle record, record the variable for including and can for record The operation of progress is as follows:
Usage record collection records to manage, and record set can be divided into a record set, line record set, rectangle record set, record set Variable and the operation that can carry out be as follows:
Referring to fig. 2, the mode for taking multilayer to raise speed when drawing figure layer, promotes the speed of service.Wherein A indicates that current screen is drawn Range processed, B indicate actual inside drawing area, the mode of textures are taken to draw when A is without departing from B, when A exceeds B, according to working as Forth screen expands B area, is stored in memory for screen drawing textures.Each figure layer has independent internal caching of drawing, if It caches and needs to update (such as when map amplifies, reduces, the record in mobile or figure layer in drafting range changes), then It regenerates new figure layer and draws caching, otherwise direct textures are drawn.If only some figure layer of map records change, Figure layer needs repaint, and other direct textures of figure layer are drawn.
Further, step 3 is realized as follows,
The display position for first having to determine figure when graphing, for different figures, for determining display position Parameter is different:
Point-rendering parameter: central point, angle;
Rectangle rendering parameter: central point, width, angle;
Line rendering parameter: point list, line size;
Picture point-rendering parameter: on the basis of point-rendering parameter, addition draws height, draws width, text table;
Text point rendering parameter: on the basis of point-rendering parameter, text is added;
Dynamic picture point-rendering parameter: on the basis of point-rendering parameter, dynamic controller object is added;
Dynamic picture rectangle rendering parameter: on the basis of rectangle rendering parameter, dynamic controller object is added.
After determining the display position of figure, the display of figure is reset, for different figures and extension, display side Formula is different:
Point display: with map zoom or movement, the display figure that size is constant and position is constant;
Rectangle is shown: with map zoom or movement, showing size variation but the opposite constant square of map coordinates system Shape figure;
Line is shown: with map zoom or movement, showing size variation but the opposite constant line chart of map coordinates system Shape;
GIF point is shown: with the point of animated show, a series of display of the value control animation of different contents is arranged;
Picture point is shown: the point that picture combines more text styles to be shown;
Text point is shown: the point that more texts are shown;
GIF rectangle is shown: with the rectangle of animated show, a series of display of the value control animation of different contents is arranged;
Picture is shown: the rectangle that picture combines more text styles to be shown;
Text rectangle is shown: the rectangle that more texts are shown;
Tab rectangle is shown: tab rectangle is special text rectangle, and text includes title and content two parts, according to one Fixed ratio and display mode is shown, a series of display of the value control animation of different contents is arranged;
Symbol line is shown: according to different sign patterns, setting the display mode of line, such as ordinary lines, arrow line.
Further, step 4 is realized as follows,
It is proposed in step 2, " addition record " method can be called to add record, therefore can be by by " equipment " conduct Parameter transmitting, realizes the binding of figure and data.ValueMap, that is, graphic style table, according to the graph style of the figure layer, currently Status display figure.Electronic map is drawn according to the sequence of the layers list, and figure layer with being associated with for record is tied up by data Surely it realizes, the parameter when adding record on map is as follows:
Further, in order to promote the speed that record searches element, keep interface more smooth, take a record set quartering design Method handles record set.Record set is handled, referring to Fig. 3, point record set is subjected to the quartering, by coordinate value It being split into two halves by X-axis, the coordinate points quantity on the left side and the right is close, then the Y-axis of pressing of the right and left is split into two halves respectively, from And point set is divided into 4 parts, to improve treatment effeciency.Line record, rectangle record directly take the modal sets of dictionary table Record is knitted, wherein the key assignments of dictionary is record unique identification, and the value of dictionary is line record object or rectangle record object.
Further, step 5 is realized as follows,
When intelligent building project air conditioning subsystem presentation device structure chart, the pipeline between rendering apparatus is needed, which needs Instruction flow direction, to realize that above-mentioned function is needed by configuration figure.Configuration figure is made of several spirtes, it is first determined every height Display scale and each spirte central point opposite offset from whole figure central point of the figure in whole figure, according to step Each spirte that rapid three gained is drawn sets right angle orientation, can draw building project according to the line node coordinate of spirte In pipeline.
When it is implemented, computer software technology, which can be used, in those skilled in the art realizes the above process.
When the present invention is applied to intelligent building project, user selects a certain region, and system shows the plan view in the region, and Corresponding position shows device name and icon on the electronic map, wherein the icon mark of the different patterns of different types of equipment Show, the appliance icon mark of the different operating statuses of equipment in different colors, equipment is consistent in the position of map with actual conditions. Mouse moves on in appliance icon, with the details of floating box form display equipment and current operational information and controllable to part can transport Row parameter is modified.
Specific embodiment described herein is only an example for the spirit of the invention.The neck of technology belonging to the present invention The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.

Claims (2)

1. a kind of intelligent building project method for drawing map based on universal map control, it is characterised in that: include the following steps,
Step 1 initializes coordinate system, configures the corresponding relationship of real-world coordinate and map reference, realizes that real-world coordinate, map are sat Conversion between mark, screen coordinate;
Step 2 creates layer and manages figure layer record, and each figure layer contains a different aspect of entire map, with record It indicates;
The mode for taking multilayer to raise speed when drawing figure layer in step 2, realization is as follows,
If A indicates that current screen draws range, B indicates actual inside drawing area, the mode of textures is taken when A is without departing from B It draws, when A exceeds B, B area is expanded according to current screen, is stored in memory for screen drawing textures;Each figure layer has solely Vertical inside, which is drawn, to be cached, if caching needs to update, is regenerated new figure layer and is drawn caching, otherwise direct textures are drawn System;If only some figure layer of map records change, figure layer needs are repainted, and other direct textures of figure layer are drawn System;
Step 3, graphing, including fundamental figure, extension dot pattern, extension line graph and extension rectangular graph, fundamental figure Including point, line and rectangle, extending dot pattern includes GIF point, picture point and text point, and extension line graph includes symbol line, extension Rectangular graph includes GIF rectangle, picture, text rectangle and tab rectangle;
Step 4, the management of graphic style table and data are bound, including being associated with by data binding realization figure layer and record;
Several spirtes are carried out configuration processes, including determining display of each spirte in whole figure first by step 5 The opposite offset of ratio and each spirte central point from whole figure central point, according to each subgraph drawn obtained by step 3 Shape sets right angle orientation according to the line node coordinate of spirte, draws the pipeline in building project.
2. the intelligent building project method for drawing map based on universal map control according to claim 1, it is characterised in that: When handling in step 4 record set, point record set is subjected to the quartering, including coordinate value is split into two halves by X-axis, it is left The coordinate points quantity on side and the right is close, then the Y-axis of pressing of the right and left is split into two halves respectively;Line record, rectangle record are straight The mode tissue registration for taking dictionary table is met, wherein the key assignments of dictionary is record unique identification, and the value of dictionary is line record object Or rectangle records object.
CN201610398497.6A 2016-06-07 2016-06-07 Intelligent building project method for drawing map based on universal map control Active CN106096121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610398497.6A CN106096121B (en) 2016-06-07 2016-06-07 Intelligent building project method for drawing map based on universal map control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610398497.6A CN106096121B (en) 2016-06-07 2016-06-07 Intelligent building project method for drawing map based on universal map control

Publications (2)

Publication Number Publication Date
CN106096121A CN106096121A (en) 2016-11-09
CN106096121B true CN106096121B (en) 2019-03-19

Family

ID=57227981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610398497.6A Active CN106096121B (en) 2016-06-07 2016-06-07 Intelligent building project method for drawing map based on universal map control

Country Status (1)

Country Link
CN (1) CN106096121B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115470153A (en) * 2022-11-14 2022-12-13 成都安易迅科技有限公司 Method, system and equipment for evaluating stability fluency of UI (user interface) of intelligent terminal system

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109993813B (en) * 2017-12-29 2023-06-27 长城汽车股份有限公司 Method, device, vehicle and readable storage medium for creating map
CN108829435A (en) * 2018-06-19 2018-11-16 数据堂(北京)科技股份有限公司 A kind of image labeling method and general image annotation tool
CN109754700A (en) * 2018-12-07 2019-05-14 深圳坤辰物联网有限公司 A kind of production of indoor map and database application system and its method
CN110930857B (en) * 2019-05-31 2022-04-15 上海华兴数字科技有限公司 Method and device for drawing scattered points

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103177391A (en) * 2013-01-31 2013-06-26 李生林 Equipment monitoring system based on three-dimensional real scenes and system integration method based on three-dimensional real scenes
CN104636520A (en) * 2013-11-12 2015-05-20 五冶集团上海有限公司 Building engineering comprehensive pipeline layout arranging method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103177391A (en) * 2013-01-31 2013-06-26 李生林 Equipment monitoring system based on three-dimensional real scenes and system integration method based on three-dimensional real scenes
CN104636520A (en) * 2013-11-12 2015-05-20 五冶集团上海有限公司 Building engineering comprehensive pipeline layout arranging method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
一种面向室内定位的 3D 建筑模型构建方法;闫金金 等;《计算机应用与软件》;20131031;第30卷(第10期);16-20
地理信息***在电信业中的设计与开发;兰华;《电子科技大学硕士学位论文》;20060101;1-70
基于GIS的室内地图服务***关键技术研究与设计实现;邵敬敬;《中国优秀硕士学位论文全文数据库 基础科学辑》;20141015(第10期);A008-29
楼宇信息管理***的电子地图设计与制作;陈柯;《北京测绘》;20140630(第3期);120-123

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115470153A (en) * 2022-11-14 2022-12-13 成都安易迅科技有限公司 Method, system and equipment for evaluating stability fluency of UI (user interface) of intelligent terminal system

Also Published As

Publication number Publication date
CN106096121A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106096121B (en) Intelligent building project method for drawing map based on universal map control
CN103208225B (en) A kind of tile map method for making and system
CN105183862B (en) A kind of mask method and device of POI
CN103946836B (en) The method and apparatus for rendering map image using the modification of non-grating map datum
CN102693253B (en) image management and presentation
CN104123405B (en) Three-dimensional building information providing apparatus and method
CN103873277A (en) Layered network topology visualizing method and system
US20160342678A1 (en) Manipulation of arbitrarily related data
CN105574102B (en) A kind of method and device of electronic map data load
CN102314434A (en) Method for combined display of page background pictures and device
CN102467519B (en) Visualization plotting method and system based on geographic information system
JPWO2009034634A1 (en) Map drawing device
CN105912123A (en) Interface layout method and device under three-dimension immersion environment
CN109783592A (en) A kind of situation map dynamic plotting system
CN106777136A (en) A kind of steel trade price index information map interactive exhibition system and method
CN109086515B (en) Modeling method for primary equipment drawing information in SSD (solid State drive) of intelligent substation based on SVG (scalable vector graphics)
CN104376038A (en) Position associated text information visualization method based on label cloud
CN104090953A (en) Map display method and device for LED lamp on virtual display terminal
CN111275788B (en) Graph synthesis method based on commonality template graph and differential topological graph
CN104346771B (en) A kind of electronic map tiered management approach
CN102592261B (en) Vector diagram showing method and system
CN115100387A (en) Three-dimensional scene efficient visual editing method and equipment based on digital twins
CN101706970B (en) Method and application for layered processing of operation objects
CN104238921A (en) Custom polygon drawing method and device
CN104850298B (en) A kind of information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant