pygeoapi icon indicating copy to clipboard operation
pygeoapi copied to clipboard

csv provider fails if a single x/y value is empty

Open pvgenuchten opened this issue 1 year ago • 1 comments

image

the csv had a single row with empty x/y what can we expect here, a try/catch around https://github.com/geopython/pygeoapi/blob/2ad45120087d50eff9a05102e456d73c8aebe138/pygeoapi/provider/csv_.py#L119, or should all geoms by valid in any data file?

pvgenuchten avatar Aug 08 '22 21:08 pvgenuchten

this csv has a uri as identifier, which causes some interesting behaviour pygeoapi generates these links

http://localhost:5000/collections/free_wifi_florence/items/https://registry.gdi-de.org/codelist/de.bund.thuenen/bodenart/Ls4

which off course generates a 404, in identifiers we need to encode special characters, such as /?&=

pvgenuchten avatar Aug 08 '22 21:08 pvgenuchten