Skip to main content

Hello all,

I am passing geometry parameter in WMS service of sentinel hub for adding NDVI layer on map using (“esri/layers/WMSLayer”) arcgis jsapi. I have a lot of polygon. So I pass each polygon as a geometry into WMS url using for loop. WMS url working well. but problem is that while adding WMS layer from sentinel hub using arcgis jsapi takes too much time for loading on webmap. Could you please answer is there any way to reduce loading time of wms layer on map?

Hi,

Could you please provide us the email you used to register for the account to make the requests and the first four digits of your configuration ID you are using? Thank you!


Hi ,
Registered Mail id: senpagapriya.s@gmail.com and I don’t have configuration id. Can you please tell me the answer for that question? Thank you…


Hi  ,

We’ve checked the status of your account and it was expired on 12th of November 2022. Please make sure having a valid account and try again. Thank you.


Now I am using a different email… it takes more time for loading


Hi,

I took a look at our backlog and the response time of most requests you made for the past week looks quite ok (see Fig 1).

I did discover some requests that took longer (~10-30 seconds). Would you mind providing us an example request that takes too much time to have a response, so we can have a insight into it.

 


Fig 1 (time in millisecond)


Hi ,

I checked the request and removed the unused STYLES and unnecessary BBOX in your request and it worked fine. I can always get the response in seconds. Below is the request:

https://services.sentinel-hub.com/ogc/wms/c139a6b4-4a61-MASKED?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&LAYERS=NDVI&WIDTH=1078&HEIGHT=722&CRS=EPSG:3857&TIME=2023-02-13&GEOMETRY=POLYGON%20((3063076.6079363124%205708183.013462068,3063073.025664181%205708189.201450897,3063067.3298152275%205708200.469413418,3063061.633951954%205708211.737386362,3063055.9380742894%205708223.005369857,3063051.5066482425%205708230.938989146,3063047.0752143525%205708238.872613202,3063042.643772618%205708246.806242028,3063038.2123230402%205708254.739875625,3063033.780865619%205708262.673513992,3063029.349400355%205708270.607157128,3063024.917927246%205708278.540805032,3063020.486446294%205708286.47445771,3063016.054961527%205708294.408108095,3063013.608084837%205708300.657704213,3063011.302069996%205708309.957184112,3063009.877626273%205708318.268741831,3063008.4570394917%205708323.2397419885,3063006.0631246166%205708327.817001929,3063000.8586707497%205708333.440899422,3062996.5180585817%205708336.569418911,3062982.1172836465%205708344.238868473,3062975.1254531904%205708348.905689133,3062971.1099418146%205708352.470279065,3062967.961314973%205708356.179009367,3062963.644140152%205708363.6233943775,3062959.32695816%205708371.067783437,3062955.0097689983%205708378.512176546,3062950.692572667%205708385.956573702,3062946.3753691656%205708393.400974908,3062942.0581584936%205708400.845380159,3062937.7409406514%205708408.28978946,3062933.4237156385%205708415.73420281,3062929.1064834557%205708423.178620205,3062924.7892441032%205708430.623041649,3062920.4719975805%205708438.067467142,3062916.1547438866%205708445.511896682,3062911.8374950215%205708452.956310975,3062907.007055875%205708460.963025669,3062902.1766081%205708468.969744846,3062897.3461516974%205708476.9764685035,3062892.5156866647%205708484.98319665,3062887.6852130042%205708492.989929277,3062882.854730715%205708500.996666388,3062878.024248127%205708509.00339451,3062873.6371741234%205708515.750950723,3062868.4902130803%205708522.074903049,3062859.408071424%205708529.9090303,3062844.7299826443%205708538.0703223245,3062840.97816209%205708540.523774987,3062836.490124345%205708545.115637495,3062832.472524567%205708552.151734979,3062828.454918482%205708559.187836134,3062824.4373060917%205708566.223940967,3062820.419687393%205708573.260049468,3062816.402062388%205708580.29616164,3062812.384431077%205708587.332277491,3062808.366793459%205708594.368397012,3062804.349149535%205708601.404520207,3062800.3314808677%205708608.440675165,3062795.512933647%205708617.196207962,3062790.6943770135%205708625.95174665,3062785.8758109673%205708634.70729122,3062781.0572355096%205708643.462841684,3062776.2386543495%205708652.218392286,3062771.8861662494%205708659.709354011,3062767.5336708757%205708667.20031983,3062763.1811682284%205708674.691289738,3062758.828658306%205708682.182263735,3062754.476142122%205708689.673240243,3062747.9336937917%205708701.07271641,3062741.3912288225%205708712.472202171,3062734.8487589834%205708723.871679041,3062720.7791258753%205708747.607721397,3062736.988037929%205708757.622977434,3062759.2131278464%205708768.536631099,3062771.5947305346%205708776.0151894055,3062776.3858333896%205708772.306396763,3062780.9072077116%205708765.317160699,3062785.4285749844%205708758.327927752,3062789.9499352067%205708751.33869792,3062794.471288379%205708744.349471205,3062798.992634502%205708737.360247611,3062803.5139735737%205708730.37102713,3062808.0353055964%205708723.381809766,3062812.556630569%205708716.39259552,3062817.0779484906%205708709.403384391,3062821.599259364%205708702.414176381,3062826.1205631867%205708695.4249714855,3062830.6418599593%205708688.435769709,3062835.1631498705%205708681.44657066,3062839.584804116%205708674.504171778,3062844.0064515118%205708667.561776039,3062848.4280920597%205708660.619383448,3062852.849725759%205708653.676994,3062857.2713526096%205708646.7346076965,3062861.6929726135%205708639.792224539,3062866.114585768%205708632.849844525,3062870.536192074%205708625.907467657,3062874.9577915315%205708618.965093934,3062879.379384142%205708612.022723354,3062883.800969903%205708605.080355921,3062888.222548816%205708598.137991633,3062892.6441180063%205708591.195636802,3062897.5524447877%205708583.749224094,3062902.4607634153%205708576.302814827,3062907.3690738883%205708568.856408998,3062912.2773762075%205708561.410006606,3062917.185670373%205708553.963607653,3062922.093956384%205708546.517212141,3062927.0022307807%205708539.070828203,3062934.3488412285%205708543.020902227,3062941.6954581523%205708546.970971922,3062949.04208155%205708550.9210372865,3062956.3887114218%205708554.871098316,3062963.7353477688%205708558.821155016,3062971.081990591%205708562.771207383,3062978.4286398864%205708566.721255421,3062985.775295656%205708570.671299122,3062993.121957901%205708574.621338494,3063000.46862662%205708578.571373533,3063007.815304588%205708582.521388271,3063014.936813814%205708586.816958718,3063022.058329865%205708591.1125255115,3063029.1798527413%205708595.408088653,3063036.3013824415%205708599.703648147,3063043.4229189674%205708603.999203989,3063050.5444623185%205708608.29475618,3063057.6660132897%205708612.590286683,3063066.1987535567%205708618.22335303,3063080.758988324%205708602.662807189,3063086.0966346553%205708595.324748375,3063091.4342722488%205708587.986692332,3063096.7719011037%205708580.648639056,3063102.10952122%205708573.310588549,3063107.4471325995%205708565.972540806,3063112.784735239%205708558.63449583,3063118.122326879%205708551.296433915,3063126.117047927%205708539.5258374885,3063134.1117479797%205708527.7552492395,3063142.106427689%205708515.984672405,3063150.158984521%205708504.247071699,3063158.211520265%205708492.509478981,3063166.26403532%205708480.77189554,3063179.6786236237%205708461.067707193,3063187.6264274647%205708451.295209415,3063195.5742139774%205708441.522715125,3063203.521985183%205708431.7502282,3063208.9257908016%205708424.247933763,3063214.329587374%205708416.745642287,3063219.733374902%205708409.243353765,3063225.1371533857%205708401.741068206,3063230.5409228243%205708394.2387856,3063235.9446832184%205708386.736505956,3063241.3484359747%205708379.234230896,3063246.9326698976%205708372.415554522,3063255.899426318%205708362.746274953,3063265.6614416786%205708353.80855964,3063278.6919790152%205708341.758350279,3063287.383555976%205708331.873522969,3063301.874311292%205708312.560473691,3063292.9874015884%205708303.911272606,3063283.999478507%205708297.349318873,3063275.01156813%205708290.787360607,3063251.6739799697%205708276.230333682,3063244.971485202%205708271.970110328,3063238.268996804%205708267.7098839395,3063231.5665147766%205708263.449654518,3063224.8640391193%205708259.189422062,3063218.161569833%205708254.929186572,3063211.4591069156%205708250.668948049,3063204.7566503696%205708246.408706495,3063198.0542001934%205708242.148461905,3063191.3517588004%205708237.888215315,3063183.972090019%205708233.5471841525,3063176.5924283843%205708229.206148963,3063169.212773897%205708224.865109748,3063161.833126557%205708220.524066505,3063154.453493517%205708216.183021748,3063146.880021945%205708211.498494435,3063139.306558288%205708206.813963113,3063131.7331025456%205708202.129427779,3063124.1596547193%205708197.444888438,3063116.5862134034%205708192.76034495,3063106.940039605%205708188.042193601,3063100.417967422%205708185.9826173,3063094.635960196%205708184.89976369,3063076.6079363124%205708183.013462068))

Hi 
Thank you for your reply. This edited url is working when we run it alone. But what is the problem we using with api’s

1.when we request the wms layer without bbox, the image will appear on full web page not within the particular polygon boundary (due to make request without bbox). 

 


polygon boundary

 


after adding wms ndvi layer without bbox on map

2. In edited request you replace %2c%20 with comma & space (, ). But when we call the request it appears with %2c%20, again it shows long uri error. 
3. By default STYLES= appears (if we pass styles or not) in wms request, we cannot remove STYLES= sending request.

Hi,

The long url error is due to the standard limit for HTTP requests, which is something that Sentinel Hub cannot work around.

I would suggest rounding the coordinates to 2-3 decimals. Since EPSG:3857 is in meter, it doesn’t mean too much to have the precision to 10^-9 m. Below is the example request:

https://services.sentinel-hub.com/ogc/wms/c139a6b4-4a61-MASKED?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&LAYERS=NDVI&WIDTH=1078&HEIGHT=722&CRS=EPSG:3857&BBOX=3061425.2586273975,5707528.88512473,3064000.231017822,5709253.49557546&TIME=2023-02-13&GEOMETRY=POLYGON%20((3063076.608%205708183.013,3063073.026%205708189.201,3063067.33%205708200.469,3063061.634%205708211.737,3063055.938%205708223.005,3063051.507%205708230.939,3063047.075%205708238.873,3063042.644%205708246.806,3063038.212%205708254.74,3063033.781%205708262.674,3063029.349%205708270.607,3063024.918%205708278.541,3063020.486%205708286.474,3063016.055%205708294.408,3063013.608%205708300.658,3063011.302%205708309.957,3063009.878%205708318.269,3063008.457%205708323.24,3063006.063%205708327.817,3063000.859%205708333.441,3062996.518%205708336.569,3062982.117%205708344.239,3062975.125%205708348.906,3062971.11%205708352.47,3062967.961%205708356.179,3062963.644%205708363.623,3062959.327%205708371.068,3062955.01%205708378.512,3062950.693%205708385.957,3062946.375%205708393.401,3062942.058%205708400.845,3062937.741%205708408.29,3062933.424%205708415.734,3062929.106%205708423.179,3062924.789%205708430.623,3062920.472%205708438.067,3062916.155%205708445.512,3062911.837%205708452.956,3062907.007%205708460.963,3062902.177%205708468.97,3062897.346%205708476.976,3062892.516%205708484.983,3062887.685%205708492.99,3062882.855%205708500.997,3062878.024%205708509.003,3062873.637%205708515.751,3062868.49%205708522.075,3062859.408%205708529.909,3062844.73%205708538.07,3062840.978%205708540.524,3062836.49%205708545.116,3062832.473%205708552.152,3062828.455%205708559.188,3062824.437%205708566.224,3062820.42%205708573.26,3062816.402%205708580.296,3062812.384%205708587.332,3062808.367%205708594.368,3062804.349%205708601.405,3062800.331%205708608.441,3062795.513%205708617.196,3062790.694%205708625.952,3062785.876%205708634.707,3062781.057%205708643.463,3062776.239%205708652.218,3062771.886%205708659.709,3062767.534%205708667.2,3062763.181%205708674.691,3062758.829%205708682.182,3062754.476%205708689.673,3062747.934%205708701.073,3062741.391%205708712.472,3062734.849%205708723.872,3062720.779%205708747.608,3062736.988%205708757.623,3062759.213%205708768.537,3062771.595%205708776.015,3062776.386%205708772.306,3062780.907%205708765.317,3062785.429%205708758.328,3062789.95%205708751.339,3062794.471%205708744.349,3062798.993%205708737.36,3062803.514%205708730.371,3062808.035%205708723.382,3062812.557%205708716.393,3062817.078%205708709.403,3062821.599%205708702.414,3062826.121%205708695.425,3062830.642%205708688.436,3062835.163%205708681.447,3062839.585%205708674.504,3062844.006%205708667.562,3062848.428%205708660.619,3062852.85%205708653.677,3062857.271%205708646.735,3062861.693%205708639.792,3062866.115%205708632.85,3062870.536%205708625.907,3062874.958%205708618.965,3062879.379%205708612.023,3062883.801%205708605.08,3062888.223%205708598.138,3062892.644%205708591.196,3062897.552%205708583.749,3062902.461%205708576.303,3062907.369%205708568.856,3062912.277%205708561.41,3062917.186%205708553.964,3062922.094%205708546.517,3062927.002%205708539.071,3062934.349%205708543.021,3062941.695%205708546.971,3062949.042%205708550.921,3062956.389%205708554.871,3062963.735%205708558.821,3062971.082%205708562.771,3062978.429%205708566.721,3062985.775%205708570.671,3062993.122%205708574.621,3063000.469%205708578.571,3063007.815%205708582.521,3063014.937%205708586.817,3063022.058%205708591.113,3063029.18%205708595.408,3063036.301%205708599.704,3063043.423%205708603.999,3063050.544%205708608.295,3063057.666%205708612.59,3063066.199%205708618.223,3063080.759%205708602.663,3063086.097%205708595.325,3063091.434%205708587.987,3063096.772%205708580.649,3063102.11%205708573.311,3063107.447%205708565.973,3063112.785%205708558.634,3063118.122%205708551.296,3063126.117%205708539.526,3063134.112%205708527.755,3063142.106%205708515.985,3063150.159%205708504.247,3063158.212%205708492.509,3063166.264%205708480.772,3063179.679%205708461.068,3063187.626%205708451.295,3063195.574%205708441.523,3063203.522%205708431.75,3063208.926%205708424.248,3063214.33%205708416.746,3063219.733%205708409.243,3063225.137%205708401.741,3063230.541%205708394.239,3063235.945%205708386.737,3063241.348%205708379.234,3063246.933%205708372.416,3063255.899%205708362.746,3063265.661%205708353.809,3063278.692%205708341.758,3063287.384%205708331.874,3063301.874%205708312.56,3063292.987%205708303.911,3063283.999%205708297.349,3063275.012%205708290.787,3063251.674%205708276.23,3063244.971%205708271.97,3063238.269%205708267.71,3063231.567%205708263.45,3063224.864%205708259.189,3063218.162%205708254.929,3063211.459%205708250.669,3063204.757%205708246.409,3063198.054%205708242.148,3063191.352%205708237.888,3063183.972%205708233.547,3063176.592%205708229.206,3063169.213%205708224.865,3063161.833%205708220.524,3063154.453%205708216.183,3063146.88%205708211.498,3063139.307%205708206.814,3063131.733%205708202.129,3063124.16%205708197.445,3063116.586%205708192.76,3063106.94%205708188.042,3063100.418%205708185.983,3063094.636%205708184.9,3063076.608%205708183.013))

Other alternatives would be simplifying the geometry (having less vertices) or using Process API which takes longer request due to its POST type of requests.


Reply