Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improper leading slash for non-b3dm tile #6392

Closed
lilleyse opened this issue Mar 29, 2018 · 5 comments
Closed

Improper leading slash for non-b3dm tile #6392

lilleyse opened this issue Mar 29, 2018 · 5 comments

Comments

@lilleyse
Copy link
Contributor

I ran into a tileset that has a tile url with a leading slash that is not caught correctly by detectBrokenUrlWorkaround. The problem is the first tile that is encountered is a b3dm tile with a correct url while the tile with the broken url is deeper down the tree. It looks something like:

{
    "content" : {
        "url" : "tile.b3dm"
    },
    "children" : [
        {
            "content" : {
                "url" : "/external.json"
            }
        }
    ]
}

I wonder if we should always apply the workaround instead of trying to detect it... unless that causes a problem in some other way.

@tfili do you have any ideas?

CC #6125

@mramato
Copy link
Contributor

mramato commented Mar 29, 2018

I think we should tell tiler authors to fix their broken tilesets and remove the workaround completely. The workaround was always supposed to temporary anyway. Long term, the validator should be able to catch this error.

@tfili
Copy link
Contributor

tfili commented Mar 30, 2018

I'm with @mramato on this one. Putting in hacks to fix bad tilesets would then make viewers that follow the spec inconsistent. It's the same issue that exists with KML. There is the spec and then there is what Google Earth supports. GE enabled bad behavior, so now implementing a good KML is near impossible. There is no docs on the hacks, so its just a big game of whack-a-mole.

@lilleyse
Copy link
Contributor Author

I agree with you guys, I'm just noting a bug in our current workaround.

@tfili
Copy link
Contributor

tfili commented Mar 30, 2018

The current workaround was only for a very specific set of b3dm paths. It was intentionally made extremely narrow.

@lilleyse
Copy link
Contributor Author

Alright sounds good. Yeah tooling (like validator or upgrade scripts) is the better way for handling this problem. I'll close for now.

Moved to https://github.com/AnalyticalGraphicsInc/3d-tiles-tools/issues/141.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants