Should galah_geolocate
handle shapefiles with multiple POLYGON
s?
#191
Labels
enhancement
New feature or request
galah_geolocate()
is able to filter records using shapefiles. However, it is only able to handle onePOLYGON
at a time. Although this works in many cases, the issue is that many shapefiles contain more than onePOLYGON
. For example, maps of regions or subregions require multiplePOLYGON
rows to draw each region's shape.galah_geolocate
errors when shapefiles are supplied with multiplePOLYGON
rows. For example, in this shapefile containing ACT suburbs, supplying one ACT suburb returns a result, but supplying two causes an errorShould
galah_geolocate
be able to handle shapefiles with multiplePOLYGON
rows? At the moment, if the user wanted a result for the entire area of the shapefilegalah_geolocate(type = "bbox")
is one work around for this, but would require additional filtering after a download.Alternatively, if the user wanted one query per
POLYGON
(in this case, one query per suburb), they could usepurrr::map()
to loop a query over each one. However, this requires some fairly advanced looping.At the very least, it would be useful to update the error message to be more informative about this limitation of
galah_geolocate()
, but perhaps handling multiplePOLYGON
s is a functionality that should be added togalah_geolocate()
?The text was updated successfully, but these errors were encountered: