rustprooflabs / pgosm-flex

PgOSM Flex provides high quality OpenStreetMap datasets in PostGIS (Postgres) using the osm2pgsql Flex output.
MIT License
100 stars 20 forks source link

Fix nested polygon logic when place=false #348

Closed rustprooflabs closed 1 year ago

rustprooflabs commented 1 year ago

Addresses #347.

Fix logic related to skipping nested place polygon function when place=false in the layerset INI. The problem was the value from the ini file was being returned as a str, while the logic was expecting a bool. This moves the value parsing logic into a new function explicitly to return the boolean value, and adds unit tests to verify functionality.

With this change, it establishes that the case insensitive true is interpreted as True, everything else is False.

This commit is currently available as the dev image.

docker pull rustprooflabs/pgosm-flex:dev