CN103425800B - map visualization method, device and processor - Google Patents
map visualization method, device and processor Download PDFInfo
- Publication number
- CN103425800B CN103425800B CN201310397955.0A CN201310397955A CN103425800B CN 103425800 B CN103425800 B CN 103425800B CN 201310397955 A CN201310397955 A CN 201310397955A CN 103425800 B CN103425800 B CN 103425800B
- Authority
- CN
- China
- Prior art keywords
- coordinate
- map
- data file
- floor
- map data
- 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
Links
Landscapes
- Processing Or Creating Images (AREA)
- Instructional Devices (AREA)
Abstract
The present invention relates to GIS-Geographic Information System field, particularly relate to a kind of map visualization method, device and processor.In the method, first the map data file of each floor, annexation tables of data and the coordinate transfer parameters in two-dimensional map is obtained, then according to coordinate transfer parameters, map data file and annexation tables of data are carried out coordinate transfer, obtain the map data file after coordinate transfer and the annexation of each floor gap, after getting map denotation request, perform the operation of corresponding map denotation.The coordinate branching algorithm of the method application is fairly simple, data processing speed is fast, in an orderly manner the map datum of the multiple single plane floor of script Discrete Distribution can be carried out integrant expression, the information of all floors in the whole building of displaying of integration, and the map data file formed meets the rule of human eye three-dimensional imaging, stereo-effect is relatively good, less demanding to hardware configuration.
Description
Technical field
The present invention relates to GIS-Geographic Information System field, particularly relate to a kind of map visualization method, device and processor.
Background technology
At present, on GIS(Geographic Information System or Geo-Information system, ground
Reason information system) field, the Visualization of map is become a study hotspot.Visual map has the most excellent
Gesture, wherein, by map is carried out Visualization, can be effectively improved professional skill and the operating capability of government department, example
As, when carrying out fire-fighting emergent and directing rescue work, Visualization according to the map and Orientation on map technology, it is possible to be accurately positioned,
And visualization shows fireman and the position of the stranded masses, formulate efficient rescue scenario accordingly;It addition, by visually
Figure, also helps ability and the level of further Improving Government service the public, and such as, according to this technology, user can be very convenient
Find toilet nearest in shop, or the registration mouth of a certain flight in airport.
In prior art, when carrying out the Visualization of map, can be realized by the technology of virtual reality, in the method
The software of the virtual reality relied on, for supporting the threedimensional model utilizing the software development such as 3Dmax to go out, by this threedimensional model,
Realize the three-dimensional visualization of map.Furthermore it is also possible to realized by two dimensional map data file, in GIS applies, each two dimension
Map data file represents the plane information of respective storey, when needs carry out Visualization to map, by described two dimension
Map data file, can show the plane information of this floor accordingly.
But, inventor finds in the research process of the application, uses the technology of virtual reality to realize the visual of map
During change, higher hardware configuration is needed to realize;It addition, in prior art, utilize the ground that two dimensional map data file builds
Diagram data, is scattered physically or the most all, can only divide the plane individually showing each floor of floor
Information, it is impossible to the information of all floors in the whole building of displaying of integration.
Summary of the invention
In view of this, it is an object of the invention to provide a kind of map visualization method, device and processor, existing to solve
Have in technology, when utilizing the visualization that Intel Virtualization Technology realizes map, the problem needing higher configured having, and utilize existing
Map products, it is achieved during the visualization of map, the problem that the plane information individually showing each floor of floor can only be divided.Tool
Body embodiment is as follows:
A kind of map visualization method, including:
Obtain the map data file of each floor, annexation tables of data and coordinate transfer parameters in two-dimensional map, its
In, described map data file includes road net data file and other map data files, and described annexation tables of data comprises
Having the junction point of each floor, described coordinate transfer parameters to include: the most corresponding x, the scaling in y-axis direction, coordinate shift
After oblique coordinates in x, the angle of y-axis, and the gap length of each floor gap;
According to described coordinate transfer parameters, in the coordinate in described map data file and described annexation tables of data
The coordinate of junction point carry out coordinate transfer, obtain the map data file after coordinate transfer, and the map after being shifted by coordinate
Each road net data file and the coordinate of described junction point in data file are merged into a road net data file;
After obtaining map denotation request, the map data file after being shifted by described coordinate is overlapped display.
Preferably, described map visualization method also includes:
Obtain the connection cost between the junction point of each floor described, and after described connection cost is carried in described merging
Road net data file in.
Preferably, described according to coordinate transfer parameters, to the coordinate in described map data file and annexation data
The coordinate of the junction point in table carries out the algorithm of coordinate transfer:
Wherein, x and y is the coordinate before coordinate transfer, and x ' and y ' is the coordinate after coordinate transfer, XscaleAnd YscaleRespectively
Representing when carrying out coordinate transfer, the most corresponding x, the scaling in y-axis direction, α is in the oblique coordinates after coordinate transfer
X, the angle of y-coordinate between centers, Δ is the gap length of each floor gap, and i is floor number, LmaxEach building before shifting for coordinate
In the described map data file of layer, outsourcing rectangle is in the greatest length of y-axis.
Preferably, before carrying out coordinate transfer according to described coordinate branching algorithm, also include:
Obtaining in the described map data file of each floor before coordinate transfer, outsourcing rectangle is in the greatest length of y-axis
Lmax;
Judge gap length Δ and the Y of described each floor gapscale×LmaxValue between difference whether in allowed band,
If described difference is not in described allowed band, then reacquire the gap length Δ of described each floor gap, in order to according to institute
The gap length Δ stating reacquisition carries out the calculating of coordinate transfer.
Preferably, described map visualization method also includes:
Reception processes the Map request of terminal transmission;
Map data file corresponding for the request of described Map is changed into the data mode that described processing terminal is supported,
And the map data file transmission after converting is to described processing terminal, described processing terminal carry out visualization display.
Accordingly, the invention also discloses a kind of map visualization device, including:
First acquisition module, for obtaining the map data file of each floor in two-dimensional map, annexation tables of data
With coordinate transfer parameters, wherein, described map data file includes road net data file and other map data files, described company
Connecing relation database table and include the junction point of each floor, described coordinate transfer parameters includes: the most corresponding x, the contracting in y-axis direction
Put x in the oblique coordinates after ratio, coordinate transfer, the angle of y-axis, and the gap length of each floor gap;
Coordinate shift module, for according to described coordinate transfer parameters, to the coordinate in described map data file and institute
The coordinate stating the junction point in annexation tables of data carries out coordinate transfer, obtains the map data file after coordinate transfer, and
Each road net data file in map data file and the coordinate of described junction point after being shifted by coordinate are merged into a road
Network data file;
Display operation module, after being used for obtaining map denotation request, the map data file after being shifted by described coordinate enters
Row Overlapping display.
Preferably, described map visualization device also includes:
Second acquisition module, for obtaining the connection cost between the junction point of each floor described, and connects into described
Originally it is carried in the road net data file after described merging.
Preferably, in described coordinate shift module, the algorithm carrying out coordinate transfer is:
Wherein, x and y is the coordinate before coordinate transfer, and x ' and y ' is the coordinate after coordinate transfer, XscaleAnd YscaleRespectively
Representing when carrying out coordinate transfer, the most corresponding x, the scaling in y-axis direction, α is in the oblique coordinates after coordinate transfer
X, the angle of y-coordinate between centers, Δ is the gap length of each floor gap, and i is floor number, LmaxEach building before shifting for coordinate
In the described map data file of layer, outsourcing rectangle is in the greatest length of y-axis.
Preferably, described map visualization device also includes:
3rd acquisition module, in the described map data file of each floor before obtaining coordinate transfer, outsourcing square
Shape is at the greatest length L of y-axismax;
Judge module, for judging gap length Δ and the Y of described each floor gapscale×LmaxValue between difference whether
In allowed band, if described difference is not in described allowed band, then reacquire the gap length of described each floor gap
Δ, in order to carry out the calculating of coordinate transfer according to the gap length Δ of described reacquisition.
Preferably, institute's map visualization device, also include:
Receiver module, for receiving the Map request processing terminal transmission;
Transport module, props up for map data file corresponding for the request of described Map is changed into described processing terminal
The data mode held, and the map data file transmission after converting is to described processing terminal, described processing terminal carrying out can
Depending on changing display.
Accordingly, the invention also discloses a kind of processor, the chip of described processor is integrated with as above
Figure visualization device.
In map visualization method disclosed in the present application, the first map number of each floor in acquisition two-dimensional map
According to file, annexation tables of data and coordinate transfer parameters, then according to described coordinate transfer parameters, to described map datum literary composition
The coordinate of the coordinate in part and the junction point in annexation tables of data carries out coordinate transfer, obtains the map number after coordinate transfer
According to file, and the coordinate of each road net data file in the map data file after coordinate transfer and described junction point is merged
Become a road net data file, get map denotation request after, according to described coordinate shift after map data file and
The annexation of each floor gap, performs the operation of corresponding map denotation.
In above-mentioned map visualization method, by the map data file in multiple two-dimensional maps, it is converted into plane oblique angle
The data file that coordinate system builds, and utilize the order of floor gap and floor gap every, according to the junction point of contiguous floors, in longitudinal direction
On be arranged in order each floor, form a kind of data model utilizing two dimensional surface to express three-dimensional coordinate structure such that it is able to fast
The Visualization realizing map of speed.Owing to the coordinate branching algorithm of the method application is fairly simple, data processing speed is fast,
And the map data file formed meets the rule of human eye three-dimensional imaging, stereo-effect is relatively good, relative in prior art
For the virtual technology used, less demanding to hardware configuration, it is possible to cost-effective.It addition, after the transfer of the application coordinate
Map data file, owing to constructing the annexation of each floor gap according to junction point, and is arranged on road by this annexation
In network data file, it is possible in an orderly manner the map datum to the multiple single plane floor of script Discrete Distribution carry out integrate and
Express, it is possible to the information of all floors in the whole building of displaying of integration.
Further, the map data file that the application gets after coordinate shifts, substantially remain a kind of two
Dimension data, therefore, it is possible to the various functions in the existing two-dimension GIS of seamless support, such as space querying and analytic function, it is simple to
Follow-up carry out application and development based on this map data file, there is good practicality.And, prior art utilizes two-dimensionally
Diagram data file builds the mode of map, owing to the organizational structure of this map is dispersion physically or the most all
, it is difficult to by traditional two-dimension GIS inquiry, analysis method, whole floor is inquired about and analyzed, and in the application, owing to setting
Determined the junction point of each floor gap, obtained the annexation of each floor gap such that it is able to by inside-plant respectively
Individual floor, as an entirety, carries out the space querying analysis of integration.
It addition, in map visualization method disclosed in the present application, it is also possible to after receiving Map request, obtain institute
State the map data file that Map request is corresponding, described map data file is converted into the data that request transmission side supports
Form, then transmit it to the processing terminal asking transmission side corresponding, this processing terminal map is carried out visualization and show.Its
In, described processing terminal is usually handheld terminal, such as mobile phone etc., expands the range of application of map visualization.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the workflow schematic diagram of a kind of map visualization method disclosed in the embodiment of the present invention;
Fig. 2 is the ground diagram in a kind of two-dimensional map disclosed in prior art constructed by the map data file of each floor
It is intended to;
Fig. 3 is the map signal constructed by the map data file in map visualization method disclosed in the embodiment of the present invention
Figure;
Fig. 4 is the structural representation of a kind of map visualization device disclosed in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
This application discloses a kind of map visualization method, to solve in prior art, utilize Intel Virtualization Technology to realize ground
During the visualization of figure, the problem needing higher configured having, and utilize existing map products, it is achieved the visualization of map
Time, the problem that the plane information individually showing each floor of floor can only be divided.Workflow schematic diagram shown in Figure 1,
Map visualization method disclosed in the present application includes:
The map data file of each floor, annexation tables of data and coordinate transfer in step S11, acquisition two-dimensional map
Parameter, wherein, described map data file includes road net data file and other map data files, described annexation data
Table includes map data file bag described in the junction point of each floor, and described coordinate transfer parameters includes: the most corresponding x, y-axis
X in oblique coordinates after the transfer of the scaling in direction, coordinate, the angle of y-axis, and the gap length of each floor gap.
At present, the map data file of conventional 2-D data, all in plane right-angle coordinate undertissue, utilize logical
Normal two-dimension GIS (Geographic Information System or Geo-Information system, geography information system
System) data, the indoor map data of n floor generally have n to overlap map datum, and are all located under same plane rectangular coordinate system,
It is difficult in the way of solid image carry out Visualization.Described map data file can be designated as, wherein, i's and j
Value is positive integer, and i represents floor number, and such as the first floor, its floor number is usually 1, the floor number of the second floor
Being 2, j represents the numbering of map data file, contentjFor map data file corresponding different pieces of information content, wherein,
Described map data file includes: road net data file, stairs port data file, room data file and body of wall data file
Deng, in this case, content1When corresponding is road net data, thenRepresent is road net data file.Further,
Connection cost in road net data file, in the floor of each plane that can obtain correspondence.
In described annexation tables of data LinkTable, include the junction point of each floor, be used for determining contiguous floors
Between annexation, such as, when with LinkPAAnd LinkPBWhen representing the junction point of adjacent two floors, the two junction point pair
In described annexation tables of data LinkTable answered, comprise LinkPAPlace floor number, LinkPATrue geographical coordinate,
LinkPBPlace floor number and LinkPBTrue geographical coordinate.Wherein, described junction point can be stairs port and lift port etc.
Position, the application does not limits.
It addition, the map data file of each floor that described coordinate transfer parameters is in the two-dimensional map that will get
Be converted to oblique coordinates, with the map data file after being shifted by coordinate, construct the visual effect of a kind of solid.Generally,
The described map data file of two dimension is showed by plane right-angle coordinate, if the map data file got in the application
Not being plane right-angle coordinate, available prior art is converted into plane right-angle coordinate.Described coordinate transfer parameters bag
Include: when being converted into oblique coordinates, the scaling X respectively at x, on y-axis directionscaleAnd Yscale;Coordinate transfer after oblique
In angle coordinate system, x, the angle α of y-coordinate axle, and the gap length Δ of each floor.
Step S12, according to described coordinate transfer parameters, to the coordinate in described map data file and annexation data
The coordinate of the junction point in table carries out coordinate transfer, obtains the map data file after coordinate transfer, and by after coordinate transfer
Each road net data file and the coordinate of described junction point in map data file are merged into a road net data file.
In existing two-dimension GIS technology, each floor in a solitary building, all there is its corresponding a set of map number
According to file, the most a set of map data file includes: road net data file, room data file and wall data file etc. are many
Kind, and original road net data file sign is the road in corresponding floor.In step S12, by coordinate shift after each
The coordinate of the junction point after the road net data file of individual floor, and coordinate transfer is merged into a road net data file, then can
Enough according to the road net data file after described merging, determine the annexation of each floor gap.
Each corresponding for each floor road net data Piece file mergence is a road net data file by the application, and at it
In be loaded with the coordinate of junction point such that it is able to close according to the connection of road net data each floor gap of file acquisition after this merging
System, and show after each floor superposition.It addition, in the application, it is also possible to by other same type of map datum literary compositions
Part merges, and such as, can be a room by each corresponding for each floor after coordinate transfer room data Piece file mergence
Data file etc., it is simple to query analysis.
After step S13, acquisition map denotation request, the map data file after being shifted by described coordinate is overlapped showing
Show.
The map data file of each floor in two-dimensional map shown in Figure 2, constructed map schematic diagram, this figure
Including four plane maps, the most corresponding Stall is to 4th floors, and the map data file of each floor divides the list of floor accordingly
Solely illustrate the plane information of each floor.After Coordinate Conversion, by the plane rectangular coordinates of the map in each floor
System is converted into oblique coordinates, and according to the junction point after coordinate transfer, obtains the annexation of each floor gap, according to seat
Floor is carried out migration stack by gap length Δ and the floor number of each floor set in mark transfer parameters, then can form figure
The stereoeffect of the map data file after the coordinate transfer shown in 3, wherein, the line segment connected between each floor, Ji Kebiao
Annexation between showing.
The map data file got in step s 11, meets Data Format requirement, and it is carried out by the application
After coordinate transfer, the map data file got still conforms to Data Format requirement, and be provided with each floor gap
Annexation, thus receive map denotation request after, can according to described coordinate shift after map data file carry out
Overlapping display.
In map visualization method disclosed in the present application, the first map number of each floor in acquisition two-dimensional map
According to file, annexation tables of data and coordinate transfer parameters, then according to described coordinate transfer parameters, to described map datum literary composition
The coordinate of the coordinate in part and the junction point in annexation tables of data carries out coordinate transfer, obtains the map number after coordinate transfer
According to file, and the coordinate of each road net data file after coordinate transfer and described junction point is merged into a road net data literary composition
Part, after getting map denotation request, performs the operation of corresponding map denotation.
In above-mentioned map visualization method, by the map data file in multiple two-dimensional maps, it is converted into plane oblique angle
The data file that coordinate system builds, and utilize the order of floor gap and floor gap every, according to the junction point of contiguous floors, in longitudinal direction
On be arranged in order each floor, form a kind of data model utilizing two dimensional surface to express three-dimensional coordinate structure such that it is able to fast
The Visualization realizing map of speed.Owing to the coordinate branching algorithm of the method application is fairly simple, data processing speed is fast,
And the map data file formed meets the rule of human eye three-dimensional imaging, stereo-effect is relatively good, relative in prior art
For the virtual technology used, less demanding to hardware configuration, it is possible to cost-effective.It addition, after the transfer of the application coordinate
Map data file, owing to constructing the annexation of each floor gap according to junction point, it is possible in an orderly manner to discrete point originally
The map datum of the multiple single plane floor of cloth is integrated and is expressed, it is possible to institute in the whole building of displaying of integration
There is the information of floor.
Further, the map data file that the application gets after coordinate shifts, substantially remain a kind of two
Dimension data, therefore, it is possible to the various functions in the existing two-dimension GIS of seamless support, such as space querying and analytic function, it is simple to
Follow-up carry out application and development based on this map data file, there is good practicality.And, prior art utilizes two-dimensionally
Diagram data file builds the mode of map, owing to the organizational structure of this map is dispersion physically or the most all
, it is difficult to by traditional two-dimension GIS inquiry, analysis method, whole floor is inquired about and analyzed, and in the application, owing to setting
Determined the junction point of each floor gap, obtained the annexation of each floor gap such that it is able to by inside-plant respectively
Individual floor, as an entirety, carries out the space querying analysis of integration.
Further, described map visualization method also includes: the connection obtained between the junction point of each floor described becomes
This, and described connection cost is carried in the road net data file after described merging.
Wherein, passing through under described connection cost can be the actual physics length between two junction points, different current mode
Time or current required fund etc., this is not limited by the application.Described connection cost is loaded onto the road after described merging
In network data file, be conducive to fully combining the connection cost of each floor gap, multiple floors are carried out the analysis of integration.Example
As, after the map data file after getting coordinate transfer, the display that it can be carried out three-dimensional, user is by this map
Data file carries out two-dimension GIS space querying analysis, can inquire about the acquisition annexation of each floor, the geography at place, room
The information such as the position at position and stairs port place.After loading described connection cost, user can also be looked into by two-dimension GIS space
Ask analysis method, get the connection cost from a certain floor to another floor.
When, in map visualization method disclosed in the present application, also including the company obtaining between the junction point of each floor described
During the step of logical cost, this step can perform before step S11 or after step S13, it is also possible to step S11 to step S13 it
Between perform, this is not limited by the application.Generally, described connection cost can be arranged in described annexation tables of data, this
In the case of Zhong, described annexation tables of data is as shown in the table:
In upper table, LinkPAAnd LinkPBRepresent the junction point of two floor gaps respectively, and be provided with described LinkPAWith
LinkPBDistinguish corresponding floor number, true geographical coordinate and connect cost.After obtaining described annexation tables of data, i.e.
Described connection cost can be carried in the map data file after the transfer of described coordinate, it is simple to follow-up each floor gap of combination
Annexation with connect cost, the integration of many floors is carried out applied analysis.
It addition, described in step S12 according to coordinate transfer parameters, to the coordinate in described map data file and connection
The coordinate of the junction point in relation database table carries out the algorithm of coordinate transfer:
Wherein, x and y is the coordinate before coordinate transfer, and x ' and y ' is the coordinate after coordinate transfer, XscaleAnd YscaleRespectively
Representing when carrying out coordinate transfer, the most corresponding x, the scaling in y-axis direction, α is in the oblique coordinates after coordinate transfer
X, the angle of y-coordinate between centers, Δ is the gap length of each floor gap, and i is floor number, LmaxEach building before shifting for coordinate
In the described map data file of layer, outsourcing rectangle is in the greatest length of y-axis.
Map data file before carrying out coordinate transfer byRepresenting, wherein, the value of i and j is the most whole
Number, i represents floor number, contentjFor map data file corresponding different pieces of information content, it addition, described map datum
File includes: road net data file, stairs port data file, room data file and body of wall data file etc., in this case,
content1When corresponding is road net data, thenRepresent is road net data file.Carry out before coordinate transfer each
Map data file, is and meets the map data file that Data Format requires such that it is able to carry out visualization display,
After coordinate shifts, the map data file got still conforms to the requirement of Data Format, applies prior art, i.e.
Map data file after can shifting according to coordinate realizes visual display.
After the coordinate transfer that above-mentioned coordinate branching algorithm is carried out, each map data file is(j=1,
2,3 ...), the indoor map data file of converted rear these building formed, subscript trans is the data mark after coordinate transfer
Will, subscript contentjFor the different pieces of information content that each map data file is corresponding, such as road network, stairs port, room etc..Especially
,Map road net data after shifting for coordinate, usually polyline multi-line section type, the ground after the transfer of described coordinate
In figure road net data, also include the annexation tables of data after coordinate transfer.
According to above-mentioned algorithm, the coordinate in each map data file and the junction point in connection relational table are carried out coordinate
After transfer, according to the requirement of GIS spatial data form, by after coordinate shifts, the map data file of same type, press
New corresponding map data file is gradually added to according to former data typeIn.Wherein, the type bag of map data file
Including road network, room and body of wall etc., data type generally includes three kinds of different data types of point, line, surface.
When in map visualization method disclosed in the present application, for the analysis needs to GIS network based on road net data,
When also obtaining connection cost between the junction point of each floor, generally described connection cost is also loaded ontoIn, in order to base
InFile utilizes conventional two-dimension GIS spacial analytical method to carry out GIS analysis of network, such as, utilize the connection of road net data
Cost carries out path planning.
If coordinate in this application is transformed to isometric conversion, then the scaling X in x-axis directionscale=1, Yscale×sin
α=1.Meanwhile, for Visualization effect, the value of Δ is unsuitable and Yscale×LmaxValue deviation excessive.Therefore, further
, before carrying out coordinate transfer according to described coordinate branching algorithm, also include:
First, obtain in the described map data file of each floor before coordinate transfer, outsourcing rectangle in y-axis
Long length Lmax;Afterwards, it is judged that the gap length Δ of each floor gap described and Yscale×LmaxValue between difference whether permitting
In the range of Xuing, if described difference is not in described allowed band, if it is, the interval reacquiring described each floor gap is long
Degree Δ, in order to carry out the calculating of coordinate transfer according to the gap length Δ of described reacquisition.
For Visualization effect, it is to avoid the value of Δ and Yscale×LmaxValue between deviation excessive, in the application
In, before carrying out coordinate transfer, obtain the greatest length L in y-axis of the outsourcing rectangle in map data filemax, and by LmaxWith
Yscale×LmaxProduct value contrast, if difference between the two is not in described allowed band, then reset respectively by user
The gap length Δ of floor gap, in order to carry out coordinate transfer according to the gap length Δ of the described each floor gap reacquired
Calculate, so that the map that plane oblique coordinates builds is more aesthetically pleasing.
It addition, above-mentioned coordinate branching algorithm achieves under the plane right-angle coordinate of each floor by script Discrete Distribution
Map data file, be converted into the plane oblique coordinates after integration, utilize following algorithmic formula, then can realize this process
Inverse process:
In above-mentioned two algorithmic formula, add, subtract, multiplication and division, absolute value, assignment operation are Conventional mathematical computing, ceil table
Show lower bracket function, such as ceil (342.54)=342.
It addition, in map visualization method disclosed in the present application, the technical scheme disclosed in step S13, i.e. receiving
After asking to map denotation, the map data file after being shifted by coordinate is overlapped the method for display, it is adaptable to carry out coordinate
The processor that transfer calculates, directly displays map data file corresponding to described map denotation map and corresponding floor gap arrives
The situation of annexation.In application scenes, need to use other processing terminals sometimes and carry out the visualization of map
Display.In this case, map visualization method disclosed in the present application also includes:
Reception processes the Map request of terminal transmission;
Map data file corresponding for the request of described Map is changed into the data mode that described processing terminal is supported,
And the map data file transmission after converting is to described processing terminal, described processing terminal carry out visualization display.
This mode, it is adaptable to carried out the situation of map visualization by other processing terminals.Wherein, described other process eventually
End usually handheld terminal, such as mobile phone etc..Such as, fire fighter utilizes the visual map of mobile phones enquiring, it is possible to learn each
The spatial distribution of floor, it is simple to carry out rescue measure in time.
Wherein, the data mode that described processing terminal is supported, can be picture, or other data, services, such as, and base area
Figure transmission request, is converted into map to be shown picture, and by described picture transfer to mobile phone, can be shown this ground by mobile phone
Figure.
When carrying out the display of map visualization in prior art, the virtual technology of utilization is higher to the requirement of hardware configuration,
Therefore it is not suitable for the application of handheld terminal, is of limited application, and the map data file after the coordinate transfer in the application
Substantially being still that two dimensional map data, two dimensional map data is configuring the application of relatively low handheld terminal the most widely,
Therefore, map visualization method disclosed in the present application can be applied to handheld terminal, and the visualized map of formation can facilitate
On handheld terminal, it is shown issue rapidly, extends the range of application of visualized map.
Current existing map visualization technology, generally includes two kinds, and a kind of is that the method utilizing virtual reality realizes, should
Although the spatial distribution in each floor in the displaying same building thing that method can be vivid, but, virtual technology is unfavorable for carrying out
Data analysis, and, in actual applications, compare consuming hardware resource, need higher hardware configuration to realize, it is difficult to
The mainstream carrier of visualized map application, handheld terminal is widely applied;Another kind realizes the method for map visualization
It is that the mode of the plane graph utilizing designated floor realizes, although the method can intuitively show the spatial distribution in a certain floor,
But it is difficult to embody intuitively the connected relation of same building thing each floor gap interior, it is more difficult to carry out many buildings based on this connected relation
The data query of layer integration and analysis of network, such as the path analysis of two floor gaps.
And in map visualization method disclosed in the present application, first by same building thing, the map number of each floor
According to file, the programmatic way of coordinate transform is utilized to process, the two-dimension GIS map datum built by plane right-angle coordinate
File, carries out coordinate transfer;If the map data file of the two dimensional form got is not the form of plane right-angle coordinate, then
Prior art can be passed through, as being determined by earth ellipsoid and projection pattern, be translated into plane right-angle coordinate;Through sitting
Mark transfer after, acquisition is the map data file under plane oblique coordinates, and according to certain floor gap every and floor
Order is by the map data file successively migration stack of different floors, so that the indoor map data of many floors present vertical
The effect of visualization that body surface reaches.This technology is for virtual reality technology, it is achieved mode is simple, it is not necessary to higher hardware
Configuration, reduce map visual realize cost, and expand the range of application of map visualization, make mobile terminal etc. process eventually
End also is able to realize the visualization of map.
In the application, being provided with annexation tables of data, described annexation tables of data includes the connection of each floor
Point, described junction point is usually the floor junctional complex in the real space such as stair or elevator.Present invention take advantage of that this real space
In annexation corresponding to floor junctional complex, the procedure treatment shifted by coordinate, this annexation is utilized plane
Wire data under oblique coordinates show, and according to GIS network inquiry, the application demand of analysis, by these wire data with
Road net data file in map data file, is integrated into one and has successional wire data file on logic level,
Realize the map data file after the integrally exhibiting to this building, and coordinate transfer and meet the rule of human eye three-dimensional imaging
Rule, stereo-effect is good, meets map demand on Visualization.And, the map data file after coordinate transfer, this
The GIS data of two dimension it is still that in matter, therefore, it is possible to the inquiry of seamless support two-dimension GIS network and the function of analysis.
Accordingly, the invention also discloses a kind of map visualization device, structural representation shown in Figure 4, described
Map visualization device includes: the first acquisition module 11, coordinate shift module 12 and display operation module 13, wherein,
Described first acquisition module 11, for obtaining the map data file of each floor, annexation in two-dimensional map
Tables of data and coordinate transfer parameters, wherein, described map data file includes road net data file and other map data files,
Described annexation tables of data includes the junction point of each floor, and described coordinate transfer parameters includes: the most corresponding x, y-axis side
To scaling, coordinate transfer after oblique coordinates in x, the angle of y-axis, and the gap length of each floor gap;
Described coordinate shift module 12, for according to described coordinate transfer parameters, to the seat in described map data file
The coordinate of the junction point in mark and described annexation tables of data carries out coordinate transfer, obtains the map datum literary composition after coordinate transfer
Part, and the coordinate of each road net data file in the map data file after coordinate transfer and described junction point is merged into one
Individual road net data file;
Described display operation module 13, after being used for obtaining map denotation request, the map datum after described coordinate is shifted
File is overlapped display.
Further, described map visualization device also includes:
Second acquisition module, described second acquisition module becomes for obtaining the connection between the junction point of each floor described
This, and described connection cost is carried in the road net data file after described merging.
Further, in described coordinate shift module 12, the algorithm carrying out coordinate transfer is:
Wherein, x and y is the coordinate before coordinate transfer, and x ' and y ' is the coordinate after coordinate transfer, XscaleAnd YscaleRespectively
Representing when carrying out coordinate transfer, the most corresponding x, the scaling in y-axis direction, α is in the oblique coordinates after coordinate transfer
X, the angle of y-coordinate between centers, Δ is the gap length of each floor gap, and i is floor number, LmaxEach building before shifting for coordinate
In the described map data file of layer, outsourcing rectangle is in the greatest length of y-axis.
Further, described map visualization device also includes:
3rd acquisition module, the described map number of described 3rd acquisition module each floor before obtaining coordinate transfer
According in file, outsourcing rectangle is at the greatest length L of y-axismax;
Judge module, described judge module is for judging gap length Δ and the Y of described each floor gapscale×LmaxValue
Between difference whether in allowed band, if described difference is not in described allowed band, then reacquire described each floor
Between gap length Δ, in order to carry out the calculating of coordinate transfer according to the gap length Δ of described reacquisition.
Further, described map visualization device also includes:
Receiver module, described receiver module is for receiving the Map request processing terminal transmission;
Transport module, props up for map data file corresponding for the request of described Map is changed into described processing terminal
The data mode held, and the map data file transmission after converting is to described processing terminal, described processing terminal carrying out can
Depending on changing display.
Accordingly, the invention also discloses a kind of processor, the chip of described processor is integrated with as above
Figure visualization device.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example that the embodiments described herein describes
Unit and algorithm steps, it is possible to being implemented in combination in of electronic hardware or computer software and electronic hardware.These functions are actually
Perform with hardware or software mode, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel
Each specifically should being used for can be used different methods to realize described function, but this realization is it is not considered that exceed
The scope of the present invention.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, the system of foregoing description,
The specific works process of device and unit, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, permissible
Realize by another way.Such as, device embodiment described above is only schematically, such as, and described unit
Dividing, be only a kind of logic function and divide, actual can have other dividing mode, the most multiple unit or assembly when realizing
Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or
The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit
Close or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme
's.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.
If described function is using the form realization of SFU software functional unit and as independent production marketing or use, permissible
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is the most in other words
The part contributing prior art or the part of this technical scheme can embody with the form of software product, this meter
Calculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment (can be individual
People's computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.
And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.
Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein
General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one
The widest scope caused.
Claims (8)
1. a map visualization method, it is characterised in that including:
Obtain the map data file of each floor, annexation tables of data and coordinate transfer parameters in two-dimensional map, wherein, institute
Stating map data file and include road net data file and other map data files, described annexation tables of data includes each
The junction point of floor, described coordinate transfer parameters includes: respectively corresponding x, oblique after the transfer of the scaling in y-axis direction, coordinate
X in angle coordinate system, the angle of y-axis, and the gap length of each floor gap;
According to described coordinate transfer parameters, to the company in the coordinate in described map data file and described annexation tables of data
The coordinate of contact carries out coordinate transfer, obtains the map data file after coordinate transfer, and by the map datum after coordinate transfer
Each road net data file and the coordinate of described junction point in file are merged into a road net data file;
After obtaining map denotation request, the map data file after being shifted by described coordinate is overlapped display;
Wherein, described according to coordinate transfer parameters, in the coordinate in described map data file and annexation tables of data
The coordinate of junction point carries out the algorithm of coordinate transfer:
Wherein, x and y is the coordinate before coordinate transfer, x' and y' is the coordinate after coordinate transfer, XscaleAnd YscaleIt is illustrated respectively in
When carrying out coordinate transfer, the most corresponding x, the scaling in y-axis direction, α is x in the oblique coordinates after coordinate transfer, y-coordinate
The angle of between centers, Δ is the gap length of each floor gap, and i is floor number, LmaxDescribed in each floor before shifting for coordinate
In map data file, outsourcing rectangle is in the greatest length of y-axis.
Method the most according to claim 1, it is characterised in that described map visualization method also includes:
Obtain the connection cost between the junction point of each floor described, and described connection cost is carried in the road after described merging
In network data file.
Method the most according to claim 1, it is characterised in that carrying out coordinate transfer according to described coordinate branching algorithm
Before, also include:
Obtaining in the described map data file of each floor before coordinate transfer, outsourcing rectangle is at the greatest length L of y-axismax;
Judge gap length Δ and the Y of described each floor gapscale×LmaxValue between difference whether in allowed band, if
Described difference not in described allowed band, then reacquires the gap length Δ of described each floor gap, in order to according to described heavy
The new gap length Δ obtained carries out the calculating of coordinate transfer.
Method the most according to claim 1 and 2, it is characterised in that described map visualization method also includes:
Reception processes the Map request of terminal transmission;
Map data file corresponding for the request of described Map is changed into the data mode that described processing terminal is supported, and will
Map data file transmission after conversion, to described processing terminal, is carried out visualization display by described processing terminal.
5. a map visualization device, it is characterised in that including:
First acquisition module, for obtaining the map data file of each floor in two-dimensional map, annexation tables of data and seat
Mark transfer parameters, wherein, described map data file includes road net data file and other map data files, and described connection is closed
Being the tables of data junction point that includes each floor, described coordinate transfer parameters includes: the most corresponding x, the pantograph ratio in y-axis direction
X in oblique coordinates after the transfer of example, coordinate, the angle of y-axis, and the gap length of each floor gap;
Coordinate shift module, for according to described coordinate transfer parameters, to the coordinate in described map data file and described company
The coordinate connecing the junction point in relation database table carries out coordinate transfer, obtains the map data file after coordinate transfer, and will sit
Each road net data file in map data file and the coordinate of described junction point after mark transfer are merged into a road network number
According to file;
Display operation module, after being used for obtaining map denotation request, the map data file after being shifted by described coordinate is folded
Add display;
In described coordinate shift module, the algorithm carrying out coordinate transfer is:
Wherein, x and y is the coordinate before coordinate transfer, x' and y' is the coordinate after coordinate transfer, XscaleAnd YscaleIt is illustrated respectively in
When carrying out coordinate transfer, the most corresponding x, the scaling in y-axis direction, α is x in the oblique coordinates after coordinate transfer, y-coordinate
The angle of between centers, Δ is the gap length of each floor gap, and i is floor number, LmaxDescribed in each floor before shifting for coordinate
In map data file, outsourcing rectangle is in the greatest length of y-axis.
Device the most according to claim 5, it is characterised in that described map visualization device also includes:
Second acquisition module, for obtaining the connection cost between the junction point of each floor described, and adds described connection cost
It is loaded in the road net data file after described merging.
Device the most according to claim 5, it is characterised in that described map visualization device also includes:
3rd acquisition module, in the described map data file of each floor before obtaining coordinate transfer, outsourcing rectangle is at y
The greatest length L of axlemax;
Judge module, for judging gap length Δ and the Y of described each floor gapscale×LmaxValue between difference whether permitting
In the range of Xuing, if described difference is not in described allowed band, then reacquire the gap length Δ of described each floor gap, with
Just the gap length Δ according to described reacquisition carries out the calculating of coordinate transfer.
8., according to the device described in claim 5 or 6, it is characterised in that described map visualization device, also include:
Receiver module, for receiving the Map request processing terminal transmission;
Transport module, for changing into what described processing terminal was supported by map data file corresponding for the request of described Map
Data mode, and the map data file transmission after converting is to described processing terminal, described processing terminal visualize
Display.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310397955.0A CN103425800B (en) | 2013-09-04 | 2013-09-04 | map visualization method, device and processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310397955.0A CN103425800B (en) | 2013-09-04 | 2013-09-04 | map visualization method, device and processor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103425800A CN103425800A (en) | 2013-12-04 |
CN103425800B true CN103425800B (en) | 2016-08-17 |
Family
ID=49650537
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310397955.0A Active CN103425800B (en) | 2013-09-04 | 2013-09-04 | map visualization method, device and processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103425800B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105184869B (en) * | 2015-09-23 | 2018-04-03 | 中科宇图天下科技有限公司 | Building line draws the method that data show three-dimensional perspective effect in two-dimensional stage |
CN107025680B (en) * | 2016-01-29 | 2020-11-03 | 阿里巴巴(中国)有限公司 | Map rendering method and device |
CN105893588B (en) * | 2016-04-05 | 2019-04-30 | 东南大学 | A kind of production of large scale city space energy consumption numerical map and display methods |
CN105975591B (en) * | 2016-05-09 | 2019-03-12 | 东南大学 | A kind of production of urban global energy consumption numerical map and display methods and system |
CN108388249A (en) * | 2018-03-21 | 2018-08-10 | 上海木爷机器人技术有限公司 | Robotic Dynamic path planning system based on high in the clouds and method |
CN111382225B (en) * | 2020-03-18 | 2023-08-04 | 北京山维科技股份有限公司 | Method and system for storing building planning measurement result data |
CN114125696A (en) * | 2020-08-31 | 2022-03-01 | 华为技术有限公司 | Construction method, positioning method and device of fingerprint map of multi-floor building |
CN112902965A (en) * | 2021-01-28 | 2021-06-04 | 盈合(深圳)机器人与自动化科技有限公司 | Method and system for displaying cross-floor track of robot |
CN113256026A (en) * | 2021-06-21 | 2021-08-13 | 广州小鹏汽车科技有限公司 | Map display method and device, vehicle and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101996258A (en) * | 2010-11-30 | 2011-03-30 | 重庆大学 | Electronic map information grid processing and querying method facilitating quick query |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013033122A (en) * | 2011-08-02 | 2013-02-14 | Dainippon Printing Co Ltd | Building floor map presentation system |
-
2013
- 2013-09-04 CN CN201310397955.0A patent/CN103425800B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101996258A (en) * | 2010-11-30 | 2011-03-30 | 重庆大学 | Electronic map information grid processing and querying method facilitating quick query |
Non-Patent Citations (3)
Title |
---|
"基于分层分户图的房屋内部三维模型构建";韦昭宁;《中国优秀硕士学位论文全文数据库(电子期刊)基础科学辑》;20110915;第A008-12页 * |
"基于组件式GIS技术的数字校园模型研究";刘铁英等;《河北大学学报(自然科学版)》;20060331;第26卷(第2期);第213-218页 * |
"楼宇三维路径的生成、规划及表达";杜建庚;《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》;20080815;第I138-752页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103425800A (en) | 2013-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103425800B (en) | map visualization method, device and processor | |
US8928657B2 (en) | Progressive disclosure of indoor maps | |
US20170205985A1 (en) | Expanding a 3d stack of floor maps at a rate proportional to a speed of a pinch gesture | |
US8464181B1 (en) | Floor selection on an interactive digital map | |
US9134886B2 (en) | Providing indoor facility information on a digital map | |
US10817244B2 (en) | Orientation-responsive data rendering | |
US9417777B2 (en) | Enabling quick display transitions between indoor and outdoor map data | |
CN106068656B (en) | Virtual geographic perimeter composed of multiple component shapes | |
US20150103102A1 (en) | Indicating availability of indoor content on a digital map | |
US9529925B2 (en) | Method of displaying search results | |
EP2737279A1 (en) | Variable density depthmap | |
CN103984720B (en) | Tile map creation method and device based on OpenGL | |
US11367264B2 (en) | Semantic interior mapology: a tool box for indoor scene description from architectural floor plans | |
CN104134398B (en) | A kind of method and device for showing map details information | |
US10506393B2 (en) | Method of displaying location of a device | |
TW201513609A (en) | Network visualization systems and methods | |
CN103782325A (en) | Information display program and information display device | |
CN105184435A (en) | Field staff management method and system | |
CN107766476A (en) | Mass-rent data processing method, device, equipment and storage medium based on building block number evidence | |
CN111858987B (en) | Problem viewing method of CAD image, electronic equipment and related products | |
CN115496860A (en) | Flexible rule model construction method and device, terminal equipment and storage medium | |
CN112330769B (en) | Method and device for generating dotted line texture and electronic equipment | |
CN115509652A (en) | Icon display method, device, medium and product of electronic map | |
Kraak et al. | Understanding spatiotemporal patterns: Visual ordering of space and time | |
CN109635047B (en) | Information processing method, device and equipment of geographic grid and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |