terraref / computing-pipeline

Pipeline to Extract Plant Phenotypes from Reference Data
BSD 3-Clause "New" or "Revised" License
21 stars 13 forks source link

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

Open Chris-Schnaufer opened 4 years ago

Chris-Schnaufer commented 4 years ago

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

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