Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VBET Area Attributes #426

Closed
philipbaileynar opened this issue Sep 15, 2021 · 2 comments
Closed

VBET Area Attributes #426

philipbaileynar opened this issue Sep 15, 2021 · 2 comments
Labels
pkg:VBET VBET python package

Comments

@philipbaileynar
Copy link
Contributor

Please add attribute to fields to the five output VBET feature classes that contains the area of each polygon feature. In all cases, the column name should be called area_ha and contain the area in hectares, to 5 decimal places:

  • Outputs\vbet.gpkg
    • active_floodplain
    • inactive_floodplain
    • vbet_68
    • vbet_80
    • vbet_channel_area

As discussed, the geometries are in WGS84 so they will need re-projecting for this calculation. I suggest once each feature class is created, looping over each feature, converting the individual geometry to Albers Conic (EPSG: 5070) and grabbing the area.

The other option would be to do a feature class level operation to reproject the entire layer, but this creates clutter that needs cleaning up, and unnecessary IO.

Notes

  • double check the EPSG above. I thiiiiiink it's right
  • more tickets to come with additional VBET area metrics.
@joewheaton joewheaton added the pkg:VBET VBET python package label Sep 15, 2021
@KellyMWhitehead
Copy link
Contributor

Step 1 - add area to features, is complete.
image

@KellyMWhitehead
Copy link
Contributor

Added to 0d088e9

@KellyMWhitehead KellyMWhitehead removed their assignment Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:VBET VBET python package
Projects
None yet
Development

No branches or pull requests

4 participants