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

terrautils/betydb.py: add EPSG parameter to get_sites_by_latlon #596

Open
4 tasks
Chris-Schnaufer opened this issue Aug 29, 2019 · 0 comments
Open
4 tasks
Labels
geographic Geographic coordinate systems

Comments

@Chris-Schnaufer
Copy link

Tags: EPSG, Coordinate System, Spatial Reference

Description

get_sites_by_latlon() assumes epsg:4326 - matching what's in BETYdb. This means that non-EPSG:4326 values will fail to find qualifying sites.

Details

It was agreed that an EPSG code parameter should be added (see references below) with a default value of 4326. The lat-lon values are to be converted to EPSG:4236 before getting passed on.

Completion Criteria

  • An EPSG parameter is added that defaults to 4326
  • A conversion is done for non-EPSG:4326 lat-lon values
  • The converted values are used for searching successfully
  • Any returned geographic information is converted to the specified EPSG code

References:
https://app.zenhub.com/workspaces/ua-ag-data-science-5a57a3198339f11ba1c85775/issues/terraref/drone-pipeline/37
https://app.zenhub.com/workspaces/ua-ag-data-science-5a57a3198339f11ba1c85775/issues/terraref/drone-pipeline/55

@Chris-Schnaufer Chris-Schnaufer added the geographic Geographic coordinate systems label Aug 29, 2019
@Chris-Schnaufer Chris-Schnaufer changed the title terrautils/betydb.py coordinate system: add EPSG parameter to get_sites_by_latlon terrautils/betydb.py: add EPSG parameter to get_sites_by_latlon Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
geographic Geographic coordinate systems
Projects
None yet
Development

No branches or pull requests

1 participant