russell734

Non-deprecated way to access IRaster in Java SOE?

Discussion created by russell734 on Apr 9, 2013
Latest reply on Apr 11, 2013 by ldonahue
As far as I can tell, the only way to get an IRaster from an IMapServerDataAccess in a Java Server Object Extension is to create a new com.esri.arcgis.datasourcesraster.Raster, like this:

[indent]
IMapServerDataAccess dataAccess = (IMapServerDataAccess)mapServer;
return new Raster(dataAccess.getDataSource(mapServer.getDefaultMapName(), 0));
[/indent]

This works, but the one-argument constructor for Raster is deprecated. Is there a non-deprecated way to get the data source as an IRaster?

Outcomes