I am trying to get the imagery only within the given geometry using the code:
TrueColor: {
tileLayer: L.tileLayer.wms(baseUrl, {
tileSize: 512,
attribution: ‘© Sentinel Hub’,
urlProcessingApi: ‘https://services.sentinel-hub.com/ogc/wms/’,
geometry: POLYGON((${boundary[selectedFieldIndex]?.coordinates?.map((coord) => coord.join(' ')).join(', ') || ''}))
,
resolution: 10,
maxcc: 20,
minZoom: 6,
maxZoom: 30,
preset: ‘TRUE_COLOR’,
layers: ‘TRUE_COLOR’,
transparent: 1
})
},
And I am getting an error that says:
HTTP ERROR 500 Request failed.
URI: | /ogc/wms/ |
---|---|
STATUS: | 500 |
MESSAGE: | Request failed. |
SERVLET: | org.glassfish.jersey.servlet.ServletContainer-6bfbab1c |