Skip to main content

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

Hi,


In which language are you trying to generate your WMS request? There are plenty of examples in the documentation. And for more details on the parameters you can use, you should read through this page. If you are still struggling, then please share the URL that you generate and I can help troubleshoot with you.


I was using react and the problem was solved with using two lines of


“format: ‘image/png’,

crs: L.CRS.EPSG4326,”


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.


Reply