Select to view content in your preferred language

raster layer on arcgis viewer

2159
7
10-24-2012 05:15 AM
NadeemQazi
Regular Contributor
Hi
I have used a kernel density tool on one of layer in map. I then published this a map layer. however when i tried to used this raster layer in the ARCGIS Viewer it send me following error :
invalid feature layer.
but i can add this layer if i use web publication tool from arcgis server , any suggestion
regards
Tags (2)
0 Kudos
7 Replies
RhettZufelt
MVP Notable Contributor
Try publishing/loading as a MapService as type="dynamic".  I get the same error if I try to load a raster as a feature.

This works for me to load a raster service:

   <layer label="Elevation" type="dynamic" visible="true" alpha="0.9"
      url="http://myhost.com/ArcGIS/rest/services/elevation_only/MapServer"/>


R_
0 Kudos
NadeemQazi
Regular Contributor
Try publishing/loading as a MapService as type="dynamic".  I get the same error if I try to load a raster as a feature.

This works for me to load a raster service:

   <layer label="Elevation" type="dynamic" visible="true" alpha="0.9"
      url="http://myhost.com/ArcGIS/rest/services/elevation_only/MapServer"/>


R_


but i am using it in arcgis viewer  for flex (application builder) how can i use code in it. can u please suggest.
0 Kudos
RhettZufelt
MVP Notable Contributor
I do not use the app building.  However, I suspect that once you publish it as a MapService, you would add it just like any other MapService in the app building.

Suspect you just go to the raster service, and don't "drill in" to the sublayers as that will make it type="feature".

R_
0 Kudos
NadeemQazi
Regular Contributor
I do not use the app building.  However, I suspect that once you publish it as a MapService, you would add it just like any other MapService in the app building.

Suspect you just go to the raster service, and don't "drill in" to the sublayers as that will make it type="feature".

R_


how and where should i go for the raster service , do u mean in application builder. i just published it as map service should i use some other service also ?
0 Kudos
RhettZufelt
MVP Notable Contributor
I am not familiar with the application builder, but if that is what you are using, then yes, in the application builder, add an Operational Layer and navigate to where ever it is that you published the raster mapservice and add it.

You should end up with something like
http://gis01.wch-rcc.com/ArcGIS/rest/services/elevation_only/MapServer
without a /0 at the end.

R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,  I am going to jump in since you don't use App Builder.

Nadeem,

   The reason that in App Builder it is trying to add the map service as a feature type layer is because you are double clicking into the map service instead of just selecting it once. Here is what I mean. In App Builder when you open the folder for your ArcGIS Servers services you can open the particular services and when you are at the Map Service level the label will be "xyz map service (MS)" you can then open that (MS) and choose a particular layer (That is what causes it to be added as a feature type layer). You want to choose the "xyz map service (MS)" and click the include button with the "xyz map service (MS)" selected.
0 Kudos
RhettZufelt
MVP Notable Contributor
Thanks Robert,

I knew there is a difference in how it added it depending on how far you drilled into the service.  But without ever using appbuilder, wasn't sure exactly what one sees when they add Operational Layers.

R_
0 Kudos