-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Unrecognized metadata value? #799
Comments
Hi @renedupont Have a good day :D while let Some(row) = rows.try_next().await? {
if let (Some(name), Some(value)) = (row.name, row.value) {
match name.as_ref() {
"name" => tj.name = Some(value),
"version" => tj.version = Some(value),
"bounds" => tj.bounds = self.to_val(Bounds::from_str(value.as_str()), &name),
"center" => tj.center = self.to_val(Center::from_str(value.as_str()), &name),
"minzoom" => tj.minzoom = self.to_val(value.parse(), &name),
"maxzoom" => tj.maxzoom = self.to_val(value.parse(), &name),
"description" => tj.description = Some(value),
"attribution" => tj.attribution = Some(value),
"type" => layer_type = Some(value),
"legend" => tj.legend = Some(value),
"template" => tj.template = Some(value),
"json" => json = self.to_val(serde_json::from_str(&value), &name),
"format" | "generator" => {
tj.other.insert(name, Value::String(value));
}
_ => {
let file = &self.filename;
warn!("{file} has an unrecognized metadata value {name}={value}");
tj.other.insert(name, Value::String(value));
}
}
}
} |
I wonder if we should lower the priority for the unrecognized mbtiles messages to |
I agree with you. It's more like info @nyurik |
PRs welcome :) |
#799 Downgrade log level from `warn` to `info` when there is unrecognized metadata value in `MBTiles` file .
Got it, thanks a lot @sharkAndshark ! |
Hey,
I receive a geojson file that I use to create 5 layers (each in its own mbtiles file) with tippecanoe.
Once I start martin with these mbtiles as source, I get the following warnings:
My question would be: Is that just some custom metadata fields that tippecanoe adds to the mbtiles that martin doesn't care about because it doesn't know what it is and I can fully neglect the warnings, or does this have any consequences during runtime?
The text was updated successfully, but these errors were encountered: