You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used a multi-polygon geojson to list the ids and order the imagery, then I realized that these two functions failed because the polygons are adjacent to each other (self-intersection happened). I queried imagery a few times before, I think I did everything following the instruction.
Here are my clues so far:
For idlist, the problem happened in line 190 in file geojson2id.py, I added one line aoi_shape=aoi_shape.buffer(0) here then it works fine to query the ids. But I am not sure the result is correct or not since I failed to download the imagery.
For order, it failed with a return 'Failed with response: Bad request'. The problem happened in object payload in line 266 in file order_now.py. It seems that the request doesn't follow the syntax of Planet API. I tried separated multi-polygons, it works just fine. So my guess: the problem here is still the adjacent polygons issue.
Another non-related bug in the file order_now.py: when there is no --op parameter, the object ordname cannot be assigned because of line 97-98:
if key=='op' and value!=None:
ordname=k['name']
I arbitrarily fixed this issue by adding line ordname=k['name'] before line 266 payload=payload.replace("Explorer_{{name}}.zip",ordname+'_'+str(pendulum.now()).split("T")[0]+".zip"). But I think this must be a better way to solve this.
Hi @LLeiSong
The limitation of the way in which shapely processes geometry is that the geometries do not intersect, in your case you are using a grid and hence cannot be handled as a multi polygon geometry in Shapely.
A valid Polygon may not possess any overlapping exterior or interior rings
I think you are right about assigning ordname outside the op iterations to make sure someone can order without using any op, I will make that edit in the next release.
I used a multi-polygon geojson to list the ids and order the imagery, then I realized that these two functions failed because the polygons are adjacent to each other (self-intersection happened). I queried imagery a few times before, I think I did everything following the instruction.
Here are my clues so far:
For
idlist
, the problem happened in line 190 in filegeojson2id.py
, I added one lineaoi_shape=aoi_shape.buffer(0)
here then it works fine to query the ids. But I am not sure the result is correct or not since I failed to download the imagery.For
order
, it failed with a return 'Failed with response: Bad request'. The problem happened in objectpayload
in line 266 in fileorder_now.py
. It seems that the request doesn't follow the syntax of Planet API. I tried separated multi-polygons, it works just fine. So my guess: the problem here is still the adjacent polygons issue.My queries are here:
My geojson file is here:
supergrid2_test.geojson.zip
The text was updated successfully, but these errors were encountered: