CN109615678A - A kind of universal display method of indoor map - Google Patents

A kind of universal display method of indoor map Download PDF

Info

Publication number
CN109615678A
CN109615678A CN201811238494.1A CN201811238494A CN109615678A CN 109615678 A CN109615678 A CN 109615678A CN 201811238494 A CN201811238494 A CN 201811238494A CN 109615678 A CN109615678 A CN 109615678A
Authority
CN
China
Prior art keywords
data
layer
layer data
indoor map
house
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.)
Withdrawn
Application number
CN201811238494.1A
Other languages
Chinese (zh)
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 Kotei Informatics Co Ltd
Original Assignee
Wuhan Kotei Informatics 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 Kotei Informatics Co Ltd filed Critical Wuhan Kotei Informatics Co Ltd
Priority to CN201811238494.1A priority Critical patent/CN109615678A/en
Publication of CN109615678A publication Critical patent/CN109615678A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models

Abstract

The present invention relates to a kind of universal display methods of indoor map, generate the point diagram layer data, line chart layer data, face figure layer data of pbf format respectively according to original house data, the point diagram layer data, line chart layer data, face figure layer data attribute stored in the form of key-value pair, and organized by unit of floor, all floor datas of a multi-story structure are as a house data unit;Establish the incidence relation of the house data unit and 16 grades of tiles;Show Styles is configured using json formatted file, current viewport range is converted into 16 grades of tile ranges, according to the incidence relation of the house data unit and 16 grades of tiles, inquiring current viewport range needs data to be shown, draws indoor map according to the Show Styles.Uniform data format and Show Styles configuration format of the present invention digests data attribute difference in style configuration, and when drafting need to only realize that the pattern of point, line, surface draws difference.

Description

