Giter VIP home page Giter VIP logo

Comments (7)

jailln avatar jailln commented on June 15, 2024 1

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.

LorenzoMarnat avatar LorenzoMarnat commented on June 15, 2024

Which CRS are you using ? Do you know if it happens in any CRS ?

from py3dtilers.

LorenzoMarnat avatar LorenzoMarnat commented on June 15, 2024

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.

jailln avatar jailln commented on June 15, 2024

Nice, thanks! I should have put this issue directly in the PR, I thought that it was already merged, sorry for that.

from py3dtilers.

LorenzoMarnat avatar LorenzoMarnat commented on June 15, 2024

No problem ! This issue already happened before, and may happen again. At least, it will be documented this time ;)

from py3dtilers.

LorenzoMarnat avatar LorenzoMarnat commented on June 15, 2024

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.

jailln avatar jailln commented on June 15, 2024

It's fixed, thanks!

from py3dtilers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.