Hello everyone!
This is my first post and I hope I can help anyone facing the same problem as me.
I have a dump of all tileInfo.json
files from the L2A bucket (from around mid january 2022). I was trying to create a geographic index on this dump, which I have in a MongoDB instance, and I ended up getting an error of an invalid GeoJSON. Apparently, at the time of this post, that are ~5700 files with invalid tileDataGeometry
entries. To be more precise, they have the entry, but it is like this:
{ type: "Polygon", coordinates: [ [] ] }
After checking the GeoJSON RFC, I assumed that it only meant empty arrays on the first depth level. So this might be invalid? I am not 100% sure.
Anyone else with this error?
I used the following MongoDB query to get the these results. There might be different errors over there:
db.tiles.find(
{
$and: [
{ "tileDataGeometry": { $exists: true } },
{ "tileDataGeometry.coordinates": { $exists: true } },
{ "tileDataGeometry.coordinates.0": { $size: 0 } }
]
},
{ path: 1, _id: 0, tileDataGeometry: 1 }
)
After messing around a bit, there are many tiles that repeatedly have this problem and some that have it only once.
Here is a ZeroBin link with all the problematic files listed.
Ps. I’ve used ZeroBin because PasteBin has a limit of 512kb