A kind of universal display method of indoor map
Technical field
The present invention relates to electronic map fields, and in particular to a kind of universal display method of indoor map.
Background technique
The development of electronic map has been no longer limited to the displaying of the traditional elements such as road, lake, greenery patches, more and more Indoor map scene be applied to electronic map field.
Indoor map scene is generally formed using multiple relatively independent multi-story structures as data cell, building by The basic elements such as face, line, point are constituted, and data element adeditive attribute can be distinctly displayed according to attribute.
Scattered data cell, display effect abundant, the different data description of attribute, are handling different indoor maps How scene reduces otherness there are a large amount of difference sex works, is a problem to be solved.
Summary of the invention
The present invention for the technical problems in the prior art, provides a kind of universal display method of indoor map, needle To different indoor map scenes, existing data, the difference of display effect provide the general data organization of one kind and display side Method.
The technical scheme to solve the above technical problems is that a kind of universal display method of indoor map, including Following steps:
Step 1, the point diagram layer data, line chart layer data, face figure layer number of pbf format are generated respectively according to original house data It is stored in the form of key-value pair according to the attribute of, the point diagram layer data, line chart layer data, face figure layer data, and is single with floor Member is organized, and all floor datas of a multi-story structure are as a house data unit;
Step 2, the incidence relation of described house data unit and 16 grades of tiles is established;
Step 3, Show Styles is configured using json formatted file, current viewport range is converted into 16 grades of tile ranges, According to the incidence relation of house data unit and 16 grades of tiles, inquiring current viewport range needs data to be shown, according to described Show Styles draws indoor map.
Further, the point diagram layer data, line chart layer data, face figure layer data and its attribute data are stored in service End.
Further, the step 2 includes opening relationships database, according to house data unit ID and tile number, is established The incidence relation of the house data unit and 16 grades of tiles.
Further, the Show Styles is configured in client.
Further, the configuration file of the Show Styles is with the definition of json format;Main body has figure layer " layers " in json Array constitute, each figure layer includes:
Essential attribute " source-layer ", is appointed as the title of data layer to be configured;
Attribute " type " describes point/line/face pattern for distinguishing the figure layer;
Optional attribute " filter " defines condition grammer.
Further, the sequence of figure layer " layers " array is the sequence that data element is drawn.
Further, the step 3 includes:
The tile of viewport range is calculated, and inquires the corresponding house data unit of tile;
It checks locally with the presence or absence of data, then obtains the house data unit from server if it does not exist;
By the face data pretreatment in the house data unit, it is converted into triangular facet information preservation;
Obtain current floor data, traverse style configuration file figure layer, successively draw face figure layer data, line chart layer data, Point diagram layer data.
The beneficial effects of the present invention are: Uniform data format and Show Styles configuration format, digest number in style configuration According to attribute difference, when drafting, need to only realize that the pattern of point, line, surface draws difference.
Detailed description of the invention
Fig. 1 is the method for the present invention flow chart;
Fig. 2 is data organization schematic diagram of the present invention;
Fig. 3 is that element of the present invention draws schematic diagram;
Fig. 4 is that indoor map of the present invention draws flow chart.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the invention.
As shown in Figure 1, the present invention provides a kind of universal display method of indoor map, comprising the following steps:
Step 1, the point diagram layer data, line chart layer data, face figure layer number of pbf format are generated respectively according to original house data It is stored in the form of key-value pair according to the attribute of, the point diagram layer data, line chart layer data, face figure layer data, and is single with floor Member is organized, and all floor datas of a multi-story structure are as a house data unit, a corresponding data File, as shown in Figure 2.
Figure layer is the set of a kind of map element with like attribute,
The describing mode of map element attribute, i.e. attribute-name=attribute value describe an attribute, such as code=in pairs 100001, the attribute of an entitled code, attribute value 100001.
Pbf:protocol buffer is a kind of structural data storage format being simple and efficient, and supports extension, across flat Platform.This format is well suited for encoding for vector data, guarantees the versatility of data application.
Point diagram layer data, line chart layer data, face figure layer data and its attribute data is stored in server-side.
Step 2, opening relationships database establishes the house data list according to house data unit ID and tile number The incidence relation of member and 16 grades of tiles.
Tile level and scale bar level be it is corresponding, the vector tile of the bigger division of tile level is more, and data are more smart Carefully.16 grades of tile levels are equivalent to the 100m of map scale, and a vector tile range is exactly whole 1/2^16, for room For this scene of interior map, the occupied area of a general building is not too large, most of all in 16 grades of tile models In enclosing, even if tile quantity will not be excessive across multiple tiles, therefore some is described with 16 grades of vector tile range The position of building is proper.
Here the method for opening relationships is using relational database, and the reason of opening relationships is easy for query vector tile packet The data contained, and viewport range can also be relatively easy to and be converted to vector tile range, can simply judge so at present Viewport range needs data to be shown.
The method of corresponding relationship: because each data file has a specific id, vector tile have again one it is similar The tile number (x, y) of coordinate, by the two opening relationships.
Step 3, as shown in figure 3, carrying out configuration in client configures Show Styles using json formatted file, forward sight will be worked as Mouth range is converted to 16 grades of tile ranges, and according to the incidence relation of figure layer data and 16 grades of tiles, inquiring current viewport range is needed Data to be shown draw indoor map according to the Show Styles.
The basic format of Show Styles configuration file is as follows:
Main body is made of the array of figure layer " layers " in json.Each figure layer has an essential attribute " source- Layer " is appointed as the title of data layer to be configured;Another attribute " type ", describes for distinguishing the figure layer Point/line/face pattern;One optional attribute " filter " defines condition grammer, such as " filter ": [" code ", "==", 100002] indicate that the data element that code attribute value is 100002 in this data layer is drawn using this pattern.
The sequence of layers array specifies the sequence of data element drafting, to influence data element gland sequence.One As gland sequence be all a gland line, line gland face adjusts the sequence of configuration style figure layer both adjustable gland sequences.
Further, the drafting process of indoor map, as shown in Figure 4, comprising:
The tile of viewport range is calculated, and inquires the corresponding house data unit of tile;
It checks locally with the presence or absence of data, then obtains the house data unit from server if it does not exist;
By the face data pretreatment in the house data unit, it is converted into triangular facet information preservation;
Obtain current floor data, traverse style configuration file figure layer, successively draw face figure layer data, line chart layer data, Point diagram layer data.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (7)

