Comments (7)
It seems related to the CRS (transformation) indeed: In my first message, I converted from EPSG:3945 to EPSG:4978 and I just tried with a dataset of Lyon without CRS transformation and the bug is gone.
from py3dtilers.
Which CRS are you using ? Do you know if it happens in any CRS ?
from py3dtilers.
I think the error comes from the transform
and boundingVolume
of the tiles in the tileset.json.
For a same tile (projected in EPSG:4978), with master branch:
{
"boundingVolume": {
"box": [
172.20416069030762, -577.5076789855957, -170.31637573242188,
224.00000190734863, 0.0, 0.0, 0.0, 692.2968864440918, 0.0, 0.0, 0.0,
273.75
]
},
"geometricError": 1,
"refine": "REPLACE",
"content": { "uri": "tiles/0.b3dm" },
"transform": [
1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0,
4440989.296, 375313.555, 4547598.566, 1.0
]
},
With PR branch:
{
"boundingVolume": {
"box": [
2598789.75, -4801335.25, 4547209.625, 224.0, 0.0, 0.0, 0.0, 692.25,
0.0, 0.0, 0.0, 273.875
]
},
"geometricError": 1,
"refine": "REPLACE",
"content": { "uri": "tiles/0.b3dm" },
"transform": [
1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0,
1842371.867, 5176071.129, 218.639, 1.0
]
},
The correct values are those from master branch. I'll see what goes wrong on PR branch
from py3dtilers.
Nice, thanks! I should have put this issue directly in the PR, I thought that it was already merged, sorry for that.
from py3dtilers.
No problem ! This issue already happened before, and may happen again. At least, it will be documented this time ;)
from py3dtilers.
It should be fixed on the PR branch.
The problem was coming from the centroid used when creating a tile. We were using the centroid of the whole tileset, but this centroid is wrong if we reproject the tileset, since some tiles will be in the new CRS and others (not transformed yet) will still be in the old CRS.
from py3dtilers.
It's fixed, thanks!
from py3dtilers.
Related Issues (20)
- How can i created textured tiles ? HOT 1
- Embedd texture image into b3dm files
- Batch Table data order may change during export
- Implement optional draco compression for 3D tiles
- Docker image ? HOT 1
- Upgrade python version HOT 1
- Textures are NPOT
- CityTiler IndexError HOT 2
- Supported 3D Tiles version?
- Roof option for geojson-tiler results in an error HOT 1
- How i can set height from attribute in geojson? HOT 1
- IndexError: list index out of range
- Reprojection issue
- ObjTiler : --as_lods does not respect --with_texture
- No feature found in source
- Faulty triangulation
- help me,please HOT 1
- How to stably generate multiple b3dms HOT 3
- How to operate after reopening Windows after installation
- Implement LOD grading for tiles HOT 1
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 py3dtilers.