Comments (5)
I just had a quick play and I noticed that if you remove from the building attributes "osm_tags"
then the buildings can be visualised in QGIS. Can't tell you why though π
@liberostelios will know better for sure. I'm guessing it's something to do with parsing the nested hierarchy.
from cityjson-qgis-plugin.
Haha, no worries! Happy to help π
So what you store in your file is not wrong, you're allowed to have nested attributes according to the schema, I validated it to make sure. @liberostelios said he will fix this issue soon since the plugin should be able to handle nested attributes. I also listed it as an issue for ninja (#57) since reading them as just a string is perhaps not super useful either.
For now I suggest perhaps un-nesting the attributes and maybe you can instead group them as such: "osm_tags_addr:city"
, "osm_tags_addr:postcode"
, etc. This will help if you wish to use them as attributes within QGIS.
I just took a small subset of 5 buildings with cjio
and played with attributes manually to check if nesting was the issue. But I think you can easily just change this in your script?
from cityjson-qgis-plugin.
@Athelena. Lets leave the result
as is - I like the nested attributes
. It's intuitive.
What I will do is add a function
that transforms the CItyModel to a "flatter" data-structure; should the user choose.
You have been extremely helpful. Thank you.
from cityjson-qgis-plugin.
One thumbs up @Athelena - for the super service and a π for the grammar.
Do you suggest non-nested attributes? Should I write the CityJSON differently?
How did you remove the attributes?
from cityjson-qgis-plugin.
No problem! Always happy to help and it's nice to see people developing open data and open code π
from cityjson-qgis-plugin.
Related Issues (20)
- Semantic surfaces being dissolved
- Moving to PostGIS? HOT 1
- Multi LoD file adds empty attributes to all layers HOT 3
- Convert from CityGML bevor use HOT 1
- Write support for CityJSON datasets HOT 1
- Breaks on CityObject without geometry HOT 3
- Geometry-less city objects aren't loaded when choosing to load per LoD
- CityJSON v1.1 not supported HOT 1
- Add support for CityJSONFeature
- adding attributes per surface HOT 1
- Extracting only semantic roof surfaces for QGIS
- Roof Surfaces Double Geometries on QGIS: WHY? HOT 9
- Import aglorithm is broken in 3.24.3 (macOS) HOT 1
- Qgis crashes HOT 3
- Change Altitude Clamping from Relative to Absolute HOT 2
- `referenceSystem` breaks if the url provided is an http
- `referenceSystem` breaks when it starts with `http://` instead of `https://`
- address information is not loaded HOT 1
- AttributeError: 'QgsPolygon3DSymbol' HOT 2
- Missing info
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cityjson-qgis-plugin.