cbm
cbm copied to clipboard
Error in the .format of the cbm/scripts/extraction/postgisS2Extract.py
In the script "cbm/scripts/extraction/postgisS2Extract.py", the query parcelcountsql on line 127 has 7 "{}" and the .format on line 137 has 9 words. The code of incurs.execute should look like this:
incurs.execute(parcelcountsql.format(
dbconfig['tables']['parcel_table'],
dbconfig['tables']['aoi_table'], srid, srid,
dbconfig['args']['aoi_field'], dbconfig['args']['name'],oid))
We have recently refactored the extraction code. It is significantly faster now. This should replace the current extraction code, hopefully before the end of this month (May 2021). Thanks for your contribution.