Hello, I have a system to help rural producers with crop irrigation.
I’m trying to apply NDVI with Sentinel HUB on my Google Maps.
When I pull the data from the WMS with Layer NDVI, I can get it right, but when I try to follow the documentation to use a custom evalscript, I get a 400 error.
var url = “https://services.sentinel-hub.com/ogc/wms/3c******************************************”;
url += “?REQUEST=GetMap”; //WMS operation
url += “&SERVICE=WMS”; //WMS service
url += “&VERSION=1.1.1”; //WMS version
url += “&LAYERS=B01,B02,B03”
url += “&EVALSCRIPT=cmV0dXJuIFtCMDgqMi41LEIwNCoyLjUsQjAzKjIuNV07”
url += “&FORMAT=image/png” ; //WMS format
url += “&PREVIEW=2”;
url += “&CRS=EPSG:4326”;
url += “&GAIN=1”;
url += “&GAMA=0.8”;
url += “&TRANSPARENT=true”; //set WGS84
url += “&BBOX=” + bbox; // set bounding box
url += “&QUALITY=100”;
url += “&WIDTH=512”; //tile size in google
url += “&HEIGHT=512”;
url += sentinel_points;
Above I have my URL creation.
Thanks for helping.