added bootstrap buildings
This commit is contained in:
Binary file not shown.
@@ -12,6 +12,10 @@ class BuildingsQueryRequest(BaseModel):
|
||||
def validate_query_shape(self) -> "BuildingsQueryRequest":
|
||||
if self.bbox is None and self.path is None:
|
||||
raise ValueError("Either bbox or path must be provided")
|
||||
if self.bbox is not None:
|
||||
minlon, minlat, maxlon, maxlat = self.bbox
|
||||
if minlon >= maxlon or minlat >= maxlat:
|
||||
raise ValueError("bbox must be [minlon, minlat, maxlon, maxlat]")
|
||||
return self
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user