cbm icon indicating copy to clipboard operation
cbm copied to clipboard

Error in the .format of the cbm/scripts/extraction/postgisS2Extract.py

Open jsegu opened this issue 3 years ago • 1 comments

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))

jsegu avatar Apr 29 '21 11:04 jsegu

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.

glemoine62 avatar May 02 '21 09:05 glemoine62