cityjson / ninja

A web viewer for CityJSON files
https://ninja.cityjson.org
Apache License 2.0
39 stars 13 forks source link

geometry templates mixed results in ninja #82

Open esgn opened 1 year ago

esgn commented 1 year ago

Hi,

I'm having mixed results with geometry templates in Ninja. Sometimes geometry templates work as in https://3d.bk.tudelft.nl/opendata/cityjson/3dcities/v1.1/LoD3_Railway.city.json where SolitaryVegetationObject are correctly displayed. But sometimes they don't.

I would expect a simple example like https://3d.bk.tudelft.nl/opendata/cityjson/simplegeom/v1.1/geomtemplate.city.json to work with latest ninja version, but nothing is actually displayed. If geomtemplate.city.json is not supposed to work in ninja is there somewhere a very simple working example I could learn from to try and fix my datasets whose geometry templates fail to be displayed ?

Thanks in advance

liberostelios commented 11 months ago

Hi @esgn,

Sorry for the late response.

I took a look into the example and tried to figure out why you don't see anything with the example. It turns out, it's probably because there is no regular geometry to set the bounds in which the camera will zoom. If you add a regular geometry in this file, you should be able to see the geometry template as well (I haven't tested yet, but that's what my evidence conclude right now).

Is there another file of yours that is suffering from the same problem?