Skip to content

Add indicator percentpop euclidean proximity to openspace#83

Draft
weiqi-tori wants to merge 14 commits into
mainfrom
add-indicator-percentpop-euclidean-proximity-to-openspace
Draft

Add indicator percentpop euclidean proximity to openspace#83
weiqi-tori wants to merge 14 commits into
mainfrom
add-indicator-percentpop-euclidean-proximity-to-openspace

Conversation

@weiqi-tori

Copy link
Copy Markdown
Member

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

  • Yes, the URL of the associated JIRA ticket is https://gfw.atlassian.net/browse/CIF-XXX. The PR name follows the format [CIF-XXX] my subject.

  • No, this is a documentation update. The PR name follows the format [DOCS] my subject.

What changes were proposed in this PR?

How was this patch tested?

Did this PR include necessary documentation updates?

  • Yes, I am adding a new API feature.
  • Yes, I have updated the documentation update.
  • No, this PR does not affect any public API so no need to change the docs.

@weiqi-tori weiqi-tori changed the base branch from main to utm_projection September 25, 2024 09:01
@weiqi-tori

Copy link
Copy Markdown
Member Author

Updates:

  1. added a sum() zonal stats function to layer class, so don't need to use mean*count;
  2. fixed the way .buffer() was used in the osm layer;
  3. updated the metrix script to pull the osm and world_pop layers.
    Now it returns the percent of pop within the open space buffered area.

Base automatically changed from utm_projection to main October 8, 2024 13:48
@chrowe chrowe removed the request for review from tedw0ng October 30, 2024 15:18
@chrowe chrowe requested review from kcartier-wri and removed request for chrowe December 17, 2024 15:47

@kcartier-wri kcartier-wri left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but could you please:

  1. Simplify the section of code starting with "if bbox.units == "degrees":" utilizing GeoExtent functions on bbox parameter? See cams.py for a partial example. I should have made this change myself, but you might as well address it in this PR.

  2. Add a test to https://github.com/wri/cities-cif/blob/main/tests/resources/layer_dumps/test_write_all_layers.py

@chrowe chrowe marked this pull request as draft February 12, 2025 15:20
@chrowe chrowe added the wontfix This will not be worked on label Feb 26, 2025
@chrowe chrowe removed the request for review from S-AI-F April 17, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants