Make warning more detailed (#243)

This commit is contained in:
Yuri Astrakhan 2023-01-23 05:10:00 -05:00 committed by GitHub
parent 021376acaf
commit 5b9bcbd0b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,9 +312,19 @@ impl FeatureProcessor for IndexProcessor {
IndexedGeometry::from_linestring(linestring, self.properties.take().unwrap())
.unwrap(),
),
_ => {
warn!("Unknown geometry in index")
Some(Geometry::Point(_)) => warn!("Unsupported Point geometry in index"),
Some(Geometry::Line(_)) => warn!("Unsupported Line geometry in index"),
Some(Geometry::MultiPoint(_)) => warn!("Unsupported MultiPoint geometry in index"),
Some(Geometry::MultiLineString(_)) => {
warn!("Unsupported MultiLineString geometry in index")
}
Some(Geometry::MultiPolygon(_)) => warn!("Unsupported MultiPolygon geometry in index"),
Some(Geometry::GeometryCollection(_)) => {
warn!("Unsupported GeometryCollection geometry in index")
}
Some(Geometry::Rect(_)) => warn!("Unsupported Rect geometry in index"),
Some(Geometry::Triangle(_)) => warn!("Unsupported Triangle geometry in index"),
None => warn!("No geometry in index"),
};
Ok(())