POST
|
Sorry, I thought it was implied by the fact that I was using IMapServerDataAccess. As of 10.1, all map services are optimized map services, so you have to use IMapServerDataAccess to access map data from an SOE. Just to be sure, I tried using getLayer(String,int) and it fails with an AutomationException (no such interface supported). Thanks, Eric
... View more
04-11-2013
07:26 AM
|
0
|
0
|
294
|
POST
|
That may work. I'll give it a try when I'm back in the office tomorrow. But I was under the impression that you can't use the getLayer method from an SOE at all as of 10.1, because it's not supported on optimized map services (see, for example, http://blogs.esri.com/esri/arcgis/2010/11/12/accessing-optimized-map-services-with-server-object-extensions/ and http://blogs.esri.com/esri/arcgis/2011/11/15/whats-new-for-java-server-object-extension-builders/).
... View more
04-10-2013
05:27 PM
|
0
|
0
|
294
|
POST
|
It's just a regular raster layer, displaying an 8-bit unsigned file geodatabase raster dataset of flow direction data.
... View more
04-10-2013
09:27 AM
|
0
|
0
|
294
|
POST
|
Hi Leo, The documentation certainly seems to indicate that the result of getDataSource can be cast directly to an IRaster or IFeatureClass, but that's actually not the case. The getDataSource method returns a com.esri.arcgis.interop.RemoteObjRef, which can't be cast to an IRaster or IFeatureClass. You have to wrap in in a call to new FeatureClass(Object) or new Raster(Object). This isn't in the documentation, but it is in the sample code. Eric
... View more
04-10-2013
07:10 AM
|
0
|
0
|
294
|
POST
|
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?
... View more
04-09-2013
05:41 PM
|
0
|
9
|
766
|
POST
|
When I set the tolerance of an IdentifyParameters object to zero, the IdentifyTask omits the tolerance query parameter to the REST service, which causes it to return an error. I'm using agslib-1.3-2009-10-31.swc. Is this fixed in 2.0?
... View more
04-06-2010
08:26 AM
|
0
|
2
|
530
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|