分享
查看: 2720|回复: 2

[求助] 我在做3D城市搭建时,导入了 geojson 代码,但是导入后,只有面的参数,没有高度的参数,如何添加才能看见建筑物的高度??

[复制链接]

我在做3D城市搭建时,导入了 geojson 代码,但是导入后,只有面的参数,没有高度的参数,如何添加才能看见建筑物的高度??

发表于 2019-10-20 13:53:16 来自 求助 阅读模式 倒序浏览
zzv_icon2720 zzr_icon2 查看全部

{

  "type": "FeatureCollection",

  "features": [

    {

      "type": "Feature",

      "properties": {

        "stroke": "#555555",

        "stroke-width": 2,

        "stroke-opacity": 1,

        "fill": "#555555",

        "fill-opacity": 0.5,

        "height": 3

      },

      "geometry": {

        "type": "Polygon",

        "coordinates": [

          [

            [

              106.08470857143402,

              30.79563106747597

            ],

            [

              106.08457982540129,

              30.795695579865875

            ],

            [

              106.08448326587677,

              30.79559881126481

            ],

            [

              106.08438670635223,

              30.795603419295638

            ],

            [

              106.084343791008,

              30.795538906843905

            ],

            [

              106.08430087566376,

              30.795557338977392

            ],

            [

              106.08416140079498,

              30.795336153142333

            ],

            [

              106.0842579603195,

              30.79529007269595

            ],

            [

              106.08413994312286,

              30.79517026343204

            ],

            [

              106.08430087566376,

              30.79505967013282

            ],

            [

              106.08440816402435,

              30.795188695636213

            ],

            [

              106.08430624008179,

              30.795234776131167

            ],

            [

              106.08452081680296,

              30.79552969077584

            ],

            [

              106.08460128307341,

              30.79549282649472

            ],

            [

              106.08470857143402,

              30.79563106747597

            ]

          ]

        ]

      }

    },

    {

      "type": "Feature",

      "properties": {

        "stroke": "#555555",

        "stroke-width": 2,

        "stroke-opacity": 1,

        "fill": "#555555",

        "fill-opacity": 0.5,

        "height": 1

      },

      "geometry": {

        "type": "Polygon",

        "coordinates": [

          [

            [

              106.08422309160233,

              30.79496750895296

            ],

            [

              106.08409434556961,

              30.795038933875066

            ],

            [

              106.08402997255325,

              30.794953684768345

            ],

            [

              106.08406215906143,

              30.794928340424754

            ],

            [

              106.08402729034424,

              30.794879955750243

            ],

            [

              106.08397096395493,

              30.79489838801006

            ],

            [

              106.08390122652054,

              30.79482235491548

            ],

            [

              106.0840380191803,

              30.794732497544373

            ],

            [

              106.08406215906143,

              30.794764754046234

            ],

            [

              106.08408361673355,

              30.79474632176077

            ],

            [

              106.08421504497528,

              30.794914516234517

            ],

            [

              106.08419358730316,

              30.794930644456276

            ],

            [

              106.08422309160233,

              30.79496750895296

            ]

          ]

        ]

      }

    },

    {

      "type": "Feature",

      "properties": {

        "stroke": "#555555",

        "stroke-width": 2,

        "stroke-opacity": 1,

        "fill": "#555555",

        "fill-opacity": 0.5,

        "height": 1

      },

      "geometry": {

        "type": "Polygon",

        "coordinates": [

          [

            [

              106.0840380191803,

              30.794702545068663

            ],

            [

              106.08392268419266,

              30.794764754046234

            ],

            [

              106.08360886573792,

              30.794370763175134

            ],

            [

              106.08372151851654,

              30.794287817522825

            ],

            [

              106.0840380191803,

              30.794702545068663

            ]

          ]

        ]

      }

    },

    {

      "type": "Feature",

      "properties": {},

      "geometry": {

        "type": "Polygon",

        "coordinates": [

          [

            [

              106.08365043997765,

              30.794431820345668

            ],

            [

              106.08358070254326,

              30.794461772905727

            ],

            [

              106.08363434672354,

              30.79453319820357

            ],

            [

              106.08355522155762,

              30.794580431032674

            ],

            [

              106.0834613442421,

              30.79446522896975

            ],

            [

              106.08359947800636,

              30.794371915197562

            ],

            [

              106.08365043997765,

              30.794431820345668

            ]

          ]

        ]

      }

    },

    {

      "type": "Feature",

      "properties": {

        "stroke": "#555555",

        "stroke-width": 2,

        "stroke-opacity": 1,

        "fill": "#555555",

        "fill-opacity": 0.5,

        "height": 0.5

      },

      "geometry": {

        "type": "Polygon",

        "coordinates": [

          [

            [

              106.08375906944275,

              30.794635727973855

            ],

            [

              106.08364641666412,

              30.7947002410317

            ],

            [

              106.08356326818466,

              30.794587343152067

            ],

            [

              106.08366787433624,

              30.79451591789445

            ],

            [

              106.08375906944275,

              30.794635727973855

            ]

          ]

        ]

      }

    },

    {

      "type": "Feature",

      "properties": {

        "stroke": "#555555",

        "stroke-width": 2,

        "stroke-opacity": 1,

        "fill": "#555555",

        "fill-opacity": 0.5,

        "height": 0.8

      },

      "geometry": {

        "type": "Polygon",

        "coordinates": [

          [

            [

              106.0837322473526,

              30.794838483152706

            ],

            [

              106.08401656150816,

              30.795193303686705

            ],

            [

              106.08392536640167,

              30.795230168082657

            ],

            [

              106.08363568782806,

              30.79489838801006

            ],

            [

              106.0837322473526,

              30.794838483152706

            ]

          ]

        ]

      }

    },

    {

      "type": "Feature",

      "properties": {

        "stroke": "#555555",

        "stroke-width": 2,

        "stroke-opacity": 1,

        "fill": "#555555",

        "fill-opacity": 0.5,

        "height": 2.5

      },

      "geometry": {

        "type": "Polygon",

        "coordinates": [

          [

            [

              106.08395218849182,

              30.795432922007787

            ],

            [

              106.08394011855125,

              30.79545020215208

            ],

            [

              106.08391731977463,

              30.795475546358087

            ],

            [

              106.0838958621025,

              30.795497434530635

            ],

            [

              106.08386904001236,

              30.795517018680798

            ],

            [

              106.08383551239966,

              30.795536602826967

            ],

            [

              106.08381003141403,

              30.795543514877608

            ],

            [

              106.0836973786354,

              30.795629915468634

            ],

            [

              106.08366653323174,

              30.795609179333855

            ],

            [

              106.08361154794692,

              30.7956494995918

            ],

            [

              106.08354181051254,

              30.795591899218138

            ],

            [

              106.08360350131989,

              30.79554121086077

            ],

            [

              106.08357533812523,

              30.795513562654588

            ],

            [

              106.08375906944275,

              30.795344217218148

            ],

            [

              106.08389049768448,

              30.795250904299188

            ],

            [

              106.08393207192421,

              30.79530965688835

            ],

            [

              106.08394280076027,

              30.79531311292189

            ],

            [

              106.08396425843239,

              30.795321176999664

            ],

            [

              106.08398035168648,

              30.795341913196552

            ],

            [

              106.08398973941803,

              30.795366105420594

            ],

            [

              106.08398169279099,

              30.795386841607787

            ],

            [

              106.0839655995369,

              30.795402969750313

            ],

            [

              106.08394280076027,

              30.79541564186039

            ],

            [

              106.08395218849182,

              30.795432922007787

            ]

          ]

        ]

      }

    },

    {

      "type": "Feature",

      "properties": {

        "stroke": "#555555",

        "stroke-width": 2,

        "stroke-opacity": 1,

        "fill": "#555555",

        "fill-opacity": 0.5,

        "height": 0.5

      },

      "geometry": {

        "type": "Polygon",

        "coordinates": [

          [

            [

              106.08395487070082,

              30.79572553203218

            ],

            [

              106.08381807804108,

              30.795799260401754

            ],

            [

              106.08370274305344,

              30.795640283534343

            ],

            [

              106.08382612466812,

              30.795584987170983

            ],

            [

              106.08395487070082,

              30.79572553203218

            ]

          ]

        ]

      }

    },

    {

      "type": "Feature",

      "properties": {

        "stroke": "#555555",

        "stroke-width": 2,

        "stroke-opacity": 1,

        "fill": "#555555",

        "fill-opacity": 0.5,

        "height": 1.5

      },

      "geometry": {

        "type": "Polygon",

        "coordinates": [

          [

            [

              106.08418822288513,

              30.796013533154934

            ],

            [

              106.08372688293457,

              30.79626697342923

            ],

            [

              106.083624958992,

              30.79613794937309

            ],

            [

              106.0840916633606,

              30.795893724792677

            ],

            [

              106.08418822288513,

              30.796013533154934

            ]

          ]

        ]

      }

    },

    {

      "type": "Feature",

      "properties": {

        "stroke": "#555555",

        "stroke-width": 2,

        "stroke-opacity": 1,

        "fill": "#555555",

        "fill-opacity": 0.5,

        "height": 1

      },

      "geometry": {

        "type": "Polygon",

        "coordinates": [

          [

            [

              106.0842579603195,

              30.79596745303327

            ],

            [

              106.08416810631752,

              30.795874140719253

            ],

            [

              106.08450874686241,

              30.795688667826173

            ],

            [

              106.08457446098328,

              30.795787740347738

            ],

            [

              106.0842579603195,

              30.79596745303327

            ]

          ]

        ]

      }

    }

  ]

}


