前言

往往好多事情是需求推动的,正好一个网友在群里问到”怎么让Cesium加载GeoJSON的白膜并贴在地形上?“,联系到他,要了他的数据,完成了代码并测试通过。正好出差,而且一个人工作之余无事(加之西宁不知咋搞的,宾馆旁的市政作业挖掘机22:35还不歇息,可谓是惊天动地啊),通过从数据的获取到加载进行研究并作出记录,希望能帮到更多的人!

1. QGIS离线GeoJSON白膜数据
《QGIS离线数据或瓦片并使用Cesium调用离线瓦片》已经写了相关内容,可惜当时未导出GeoJSON数据,此次基本按照当时得操作步骤进行数据离线。将重要数据作为记录。

  • 打开OpenStreetMap,框选下载数据,移除相关不相关数据


  • 将其导出为GeoJSON
  • 移除非相关的面状要素,右键Toggle Editing,删除院子等面状要素,然后save
  • 添加楼层floor字段,并编辑所有数据,至此制作完成

2. Cesium加载并根据楼层高度拉伸

  • 代码
<!DOCTYPE html>
<html lang="en"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><meta name="theme-color" content="#000000" /><link href="../../Cesium/Widgets/widgets.css" rel="stylesheet"><script type="text/javascript" src="../../Cesium/Cesium.js"></script><script src="../config.js"></script><title>building</title>
</head><body style="margin: 0px;width:100%;height:100%;"><div id="cesiumContainer" style="width:100%;height:100%;position:absolute;"></div>
</body>
<script>//created by onegiser at 2021-10-25const key='天地图key'const viewer = new Cesium.Viewer('cesiumContainer', {imageryProviderViewModels: [new Cesium.ProviderViewModel({name: "天地图影像",iconUrl: "/imgs/map/tdt_img.jpg",creationFunction: () => {const imgImageryProvider = new Cesium.WebMapTileServiceImageryProvider({url: 'http://t{s}.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={TileMatrix}&TILEROW={TileRow}&TILECOL={TileCol}&tk='+key,layer: 'img_w',style: 'default',format: 'tiles',tileMatrixSetID: 'GoogleMapsCompatible',subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],minimumLevel: 0,maximumLevel: 18})return [imgImageryProvider]}})],terrainProvider: new Cesium.CesiumTerrainProvider({url: 'https://www.supermapol.com/realspace/services/3D-stk_terrain/rest/realspace/datas/info/data/path',invisibility: true})})const promise = Cesium.GeoJsonDataSource.load('../datas/jzw.geojson')promise.then((dataSource) => {const entities = dataSource.entities.values;for (let i = 0; i < entities.length; i++) {const entity = entities[i];const { properties, polygon } = entitylet extrudedHeight = 300if (properties && properties.floor._value) {extrudedHeight = properties.floor._value * 3}let color = "#fff2cc"if (extrudedHeight <= 50) {color = "#FFFACD"} else if (extrudedHeight <= 100) {color = "#CAE1FF"} else if (extrudedHeight <= 300) {color = "#CD6839"}entity.polygon = new Cesium.PolygonGraphics({hierarchy: polygon.hierarchy,heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,extrudedHeight,material: Cesium.Color.fromCssColorString(color),})viewer.entities.add(entity)}})const x = 103.8768888, y = 36.0348739viewer.camera.flyTo({destination: Cesium.Cartesian3.fromDegrees(x, y, 3000),});</script></html>
  • 效果示意图

  1. 附数据内容
{"type": "FeatureCollection",
"name": "jzw",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "406993124", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "apartments", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 30 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8755367, 36.0337026 ], [ 103.8758049, 36.0336505 ], [ 103.8757727, 36.0335422 ], [ 103.8757174, 36.033553 ], [ 103.8756871, 36.0334508 ], [ 103.8755074, 36.0334856 ], [ 103.8755377, 36.0335878 ], [ 103.8755045, 36.0335943 ], [ 103.8755367, 36.0337026 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "406993128", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "apartments", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 32 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8759819, 36.0338328 ], [ 103.8762501, 36.0337808 ], [ 103.876218, 36.0336725 ], [ 103.8761626, 36.0336832 ], [ 103.8761323, 36.033581 ], [ 103.8759526, 36.0336159 ], [ 103.875983, 36.0337181 ], [ 103.8759497, 36.0337245 ], [ 103.8759819, 36.0338328 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "415840930", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 16 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8746381, 36.0341949 ], [ 103.8751879, 36.0340778 ], [ 103.8751569, 36.0339824 ], [ 103.874607, 36.0340996 ], [ 103.8746381, 36.0341949 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "415841054", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 12 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8751451, 36.0335984 ], [ 103.8750347, 36.0332965 ], [ 103.8748874, 36.0333317 ], [ 103.8749976, 36.0336333 ], [ 103.8743731, 36.0337826 ], [ 103.8743394, 36.0336904 ], [ 103.8741776, 36.0337291 ], [ 103.8742561, 36.033944 ], [ 103.8751899, 36.0337208 ], [ 103.8751451, 36.0335984 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "464541339", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 34 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8780282, 36.0346422 ], [ 103.8781669, 36.0346098 ], [ 103.8780738, 36.0343492 ], [ 103.8779351, 36.0343816 ], [ 103.8780282, 36.0346422 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "464541341", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 100 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8773037, 36.0347327 ], [ 103.8774205, 36.0347054 ], [ 103.8773988, 36.0346448 ], [ 103.877422, 36.0346394 ], [ 103.8773758, 36.0345103 ], [ 103.8772359, 36.034543 ], [ 103.8773037, 36.0347327 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "464541343", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 6 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8777194, 36.0340346 ], [ 103.877755, 36.0340263 ], [ 103.8778594, 36.0343186 ], [ 103.8780533, 36.0342733 ], [ 103.8778979, 36.0338385 ], [ 103.8776039, 36.0339072 ], [ 103.8776159, 36.0339406 ], [ 103.8770869, 36.0340643 ], [ 103.8771273, 36.0341775 ], [ 103.8777208, 36.0340388 ], [ 103.8777194, 36.0340346 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "464541344", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 6 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8772241, 36.0344873 ], [ 103.8777766, 36.0343581 ], [ 103.8777362, 36.034245 ], [ 103.8771836, 36.0343741 ], [ 103.8772241, 36.0344873 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "464541345", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 8 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8784125, 36.0352433 ], [ 103.8782967, 36.034911 ], [ 103.8781484, 36.0349448 ], [ 103.8781999, 36.0350924 ], [ 103.8782173, 36.0350884 ], [ 103.8782495, 36.0351809 ], [ 103.8777285, 36.0352997 ], [ 103.8777735, 36.0354287 ], [ 103.8783853, 36.0352892 ], [ 103.8784125, 36.0352433 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "464541346", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 16 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8775717, 36.0353123 ], [ 103.8777261, 36.0352771 ], [ 103.8776684, 36.0351114 ], [ 103.8776859, 36.0351074 ], [ 103.8777081, 36.0351712 ], [ 103.8781203, 36.0350772 ], [ 103.8780762, 36.0349506 ], [ 103.8776465, 36.0350486 ], [ 103.877492, 36.0350838 ], [ 103.8775717, 36.0353123 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "464541347", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 13 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8768612, 36.0355515 ], [ 103.8768695, 36.0355688 ], [ 103.8768846, 36.0355828 ], [ 103.8769046, 36.0355919 ], [ 103.8769272, 36.0355948 ], [ 103.8769498, 36.0355914 ], [ 103.876957, 36.0356116 ], [ 103.8774077, 36.0355062 ], [ 103.8773609, 36.0353754 ], [ 103.8769683, 36.0354671 ], [ 103.8769558, 36.0354321 ], [ 103.8769735, 36.035428 ], [ 103.8769063, 36.0352399 ], [ 103.8769614, 36.0352271 ], [ 103.8769671, 36.0352429 ], [ 103.8774641, 36.0351267 ], [ 103.8774202, 36.0350039 ], [ 103.8767269, 36.035166 ], [ 103.8768279, 36.0354487 ], [ 103.8768163, 36.0354514 ], [ 103.8768528, 36.0355535 ], [ 103.8768612, 36.0355515 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "464541351", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 4 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8772486, 36.0348422 ], [ 103.8772048, 36.0347198 ], [ 103.8766284, 36.0348545 ], [ 103.8767132, 36.0350917 ], [ 103.8768371, 36.0350628 ], [ 103.8767961, 36.034948 ], [ 103.8772486, 36.0348422 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "464541352", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 8 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8771433, 36.0345469 ], [ 103.8770996, 36.0344244 ], [ 103.8765231, 36.0345591 ], [ 103.8766079, 36.0347964 ], [ 103.8767318, 36.0347674 ], [ 103.8766908, 36.0346526 ], [ 103.8771433, 36.0345469 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "464541353", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 9 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8768909, 36.034239 ], [ 103.8769413, 36.0343801 ], [ 103.877094, 36.0343444 ], [ 103.877042, 36.0341988 ], [ 103.8770166, 36.0342048 ], [ 103.8769732, 36.0340834 ], [ 103.8763984, 36.0342177 ], [ 103.8764196, 36.0342772 ], [ 103.8764047, 36.0342807 ], [ 103.8764798, 36.0344909 ], [ 103.8766401, 36.0344534 ], [ 103.8766064, 36.0343589 ], [ 103.876589, 36.034363 ], [ 103.8765714, 36.0343137 ], [ 103.8768909, 36.034239 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "466179377", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 8 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.877031, 36.0357647 ], [ 103.8771193, 36.0357449 ], [ 103.8771692, 36.0358909 ], [ 103.8772706, 36.036187 ], [ 103.8771082, 36.0362234 ], [ 103.8769809, 36.0358516 ], [ 103.8769791, 36.0358259 ], [ 103.8769877, 36.0358012 ], [ 103.8770056, 36.03578 ], [ 103.877031, 36.0357647 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "466179378", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 8 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8771692, 36.0358909 ], [ 103.8775037, 36.035816 ], [ 103.8774537, 36.03567 ], [ 103.8771193, 36.0357449 ], [ 103.8771692, 36.0358909 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "466179380", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 8 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8777575, 36.0355636 ], [ 103.8775712, 36.0356053 ], [ 103.8776075, 36.0357112 ], [ 103.8775931, 36.0357145 ], [ 103.8777247, 36.0360988 ], [ 103.8778714, 36.036066 ], [ 103.8777449, 36.0356966 ], [ 103.8777989, 36.0356845 ], [ 103.8777575, 36.0355636 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "466179387", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 40 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8766499, 36.0357566 ], [ 103.8763238, 36.035823 ], [ 103.8763509, 36.03591 ], [ 103.8766378, 36.0358516 ], [ 103.8767098, 36.036083 ], [ 103.8768492, 36.0360546 ], [ 103.8767767, 36.0358216 ], [ 103.8766499, 36.0357566 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "466179389", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": "\"addr:housenumber\"=>\"7\",\"height\"=>\"30\"", "floor": 30 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8761593, 36.035982 ], [ 103.8761284, 36.0358827 ], [ 103.8759365, 36.0359218 ], [ 103.8759296, 36.0358996 ], [ 103.8757255, 36.0359412 ], [ 103.8757149, 36.0359072 ], [ 103.8754953, 36.0359519 ], [ 103.8755291, 36.0360606 ], [ 103.8757483, 36.036016 ], [ 103.8757532, 36.0360317 ], [ 103.8759555, 36.0359905 ], [ 103.875966, 36.0360242 ], [ 103.8761258, 36.0359917 ], [ 103.876172, 36.0361404 ], [ 103.8762874, 36.0361169 ], [ 103.8762403, 36.0359655 ], [ 103.8761593, 36.035982 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "695662453", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 20 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8783064, 36.0355553 ], [ 103.878428, 36.0359106 ], [ 103.8786141, 36.0358689 ], [ 103.8784924, 36.0355137 ], [ 103.878481, 36.03549 ], [ 103.8784608, 36.0354705 ], [ 103.8784339, 36.0354572 ], [ 103.8784032, 36.0354517 ], [ 103.878372, 36.0354544 ], [ 103.8783434, 36.0354651 ], [ 103.8783206, 36.0354826 ], [ 103.878306, 36.0355051 ], [ 103.8783011, 36.0355303 ], [ 103.8783064, 36.0355553 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "695662522", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 32 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8760033, 36.0348803 ], [ 103.8763281, 36.0348086 ], [ 103.876293, 36.0347046 ], [ 103.8759682, 36.0347763 ], [ 103.8760033, 36.0348803 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "695662523", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 4 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8753086, 36.0345246 ], [ 103.8759879, 36.0343747 ], [ 103.875955, 36.0342773 ], [ 103.8752758, 36.0344273 ], [ 103.8753086, 36.0345246 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "695662524", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 6 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8750593, 36.0345415 ], [ 103.8751476, 36.034522 ], [ 103.8751236, 36.0344509 ], [ 103.8750353, 36.0344704 ], [ 103.8750593, 36.0345415 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "695662527", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 20 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8749948, 36.0348456 ], [ 103.8752073, 36.0347987 ], [ 103.8751557, 36.0346461 ], [ 103.8750478, 36.0346699 ], [ 103.8749433, 36.034693 ], [ 103.8749948, 36.0348456 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "695662528", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 20 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8754401, 36.0350213 ], [ 103.8757814, 36.034946 ], [ 103.8757271, 36.0347849 ], [ 103.8753857, 36.0348603 ], [ 103.8754401, 36.0350213 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "695662529", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 20 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8753381, 36.0355202 ], [ 103.8762125, 36.0353271 ], [ 103.8761634, 36.0351816 ], [ 103.875289, 36.0353746 ], [ 103.8753381, 36.0355202 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "716709408", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 20 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8775268, 36.0349584 ], [ 103.8780036, 36.034847 ], [ 103.8779372, 36.0346613 ], [ 103.8774604, 36.0347726 ], [ 103.8775268, 36.0349584 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "716709415", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 8 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8784468, 36.0337828 ], [ 103.8789906, 36.0336527 ], [ 103.8789564, 36.0335594 ], [ 103.8784127, 36.0336895 ], [ 103.8784468, 36.0337828 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "716709416", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 8 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8785085, 36.0341103 ], [ 103.8791611, 36.0339542 ], [ 103.8791254, 36.0338566 ], [ 103.8784728, 36.0340127 ], [ 103.8785085, 36.0341103 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "716709417", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 8 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8791151, 36.0345462 ], [ 103.8786821, 36.0346498 ], [ 103.8787204, 36.0347545 ], [ 103.8791534, 36.0346509 ], [ 103.8791254, 36.0345745 ], [ 103.8794563, 36.0344954 ], [ 103.8794178, 36.0343901 ], [ 103.8790869, 36.0344693 ], [ 103.8791151, 36.0345462 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "716709418", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 13 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8786077, 36.0343966 ], [ 103.8789956, 36.0343039 ], [ 103.8789645, 36.0342188 ], [ 103.8785766, 36.0343116 ], [ 103.8786077, 36.0343966 ] ] ] ] } },
{ "type": "Feature", "properties": { "osm_id": null, "osm_way_id": "716709442", "name": null, "type": null, "aeroway": null, "amenity": null, "admin_level": null, "barrier": null, "boundary": null, "building": "yes", "craft": null, "geological": null, "historic": null, "land_area": null, "landuse": null, "leisure": null, "man_made": null, "military": null, "natural": null, "office": null, "place": null, "shop": null, "sport": null, "tourism": null, "other_tags": null, "floor": 50 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 103.8774464, 36.0335768 ], [ 103.8778755, 36.0334813 ], [ 103.8778323, 36.0333543 ], [ 103.8774032, 36.0334498 ], [ 103.8774464, 36.0335768 ] ] ] ] } }
]
}

