eoAPI_Maxar_demo: raster endpoint #201
Replies: 3 comments 3 replies
-
one more thing I forgot, the paging to get all the items was not working for me. I think it was not properly hitting the next link and therefore was requesting the same set of items over and over again. I changed the cell to look like the following, using a counter:
and then it worked and returned 2115 items. I will make a small PR for this if I get some time |
Beta Was this translation helpful? Give feedback.
-
@nsshah1288 🙏 thanks Would you be able to make a PR to update the notebook? 🙏 |
Beta Was this translation helpful? Give feedback.
-
@vincentsarago just came across another thing which I'm hoping you might be able to help? When trying to visualise the first asset: tilejson = httpx.get(
f"{raster_endpoint}/collections/{collection_id}/items/{item_id}/tilejson.json",
params=(
("assets", "visual"), # THIS PARAMETER IS MANDATORY
("minzoom", 12), # By default the tiler will use 0
("maxzoom", 19), # By default the tiler will use 24
),
).json()
print(tilejson)
bounds = tilejson["bounds"]
m = ipyleaflet.leaflet.Map(
center=((bounds[1] + bounds[3]) / 2, (bounds[0] + bounds[2]) / 2), zoom=12
)
geo_json = ipyleaflet.leaflet.GeoJSON(
data=item, style={"opacity": 1, "dashArray": "9", "fillOpacity": 0.0, "weight": 4}
)
m.add_layer(geo_json)
tiles = ipyleaflet.leaflet.TileLayer(
url=tilejson["tiles"][0],
min_zoom=tilejson["minzoom"],
max_zoom=tilejson["maxzoom"],
bounds=[
[bounds[1], bounds[0]],
[bounds[3], bounds[2]],
],
)
m.add_layer(tiles)
m I get the following error: Seems as if the Any ideas what might be causing that? |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you so much for the demo located here: https://github.com/developmentseed/eoAPI/blob/main/demo/Maxar/eoAPI_Maxar_demo.ipynb
it is very helpful!
One small comment, when I was doing the Asset visualization, when I did
info = httpx.get(f"{raster_endpoint}/collections/{collection_id}/items/{item_id}/info").json()
, I was getting the following error:{
"detail": "AWS_SECRET_ACCESS_KEY and AWS_NO_SIGN_REQUEST configuration options not defined, and /root/.aws/credentials not filled"
}
In the docker-compose.yml file here, I removed the
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
environment variables from titiler-pgstac and addedAWS_NO_SIGN_REQUEST=true
. Then, the raster endpoint worked to return the metadata for the assets.Thank you again for the demo!
Beta Was this translation helpful? Give feedback.
All reactions