I’m developing a dashboard with specklepy and streamlit.
My goal is to display Speckle’s 3D models within a 3D map.
To do this, I’m listing all the Brep objects in my project. In my case, I have 45 Breps.
Then I use brep.Vertices
to retrieve the vertices of each Brep.
This returns a list of vertices in the format [x, y, z].
The problem I’m facing is that I don’t know how to relate these [x, y, z] coordinates to their actual location on a map with [longitude, latitude, z].
jonathon
(Jonathon)
2
Do you have details of the CRS used for your project?
Hi @Roger_Moreno_Gonzale have you tried https://geo.speckle.systems/ ?
The landing page can show Speckle models in 3d with the real world location you assign with URL parameters, but also you can use the URL constructor provided in demo pages to fetch Speckle data through GeoSpeckle and return a valid GeoJson: e.g. pygeoapi/speckle_demos/demo_maptalks_polygons.html at 396916bb7c0c2970bc5a97379fa5d5230f80b5ea · specklesystems/pygeoapi · GitHub
Which you can later just embed to your custom Javascript or Python code.
Fetching georeferenced Speckle data will look something like this: