Normalize polygon on conversion.

This commit is contained in:
Thomas Kramer
2023-06-02 11:29:20 +02:00
parent 71ff493161
commit 29ab1faee0

View File

@@ -182,6 +182,7 @@ impl Into<db::Polygon<i32>> for &Polygon {
exterior: (&self.exterior).into(),
interiors: self.interiors.iter().map(|p| p.into()).collect(),
}
.normalized()
}
}