t-rex-tileserver / t-rex

t-rex is a vector tile server specialized on publishing MVT tiles from your own data
https://t-rex.tileserver.ch/
MIT License
545 stars 68 forks source link

Missing `table_name` gives GDAL error #249

Closed joto closed 2 years ago

joto commented 2 years ago

When using a GDAL datasource without specifying a table_name in the layer config, I get this error:

thread 'actix-web' panicked at 'called `Option::unwrap()` on a `None` value', t-rex-gdal/src/gdal_ds.rs:142:52

This should probably be a bit nicer error message. For a shape file input (as in my case) there is only a single layer in the datasource, so it could just use that.

pka commented 2 years ago

Fixed in 7266a7e