Closed wanhanlong1130 closed 7 months ago
@wanhanlong1130 thanks for noting the issue with the sample notebook. Can you submit a PR with your update? Regarding confidence, -1.0 is a placeholder value since we will not backfill confidence for all predictions but we are including for any new updates as of the December 2023 update.
@andwoi Thanks for your reply! I just created a pull request. This database is very useful!
Hi,
1. Q1 I encountered an issue when using the provided example notebook script to download data, specifically regarding the preservation of the 'height' attribute in the output. In the process, the 'height' and 'confidence' information within the 'properties' of each GeoJSON feature was replaced by an 'id' value, resulting in the loss of these attributes in the output file.
The problematic section is found in Step 3, lines 129 to 134:
This code block overwrites the original 'properties' values with a new 'id' value, omitting the 'height' and 'confidence' information.
As an alternative approach, I have utilized a GeoDataFrame to preserve the 'height' attribute, as shown below:
This modification allows for the inclusion of the 'height' attribute in the output GeoJSON file.
Thank you for any help or insights you can provide.