DSHydro / planetsca

https://dshydro.github.io/planetsca/
MIT License
0 stars 2 forks source link

Polygon AOI #2

Closed etboudreau closed 3 months ago

etboudreau commented 4 months ago

Ideally you can use a polygon Area of Interest (AOI), but Planet does have some specifications you need to adhere to

AOI geometry limits per Planet documentation:

Potential solutions: One way to simplify geometries, less ideal for reproducibility/efficient workflow (this is what I did): Manual method - MapShaper.org

Here is another alternative, better for package implementation (just found this, haven't tried it personally: Python package friendly

spestana commented 4 months ago

Thanks @etboudreau !

A couple of initial thoughts on this:

  1. It would be great if a user could provide a geojson or shapefile geometry and the library will take care of any polygon simplification steps on its own (therefore the user doesn't have to worry about this)
  2. The library should let a user know if their polygon has been simplified according to any of the above requirements (e.g. a warning message) so that it's not a surprise when the image output shape is different from their input polygon
  3. If for some reason the library cannot simplify the polygon, it should point the user to these resources from Planet for more information
spestana commented 3 months ago

I've started some work on this, by re-writing how the api search filtering is being done, you can see these updates on my fork: https://github.com/spestana/PyPlanetSCA-Python-Library/blob/main/src/planetsca/search_filters.py

IanChiu-333 commented 3 months ago

Just finished this. It's in a new branch until we figure out what's wrong with the .toml file.