CN111581310A - Method for drawing city building into three-dimensional building on two-dimensional map and application - Google Patents
Method for drawing city building into three-dimensional building on two-dimensional map and application Download PDFInfo
- Publication number
- CN111581310A CN111581310A CN202010266573.4A CN202010266573A CN111581310A CN 111581310 A CN111581310 A CN 111581310A CN 202010266573 A CN202010266573 A CN 202010266573A CN 111581310 A CN111581310 A CN 111581310A
- Authority
- CN
- China
- Prior art keywords
- dimensional
- building
- buildings
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000000007 visual effect Effects 0.000 claims abstract description 6
- 238000005065 mining Methods 0.000 claims abstract description 3
- 238000011161 development Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000010276 construction Methods 0.000 description 2
- 230000007123 defense Effects 0.000 description 2
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 210000000056 organ Anatomy 0.000 description 1
- 230000001681 protective effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/54—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/56—Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/10—Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Computer Graphics (AREA)
- Remote Sensing (AREA)
- Instructional Devices (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to a geographic information system, in particular to a method for lifting an urban building into a three-dimensional building on a two-dimensional map and application thereof. The method comprises the following steps: (1) mining coordinate data of the building; (2) the data is published into vector tile service on the GeoServer; (3) js access using leaflet-mapbox ox-gl. The invention provides a method for lifting a city building into a three-dimensional building on a two-dimensional map and application of the method in a security visual system.
Description
Technical Field
The invention relates to a geographic information system, in particular to a method for lifting an urban building into a three-dimensional building on a two-dimensional map and application thereof.
Background
The security industry in China began gradually from the 80 s in the 20 th century, and due to the limitations of economic development and infrastructure, security in China at early stages is mainly people's air defense, and the security technology is only a concept. In the early 80 s of the 20 th century, areas such as Beijing, Shanghai, Guangzhou began to look at the security industry. Especially, Shenzhen on the opening front edge of reform has become an important development area of security industry due to its unique geographic advantages and advanced electronic technology advantages. Since the 21 st century, with the development of high-tech products and digital networks, security products have changed in quality, and the security industry has gradually become an important force for supporting the development of national economy.
At present, electronic maps used by various large-scale manufacturers in the security industry are mainly two-dimensional maps, and can realize object technologies such as video monitoring, GIS, GPS navigation, target detection and identification, target tracking and the like. However, with the development of urban construction, how many high buildings stand in the city, and crisscross traffic, a severe test is generated for the current security system taking a two-dimensional map as a main part, and the limitation is seriously highlighted. Fig. 1 shows the electronic map which is the widest application range and is used most at present, and it can be seen from the figure that the buildings in the city are flat on the map and are not vivid enough in terms of display effect. Aiming at the problems, the existing technical method mainly comprises the following steps:
three-dimensional data is provided by manual modeling or unmanned aerial vehicle oblique photography, Microsoft ActiveX technology is used, C + + development language is used to combine with a set of graphics api interface (Direct 3D under Microsoft Windwos or OpenGL across platforms), and the three-dimensional model data is rendered on an IE browser. The disadvantages of this method are:
(1) the method is limited to IE browsers, and other Chrome and Firefox do not support.
(2) Modeling has a certain economic cost.
And 3DGIS technology based on urban three-dimensional modeling and GIS application is started, so that the electronic map is upgraded from two-dimensional information to three-dimensional geographic space information. The method is particularly suitable for application scenes with few user interaction and high display requirements, such as large-screen display, geographic information visualization projects and the like.
Disclosure of Invention
The first purpose of the present invention is to provide a method for raising an urban building into a three-dimensional building on a two-dimensional map, aiming at the disadvantages of the prior art.
For this reason, the above object of the present invention is achieved by the following technical solutions:
a method for lifting city buildings into three-dimensional buildings on a two-dimensional map is characterized in that: the method comprises the following steps:
(1) mining coordinate data of the building;
(2) the data is published into vector tile service on the GeoServer; and
(3) js access using leaflet-mapbox ox-gl.
While adopting the technical scheme, the invention can also adopt or combine the following technical scheme:
as a preferred technical scheme of the invention: the common data of the outline longitude and latitude coordinates of the building and the stored geographic data of the building height data comprise a main file, an index file and a dBASE table, and the format of the main file is SHP. The shape file is developed by the ESRI, and a shape file of an ESRI (environmental Systems Research institute) includes a main file, an index file, and a dBASE table. Where the suffix for the main file is.
As a preferred technical scheme of the invention: the GeoServer supports Vector Tiles. GeoServer is implemented by J2EE specified by OpenGIS Web server, map data can be conveniently published by utilizing GeoServer, users are allowed to update, delete and insert feature data, space geographic information can be easily and rapidly shared among users through GeoServer, and a vector data source is newly built and published as vector tile service.
As a preferred technical scheme of the invention: and (3) issuing a service address obtained by vector tile service on the GeoServer based on the data in the step (2) and combining xyz in the tile service address to form a new address, adding the new address serving as data into a map layer of the LEAFLET-mapbox-gl, and fusing the new address with a traditional two-dimensional tile map accessed by the LEAFLET-mapbox-gl.
The invention also aims to provide an application of the method for lifting the urban building into the three-dimensional building on the two-dimensional map in the security visual system, aiming at the defects in the prior art.
For this reason, the above object of the present invention is achieved by the following technical solutions:
the application of the method for pulling up the city building into the three-dimensional building on the two-dimensional map in the security visual system is characterized in that: the application is based on the method of raising urban buildings into three-dimensional buildings on a two-dimensional map as described above.
The invention provides a method for lifting an urban building into a three-dimensional building on a two-dimensional map and application of the method in a security visual system. According to the invention, three-dimensional data of urban buildings need to be acquired, original data is converted into vector tile data by means of a relatively new vector tile technology at the present stage, a LEAFLET-mapbox-gl is used for loading the vector tile, so that a canvas is superposed on a current two-dimensional map, and finally a three-dimensional building is rendered on the canvas. The two-dimensional map is partially overlapped with the three-dimensional building, and plays a role of increasing the quality of the map in some service scenes, for example, the map in large-screen display has better three-dimensional visual effect.
Drawings
Fig. 1 is a schematic diagram of a mainstream two-dimensional map.
FIG. 2 is a schematic diagram of a newly created vector data source.
FIG. 3 is a schematic diagram of a publish-to-vector tile service.
Fig. 4 is a schematic diagram of layer preview.
FIG. 5 is a schematic illustration of a vector tile service preview.
Fig. 6 is a schematic diagram of a three-dimensional architectural effect map.
Detailed Description
The invention is described in further detail with reference to the figures and specific embodiments.
An advanced information system is built in a certain city, wherein a plurality of functions relate to an electronic map, and a plurality of empty-proof circles are required to be built around a gymnasium in the city on the map for making a safe and protective navigation work for a recently held singing concert. In order to make a system user use a map more intuitively, a building inside the air defense circle needs to be three-dimensionally arranged.
If the geographic information data of the building already exists, the data is imported into a database (mainstream databases such as mysql and Oracle). Using an administrator account, logging in a GeoServer supporting Vector Tiles, clicking left data storage, clicking right new Vector data source, filling bigBuildings with the name of the data source after the information is filled in by the input item, and finally clicking for storage, as shown in FIG. 2. The GeoServer login default user name/password is admin/GeoServer, the Vector tile release is not supported by default, a Vector Tiles package needs to be downloaded to a GeoServer organ network, and the downloaded Vector Tiles package is placed under a lib file under a GeoServer installation directory.
GeoServer is implemented by J2EE specified by OpenGIS Web server, map data can be conveniently published by GeoServer, users are allowed to update, delete and insert feature data, space geographic information can be easily and rapidly shared among users by GeoServer, and a vector data source is newly built and published as vector tile service is shown in figures 2 and 3. After the successful release, a service address is obtained, for example: http:// localhost:800/geoserver/gwc/service/tms/1.0.0/vectorTileText%3AbigBuildings @ EPSG%3A900913@ pbf. And previewing the viewable effect graph on the GeoServer layer, and operating as shown in FIGS. 4 and 5.
The react-leaf is a modern, open source JavaScript library developed for building mobile device friendly interactive maps. Js is a set of 3d map JavaScript libraries developed based on webgl.
Similar to accessing pgis and a high-resolution map by using a exact-leaf let, it is necessary to provide a wms service address individual exact-leaf let, where the address is composed by using the service address issued in step 2 and xyz in the tile service address: http:// localhost:800/geoserver/gwc/service/tms/1.0.0/vectorTileText%3AbigBuildings @ EPSG%3A900913@ pbf/{ z }/{ x }/{ y }. pbf, then set to the value of the map object mapUrl attribute of the exact-leaf.
Clicking left layer- > right layer list point big buildings- > clicking tab page Tile Caching, checking application/vnd. mapbox-Tile below, and saving, as shown in FIG. 3.
Clicking the Layer on the left side to Preview the Layer Preview, and seeing that a row of title is bigBuildings on the right side of the page, which indicates that the service is successfully published, as shown in FIG. 4. Options are selected in the Select One drop-down box, whether the published service data is correct or not is previewed, and height data of the building can be checked, as shown in fig. 5.
So far, the construction of the vector tile service address is completed, and only the access map needs to be coded later. The example uses the act-leaf in combination with the leaf-mapbox-gl.js open source framework to access the published vector tile service, and completes the overlaying of the three-dimensional building on the two-dimensional map, and the specific effect is shown in fig. 6.
The above-described embodiments are intended to illustrate the present invention, but not to limit the present invention, and any modifications, equivalents, improvements, etc. made within the spirit of the present invention and the scope of the claims fall within the scope of the present invention.
Claims (5)
1. A method for lifting city buildings into three-dimensional buildings on a two-dimensional map is characterized in that: the method comprises the following steps:
(1) mining coordinate data of the building;
(2) the data is published into vector tile service on the GeoServer; and
(3) js access using leaflet-mapbox ox-gl.
2. The method of raising urban buildings into three-dimensional buildings on a two-dimensional map as claimed in claim 1, characterized in that: the common data of the outline longitude and latitude coordinates of the building and the stored geographic data of the building height data comprise a main file, an index file and a dBASE table, and the file format is SHP.
3. The method of raising urban buildings into three-dimensional buildings on a two-dimensional map as claimed in claim 1, characterized in that: the GeoServer supports Vector Tiles.
4. The method of raising urban buildings into three-dimensional buildings on a two-dimensional map as claimed in claim 1, characterized in that: and (3) issuing a service address obtained by vector tile service on the GeoServer based on the data in the step (2) and combining xyz in the tile service address to form a new address, adding the new address serving as data into a map layer of the LEAFLET-mapbox-gl, and fusing the new address with a traditional two-dimensional tile map accessed by the LEAFLET-mapbox-gl.
5. The application of the method for pulling up the city building into the three-dimensional building on the two-dimensional map in the security visual system is characterized in that: the application is based on the method of raising urban buildings into three-dimensional buildings on a two-dimensional map according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010266573.4A CN111581310A (en) | 2020-04-07 | 2020-04-07 | Method for drawing city building into three-dimensional building on two-dimensional map and application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010266573.4A CN111581310A (en) | 2020-04-07 | 2020-04-07 | Method for drawing city building into three-dimensional building on two-dimensional map and application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111581310A true CN111581310A (en) | 2020-08-25 |
Family
ID=72113540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010266573.4A Pending CN111581310A (en) | 2020-04-07 | 2020-04-07 | Method for drawing city building into three-dimensional building on two-dimensional map and application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111581310A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112269849A (en) * | 2020-10-31 | 2021-01-26 | 武汉中海庭数据技术有限公司 | Three-dimensional map display method, system, electronic equipment and storage medium |
CN112269847A (en) * | 2020-10-31 | 2021-01-26 | 武汉中海庭数据技术有限公司 | Real-time display method and system of high-precision map data and electronic equipment |
CN112927327A (en) * | 2021-03-24 | 2021-06-08 | 苏州市生物医药产业创新中心 | Three-dimensional visualization method for data map of biological medicine platform |
CN114387413A (en) * | 2022-01-14 | 2022-04-22 | 华戎信息产业有限公司 | Three-dimensional map generation method and system based on visualization engine |
CN114445312A (en) * | 2022-01-19 | 2022-05-06 | 北京百度网讯科技有限公司 | Map data fusion method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180182041A1 (en) * | 2016-12-27 | 2018-06-28 | Aon Global Operations Ltd (Singapore Branch) | Systems and Methods for Wide-Scale Mapping of Neighborhood Property Geolocations and Estimating Property Values Thereof |
CN109299165A (en) * | 2018-09-20 | 2019-02-01 | 南京中新赛克科技有限责任公司 | Massive spatial data WebGIS based on OpenLayers4 visualizes solution |
CN110489499A (en) * | 2019-05-31 | 2019-11-22 | 武汉大学 | A kind of on-line intelligence special map plotting method |
CN110633307A (en) * | 2019-08-19 | 2019-12-31 | 北京建筑大学 | Spatio-temporal analysis method for urban public bicycles connected to subway |
-
2020
- 2020-04-07 CN CN202010266573.4A patent/CN111581310A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180182041A1 (en) * | 2016-12-27 | 2018-06-28 | Aon Global Operations Ltd (Singapore Branch) | Systems and Methods for Wide-Scale Mapping of Neighborhood Property Geolocations and Estimating Property Values Thereof |
CN109299165A (en) * | 2018-09-20 | 2019-02-01 | 南京中新赛克科技有限责任公司 | Massive spatial data WebGIS based on OpenLayers4 visualizes solution |
CN110489499A (en) * | 2019-05-31 | 2019-11-22 | 武汉大学 | A kind of on-line intelligence special map plotting method |
CN110633307A (en) * | 2019-08-19 | 2019-12-31 | 北京建筑大学 | Spatio-temporal analysis method for urban public bicycles connected to subway |
Non-Patent Citations (1)
Title |
---|
LIMZGISER: "矢量切片绘制(mapbox-gl+geoserver)" * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112269849A (en) * | 2020-10-31 | 2021-01-26 | 武汉中海庭数据技术有限公司 | Three-dimensional map display method, system, electronic equipment and storage medium |
CN112269847A (en) * | 2020-10-31 | 2021-01-26 | 武汉中海庭数据技术有限公司 | Real-time display method and system of high-precision map data and electronic equipment |
CN112927327A (en) * | 2021-03-24 | 2021-06-08 | 苏州市生物医药产业创新中心 | Three-dimensional visualization method for data map of biological medicine platform |
CN112927327B (en) * | 2021-03-24 | 2023-11-03 | 苏州市生物医药产业创新中心 | Three-dimensional visualization method for biomedical platform data map |
CN114387413A (en) * | 2022-01-14 | 2022-04-22 | 华戎信息产业有限公司 | Three-dimensional map generation method and system based on visualization engine |
CN114445312A (en) * | 2022-01-19 | 2022-05-06 | 北京百度网讯科技有限公司 | Map data fusion method and device, electronic equipment and storage medium |
CN114445312B (en) * | 2022-01-19 | 2024-03-01 | 北京百度网讯科技有限公司 | Map data fusion method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111581310A (en) | Method for drawing city building into three-dimensional building on two-dimensional map and application | |
CN110018742B (en) | Construction method of network virtual travel system | |
CN101908232B (en) | Interactive scene simulation system and scene virtual simulation method | |
CN105701103B (en) | Three-dimensional application system based on geographic information | |
CN111354084B (en) | Network geographic information service system based on three-dimensional model tiles | |
JP3212113B2 (en) | Map information display method and device | |
CN110189405B (en) | Live-action three-dimensional modeling method considering building density | |
KR101450133B1 (en) | System and Method for Providing Underground Utilities Cross Section Information based on Augmented Reality | |
CN107153744B (en) | Underground three-dimensional pipeline decision making system | |
CN108572951B (en) | Mapping data three-dimensional display system based on geographic information | |
CN108388995B (en) | Method and system for establishing road asset management system | |
CN106611438A (en) | Method and device for updating and slicing local area of three-dimensional simulation map | |
CN116912437A (en) | Live-action three-dimensional visualization method and system based on semantic point cloud | |
Bi et al. | Research on the construction of City information modelling basic platform based on multi-source data | |
CN108595079A (en) | A kind of project of transmitting and converting electricity surveying method shared based on multiple terminals cloud platform | |
CN103985249A (en) | Road elevation information extracting method and device | |
CN117931810B (en) | Structured management method and system for spatial image data | |
CN114398457A (en) | A method for accessing, displaying and managing MapGIS and ArcGIS services based on OGC standards | |
CN111063003B (en) | Method and system for making mine distribution map | |
CN107291820A (en) | A kind of boundary marker approaches to IM based on full-view image | |
CN114661841A (en) | Electronic map publishing method, device, equipment and electronic map scheduling method | |
CN107589924A (en) | A kind of quick methods of exhibiting in remotely-sensed data mobile terminal of five layer of ten Pyatyi institutional framework | |
CN117689808A (en) | City data integrated management method, system, equipment and medium based on CIM | |
US7146275B2 (en) | Digital map generating system and its method | |
CN113450619A (en) | Fire-fighting smoke and heat training hall application three-dimensional geographic information simulation drill system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200825 |