Merge pull request #34 from mei-se/main

fix issue when querying within a polygon
This commit is contained in:
Marcelo de Oliveira Rosa Prates 2021-08-29 15:35:55 -03:00 committed by GitHub
commit 348dd92e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ def plot_shapes(shapes, ax, vsketch = None, palette = None, **kwargs):
# Parse query (by coordinates, OSMId or name)
def parse_query(query):
if isinstance(query, (Polygon, MultiPolygon)):
if isinstance(query, GeoDataFrame):
return 'polygon'
elif isinstance(query, tuple):
return 'coordinates'