avatar

77

主题

129

帖子

0

积分

游客

积分
0
ThingJS_用户支持 发表于 2019-10-21 14:20:55 显示全部楼层

       您好,这个数据上传至CityBuilder的时候,需要在该图层中选择建筑效果中的高度字段,而且大致查看了您的数据,发现您的高度属性值设得太低了......一般来说,三米左右需要放大到最大,视角拖到该建筑才能够发现其高度,您这甚至还有0.5米的高度,在地图上显示恐怕不那么乐观,您可以试试调整拔高倍数,达到您想到的效果。


我在做3D城市搭建时,导入了 geojson 代码,但是导入后,只有面的参数,没有高度的参数,如何添加才能看见建筑物的高度??

我在做3D城市搭建时,导入了 geojson 代码,但是导入后,只有面的参数,没有高度的参数,如何添加才能看见建筑物的高度??


10倍拔高效果如下:


我在做3D城市搭建时,导入了 geojson 代码,但是导入后,只有面的参数,没有高度的参数,如何添加才能看见建筑物的高度??

avatar

5

主题

7

帖子

0

积分

游客

积分
0
18990708181
 楼主|
发表于 2019-10-21 21:37:23 显示全部楼层
你好,老师,我从geojson.io 中选择的面,然后自动生成的代码。自动生成的代码没有height 参数,height 参数是我自己加上的。 导入到 平台上, 高度字段 要求绑定,选择不到我添加的 height,而且我 把数据扩大10倍,还是一个面,没有任何立体效果。 主要原因还是,绑定不到 高度字段。 请问,您是如何生成上面可以拔高的“”面“”; 请教下方法。
avatar
游客~
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

130700ppkpl8x3t7tt1b1t