CityJSON import #93
Replies: 3 comments 4 replies
-
Nice to see our specs allowed you to do all this in 1 day 🙌🏼 Q1: you mean that https://3d.bk.tudelft.nl/opendata/cityjson/1.0/DenHaag_01.json cannot be read because of CORS I assume, right? Good point, I will dump all the example datasets to a github repo then Q2: I don't really know. But I guess you saw this? https://github.com/proj4js/proj4js#named-projections |
Beta Was this translation helpful? Give feedback.
-
I dumped the files in that repo: https://github.com/cityjson/example-datasets I had to learn how LFS works because some are >100MB so thank you for forcing me to do this... The v1.1 files are there too btw, because next week or so v1.1 is launched (files almost the same, no worries. Draft of website: https://homepage.tudelft.nl/23t4p/cj11website/tutorials/upgrade11/) Good to know about the epsg.io trick! |
Beta Was this translation helpful? Give feedback.
-
@phtj bad news, I had to delete https://github.com/cityjson/example-datasets since it was taking more space than github allows for free and they sent me a bill! LFS is not free, fair enough... so I dumped everything back to our server, which doesn't allow CORS: https://3d.bk.tudelft.nl/opendata/cityjson/ will try to find a (free) solution... |
Beta Was this translation helpful? Give feedback.
-
Hi all,
Today, I created an importer for CityJSON, for Mobius Modeller. It is great that the job can be done in a day from start to finish, thanks to the clear spec! (OK, instances and textures not done yet, but I am still happy with the days work.) You can take a look at this example model, it is the Den Haag model from your dataset.
Two questions.
For some reason, I cannot directly read the GeoJSON data from your URL. If I copy the data to GitHub, I can read it directly from the "raw" GitHub url. It would be nice if we could have a "raw" web link.
I am doing everything web based, and using porj4js to project between coord systems. However, i am wondering of there is a way (using javascript, without hardcoding it) to go from
urn:ogc:def:crs:EPSG::7415
to"+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +units=m +vunits=m +no_defs"
This actually has nothing to do with CityJSON. But I thought someone might know a solution. At the moment the user has to specify this nasty string, which is obviously problematic. They need to open the CityJSON file, search for
referenceSystem
, search google forEPSG::7415
, then in the EPSG website copy and paste the proj4js string. Hmm... there must be a better way. Of course I can do defs for lots of projections... But I am wondering, is there already something out there? Or a web service?Patrick
Beta Was this translation helpful? Give feedback.
All reactions