QGIS离线GeoJSON数据,使用Cesium加载并根据楼层高度拉伸(weixin公众号【图说GIS】)相关推荐

  1. Cesium加载天地图山东WMTS服务(weixin公众号【图说GIS】)

    前言 有网友在群里说天地图山东的山东省线划电子地图暗色版服务加载不成功,抱着好奇及帮助别人的心态去试了下,结果可以,并记录下. 实现过程 查看服务元数据 访问http://124.128.48.215 ...

  2. QGIS分别下载天地图和OSM道路数据(weixin公众号【图说GIS】)

    前言 有人问怎么下载道路数据?本文介绍的下载源为天地图和OSM,个人还是推荐天地图,OSM的属性不全面,加之所有的矢量数据都下载下来了,还要处理,比较麻烦. 其余QGIS数据制作相关的可看下文: &l ...

  3. Cesium加载建筑物模型(shp转Geojson\3Dtiles)

    本文主要介绍cesium加载Geojson和3dtile格式的建筑物模型文件,除此之外还介绍了Cesium工具栏的屏蔽方法.天地图的加载.地球初始状态设置等几个部分的内容,其中又不乏参照.优化诸如:  ...

  4. Cesium加载离线地图和离线地形

    文章目录 前言 一.Cesium加载离线地图 1.1 下载数据 2.2 数据处理 2.3 地图发布 2.4下载速度改进 二.Cesium加载离线地形 2.1 下载数据 2.2 数据处理 2.3 地形发 ...

  5. Cesium 加载离线地图服务

    Cesium 可以加载自定义的地图服务,一般在私有云上应用比较广. 原始地图数据有很多地方都可以下载.比如常用的下载工具,付费的有水经注.91助手等,还有国家空间地理服务的官网上也有可用的数据.假设你 ...

  6. cesium加载GeoJSON

    cesium加载GeoJSON 介绍GeoJSON GeoJson是Json数据(键值对),它是针对地理数据的一个变种 具体的参考文档:GeoJSON 面要素 多边形json数据 {"typ ...

  7. 首次使用Cesium加载3D数据不成功

    接此: https://blog.csdn.net/bcbobo21cn/article/details/110454547 参阅相关教程:Cesium加载3D数据是通过3D Tiles进行: 3D ...

  8. cesium 加载geojson 贴3dtiles

    问题描述: 因业务需求,需要在3dtiles上加载规划用地图斑,图斑格式为geojson,加载geojson时发现设置entity--polygon的classificationType为CESIUM ...

  9. Cesium加载大数据量地下管线

    Cesium加载大数据量地下管线 Cesium优化加载 管线加载 管井.摄像头.交通信号灯等模型加载 与倾斜摄影模型结合加载 Cesium优化加载 管线.管井.路灯.交通信号灯.接电箱等模型使用Pri ...

最新文章

  1. php 执行命令屏幕输出捕捉,在php执行linux命令时显示所有输出
  2. 转:精通JS正则表达式
  3. mysql中的钱null_MySQL数据库中null的知识点总结
  4. 验证必须是数字php,Element 中表单非必填数据项 必须为数字的验证问题
  5. 【海报设计灵感】潮翻天的波普艺术海报设计
  6. mybatis中存储过程的调用
  7. python中int对象不可迭代_python - 情感分析接收错误:'int'对象不可迭代_python-3.x_酷徒编程知识库...
  8. “强化学习说白了,是建立分布到分布之间的映射”?数学角度谈谈个人观点
  9. java复习【笔试可能常见】
  10. 一种特殊的多语言解决方案
  11. 用拉普拉斯变换求零状态响应_什么是UPS?为什么用UPS?关于UPS电源的知识都在这里!...
  12. java分页数据再次进行分页操作
  13. cocos2dx 基础
  14. java开发kpi考核_如何量化考核技术人的KPI?
  15. SQL Server读写分离研究
  16. 蜜罐 计算机术语,检测虚机和蜜罐方法的概念 -电脑资料
  17. Javascript对象基础讲解
  18. Delphi TStringList DBRichEdit 删除尾部多余换页符
  19. axure sketch 对比_Sketch to Axure RP插件下载
  20. JAVA学习:将字符串转成数字

热门文章

  1. 计算机信息专业考研院校排名,2017年电子信息工程专业考研院校排名
  2. 802.11 - (1)
  3. 【转载】如何学习STM32?STM32入门学习经验总结
  4. 夏普电视显示服务器连线异常,夏普电视黑屏的原因?夏普电视常见故障!
  5. IND-CPA(选择明文攻击下的不可区分性)
  6. 【Python】通过构造树结构解析查询条件
  7. iOS KeyChain使用
  8. 格林纳达常驻WTO大使孙宇晨会见法国驻联合国日内瓦办事处代表
  9. Google drive下载失败,网络错误
  10. BI领导驾驶舱的功能特点