ec-jrc / cbm

Checks by Monitoring
BSD 3-Clause "New" or "Revised" License
19 stars 26 forks source link

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

Open jsegu opened 3 years ago

jsegu commented 3 years ago

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))
glemoine62 commented 3 years ago

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.