You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is strange one @hroest, thank you for catching. I looked at the tiles closely and realized that it's coming from tile 2/2/1. The tile server throws this error 2020/08/25 15:16:00 map.go:263: err fetching tile (z: 2, x: 2, y: 1) features: ERROR: Not a valid date 1917, 4, 31 (SQLSTATE P0001)
I will dig into this further and find the feature that has invalid date.
@danrademacher@jeffreyameyer just to put this on your radar. I think the immediate fix would be to just edit the feature attribute and things would get fixed. But this might need further validation at the editor side.
@danrademacher I don't know much about the date parsers, perhaps they can handle this a bit more gracefully so tiles don't break?
@danrademacher I don't know much about the date parsers, perhaps they can handle this a bit more gracefully so tiles don't break?
what about some heuristics, if the date cannot be parsed then maybe try to parse only the first four characters (the year presumably) and retry? that would at least get the year right
Activity
geohacker commentedon Aug 25, 2020
This is strange one @hroest, thank you for catching. I looked at the tiles closely and realized that it's coming from tile 2/2/1. The tile server throws this error
2020/08/25 15:16:00 map.go:263: err fetching tile (z: 2, x: 2, y: 1) features: ERROR: Not a valid date 1917, 4, 31 (SQLSTATE P0001)I will dig into this further and find the feature that has invalid date.
geohacker commentedon Aug 27, 2020
I've identified two features that are causing this problem:
@danrademacher @jeffreyameyer just to put this on your radar. I think the immediate fix would be to just edit the feature attribute and things would get fixed. But this might need further validation at the editor side.
@danrademacher I don't know much about the date parsers, perhaps they can handle this a bit more gracefully so tiles don't break?
cc @batpad
geohacker commentedon Aug 27, 2020
Fixed the dates through two changesets 1 and 2
Will close once the tiles are updated properly.
hroest commentedon Aug 27, 2020
that sounds like a good idea, potentially should be tracked in another issue?
geohacker commentedon Aug 28, 2020
There are more:
geohacker commentedon Aug 28, 2020
Few more:
geohacker commentedon Aug 28, 2020
I manually fixed these for now, and the tiles are rendering correctly: https://vtiles.openhistoricalmap.org/#2.65/17.61/7.09
hroest commentedon Aug 28, 2020
what about some heuristics, if the date cannot be parsed then maybe try to parse only the first four characters (the year presumably) and retry? that would at least get the year right
geohacker commentedon Sep 1, 2020
This issue is fixed. I've opened a ticket to track the date handling.