Closed rbavery closed 5 years ago
Could you share the geojson file for me to run tests?
Sure here it is (github doesn't allow geojson file upload)
{
"type": "FeatureCollection",
"name": "test_tile_half",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "id": 0 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -0.831053947078279, 5.733240915104465 ], [ -0.798653947078279, 5.733240915104465 ], [ -0.7986, 5.71 ], [ -0.831, 5.71 ], [ -0.831053947078279, 5.733240915104465 ] ] ] } }
]
}
I've figured out some of what is happening, on the first iteration of the paging while loop in geojson2id.py..
while page['_links'].get('_next') is not None:
page_url = page['_links'].get('_next')
page = SESSION.get(page_url).json()
ids = handle_page(page,asset,num,outfile,gmain,ovp)
page does have a _links
key with results
But in the next iteration of the while loop
It looks like my credentials are forgotten/dropped from memory? Then the while loop fails here because now page has no _links
, only errors
and messages
I am able to run the tools for your AOI on both windows and a Linux machine, am not really sure what is going on there. I could not replicate your error. For the query, you made within that one month period and with an overlap of 50, there are 8 assets.
20180726_095804_103d
20180712_103425_0f21
20180709_103420_100d
20180710_095700_0e0f
20180711_103459_0f2a
20180707_095733_103e
20180703_095732_1015
20180702_095725_101f
I found the problem, my PL_API_KEY was exported as a shell variable and was set to my old key. I think the script might have been picking up my new key from planet init
and then the old key from my shell environment, thanks for checking.
I'm using the most recent version of porder in a python 2 environment and get the following when making an order
I've confirmed with
porder quota
that my credentials are initialized properly. Not sure what the issue is here but I can try to debug further and update.