Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update API parameters for Sentinel Hub #139

Closed
adbedada opened this issue Jun 6, 2019 · 1 comment
Closed

Update API parameters for Sentinel Hub #139

adbedada opened this issue Jun 6, 2019 · 1 comment

Comments

@adbedada
Copy link

adbedada commented Jun 6, 2019

The API for Sentinel Hub has changed since the example on how to access imagery was written. Use the following config.json file to download, for instance, Sentinel-2 L1C imagery.

  {
   "country": "spain",
   "bounding_box": [
         -0.745697021484375,
          39.28010491220614,
         -0.3076171875,
          39.625788248139436
        ],
    "zoom": 14,
    "classes": [
     { "name": "Building", "filter": ["has", "building"] }
       ],
   "imagery": "http://services.sentinel-hub.com/ogc/wms/[WMS_ID]?SERVICE=WMS&REQUEST=GetMap&BBOX={bbox}&LAYERS=TRUE_COLOR&MAXCC=20&SHOWLOGO=false&VERSION=1.1.1&WIDTH=256&HEIGHT=256&FORMAT=image/jpeg&TIME=2016-01-29/2019-02-29&srs=EPSG%3A3857&NAME=Sentinel-2%20L1C",
   "background_ratio": 1,
   "ml_type": "segmentation"
 }

Dont forget to replace the WMS_ID value on "http://services.sentinel-hub.com/ogc/wms/[WMS_ID], with your ID.

@adbedada adbedada changed the title Update the API for Sentinel Hub Update API parameters for Sentinel Hub Jun 7, 2019
@drewbo
Copy link
Contributor

drewbo commented Jun 10, 2019

Thanks, I think the former example will still work but only if the WMS configuration was set up with the older layer names. I'll make the update now

@drewbo drewbo closed this as completed in 9337612 Jun 10, 2019
wouellette added a commit to wouellette/label-maker that referenced this issue Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants