NoData value for pixel that HAS data for ArcGIS server Image Service

المشرف العام

Administrator
طاقم الإدارة
I have an image service created from a mosaic dataset, I have brought it into a leaflet webmapping viewer and within this I have a tool to identify the pixel values. In this case they are water depths.

The problem is for 3 of the images in the layer it returns a NoData value when there is a value present. The browser uses the Pixel values to colour the data so it must see something but the response for the pixel value is 'NoData'. The following is the function to retrieve the pixel value:

function iDepthClick(e) {

Bathy.identify().at(e.latlng).run(function(error, results){ depthPixelClick = results.pixel; if(depthPixelClick.properties.value == 'NoData'){ depthPopup = depthPixelClick.properties.value; var depthPoint = L.marker(e.latlng); depthMarker.addLayer(depthPoint); } else{ depthPixel = parseFloat(depthPixelClick.properties.value); depthPopup = depthPixel.toFixed(2) + 'm'; var depthPoint = L.marker(e.latlng); depthMarker.addLayer(depthPoint); } depthPopupContainer.innerHTML = depthPopup; map.addLayer(depthMarker); depthPoint.bindPopup(depthPopupContainer).openPopup(); });}

There's no cache for this service but I do allow users to cache locally but have cleared my cache, I've tried: publishing a completely new servicere-adding the images and rebuilding overviews etc

Within ArcMap I can use the identify tool fine on them it is just in the browser the issue is.





أكثر...
 
أعلى