1. a kind of universal display method of indoor map, which comprises the following steps:
Step 1, the point diagram layer data, line chart layer data, face figure layer data of pbf format are generated respectively according to original house data, The point diagram layer data, line chart layer data, face figure layer data attribute stored in the form of key-value pair, and using floor as unit into Row organization and administration, all floor datas of a multi-story structure are as a house data unit;
Step 2, the incidence relation of the house data unit and 16 grades of tiles is established;
Step 3, Show Styles is configured using json formatted file, current viewport range is converted into 16 grades of tile ranges, according to The incidence relation of the house data unit and 16 grades of tiles, inquiring current viewport range needs data to be shown, according to described Show Styles draws indoor map.
2. a kind of universal display method of indoor map according to claim 1, which is characterized in that the point diagram number of plies According to, line chart layer data, face figure layer data and its attribute data be stored in server-side.
3. a kind of universal display method of indoor map according to claim 2, which is characterized in that the step 2 includes building Vertical relational database establishes the point diagram layer data, line chart layer data, face figure according to house data unit ID and tile number The incidence relation of layer data and 16 grades of tiles.
4. a kind of universal display method of indoor map according to claim 1, which is characterized in that the Show Styles is in visitor Family end is configured.
5. a kind of universal display method of indoor map according to claim 4, which is characterized in that the Show Styles is matched File is set with the definition of json format;Main body has the array of figure layer " layers " to constitute in json, and each figure layer includes:
Essential attribute " source-layer ", is appointed as the title of data layer to be configured;
Attribute " type " describes point/line/face pattern for distinguishing the figure layer;
Optional attribute " filter " defines condition grammer.
6. a kind of universal display method of indoor map according to claim 5, which is characterized in that the figure layer " layers " The sequence of array is the sequence that data element is drawn.
7. a kind of universal display method of indoor map according to claim 1, which is characterized in that the step 3 includes:
The tile of viewport range is calculated, and inquires the corresponding house data unit of tile;
It checks locally with the presence or absence of data, then obtains the house data unit from server if it does not exist;
By the face data pretreatment in the house data unit, it is converted into triangular facet information preservation;
Current floor data are obtained, style configuration file figure layer is traversed, successively draw face figure layer data, line chart layer data, point diagram Layer data.
CN201811238494.1A 2018-10-23 2018-10-23 A kind of universal display method of indoor map Withdrawn CN109615678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811238494.1A CN109615678A (en) 2018-10-23 2018-10-23 A kind of universal display method of indoor map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811238494.1A CN109615678A (en) 2018-10-23 2018-10-23 A kind of universal display method of indoor map

Publications (1)

Publication Number Publication Date
CN109615678A true CN109615678A (en) 2019-04-12

Family

ID=66002220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811238494.1A Withdrawn CN109615678A (en) 2018-10-23 2018-10-23 A kind of universal display method of indoor map

Country Status (1)

Country Link
CN (1) CN109615678A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115658838A (en) * 2022-11-18 2023-01-31 山东省地图院 Map set data generation method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105575253A (en) * 2014-10-16 2016-05-11 高德软件有限公司 Indoor map generation method and apparatus thereof
US20160253651A1 (en) * 2015-02-27 2016-09-01 Samsung Electronics Co., Ltd. Electronic device including electronic payment system and operating method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105575253A (en) * 2014-10-16 2016-05-11 高德软件有限公司 Indoor map generation method and apparatus thereof
US20160253651A1 (en) * 2015-02-27 2016-09-01 Samsung Electronics Co., Ltd. Electronic device including electronic payment system and operating method thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
余宗秋 等: "基于ArcGIS的珠海市矢量瓦片地图制作", 《测绘》 *
唐智慧 等著: "《交通运输安全技术》", 30 November 2017 *
朱荔 等: "国产平台上GIS矢量绘制的多线程改造", 《软件》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115658838A (en) * 2022-11-18 2023-01-31 山东省地图院 Map set data generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20210248816A1 (en) Embedded urban design scene emulation method and system
CN104183016B (en) A kind of construction method of quick 2.5 dimension building model
CN106599493B (en) Visualization implementation method of BIM (building information modeling) model in three-dimensional large scene
CN101673410B (en) Vector building drawing based method for reconstructing three-dimensional model
CN110111410B (en) Two-three-dimensional pipe network data organization and display method based on spatial database
CN102722885B (en) Method for accelerating three-dimensional graphic display
CN104462155B (en) A kind of method for building up and device of point of interest set membership
CN101216954A (en) A forest rendering method based on classified hierarchical deep mesh
CN103402173A (en) Touring time optimization method for tourist attractions
CN102663800A (en) City building complex and rendering method considering city image
CN107590226A (en) A kind of map vector rendering intent based on tile
CN104657968A (en) Automatic vehicle-mounted three-dimensional laser point cloud facade classification and outline extraction method
CN105160005A (en) Mass POI (Point Of Interest) map data display method based on Web browser
CN103257876B (en) The method of C3 map dynamic load
CN112419498B (en) Scheduling rendering method for massive oblique photographic data
CN113590706B (en) Visual platform based on CIM
CN109615678A (en) A kind of universal display method of indoor map
CN101339667A (en) Dummy dynamic population visibility judging method
CN109615700A (en) Three-dimension virtual reality tunnel monitoring system and its operating method
CN110390724B (en) SLAM method with instance segmentation
CN105957148A (en) Granularity balance data organization method of complicated three-dimensional building model
CN104915474A (en) Man-machine interactive system for establishing standard layer based on residential development flexible combinations
CN109726916A (en) A method of suitable for highway life cycle management intelligent health monitoring
CN104867129A (en) Light field image segmentation method
CN103162670B (en) Eave correction method in large-scale topographic map surveying and mapping interior work

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20190412

WW01 Invention patent application withdrawn after publication