I'm trying to to add a raster file using a dynamic workspace based on this example (Local server dynamic workspace raster | ArcGIS for Developers )
and i'm getting this exception
"ArcGISWebException: Unable to find the specified 'dataSourceName' in 'dataSource' for dynamic dataLayer with 'id': 0."
any ideas on what #i'm doing wrong?
Checked in ArcGIS Pro and it seems that the raster works the same way changing zoom does not reload the raster.
Use of the local server to load raster data is in most cases a legacy approach and is now superseded by the direct API approach.
Does the raster data display correctly in ArcGIS Pro?
What is the difference between using the local server and dynamic workspace and adding the raster directly?
the reason i tried using the local server is that when i'm adding the raster file in that is in your sample using the direct API the raster image is not reloaded correctly when changing zoom levels.
I've tried your shape file dynamic workspace example and i'm getting the same error.
Hi,
To add raster data to the map/scene we recommend using the direct API capability rather than via the Local Server component. For more information see the doc/sample: Raster Class.
Regards
Mike
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.