Select to view content in your preferred language

kernel density on raster image using flex API or geoprocessing

1030
5
09-19-2012 04:22 AM
NadeemQazi
Regular Contributor
I have used a Kernel density function from spatial Analyst tool box  on a feature class and have determined the kernel density of an attribute. I then used the identify function in ArcMap  to check the density at any point on map. However  i want to publish this map on web. Is there any way to find the kernel density of an attribute on a published map at any point while accessing the published map through the browser. is there any function of flex API that i am suppose to use or  should use the geo processing service. Any suggestion.
Tags (2)
0 Kudos
5 Replies
AnthonyGiles
Honored Contributor
Nadeem,

You should be able to publish your density raster layer as you would any other layer. This will make it identifyable through the services rest end point.

Use the IdentifyTask class to identify your layer:

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/IdentifyTask.html

Regards

Anthony
0 Kudos
by Anonymous User
Not applicable
As for publishing options you can use ArcGIS for Server publishing tools or create an ArcGIS Online account and create a web map including your kernel density layer.
0 Kudos
NadeemQazi
Regular Contributor
Nadeem,

You should be able to publish your density raster layer as you would any other layer. This will make it identifyable through the services rest end point.

Use the IdentifyTask class to identify your layer:

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/IdentifyTask.html

Regards

Anthony


Thanks Anthony, however I have one more query and it is about identify task. the help says it is used for identifying layer whereas i want to determine the density as calculated in the raster layer after applying the kernal density function , so can u please give me some clue how to use this function for my purpose.
Regards
0 Kudos
AnthonyGiles
Honored Contributor
Nadeem,

I don't know if you have tried Roberts enhanced identify tool which can be used in the sample viewer but this uses the identify task and when used against a raster layer it returns the attributes for that layer. Maybe have a look at his code which may point you in the right direction:

http://www.arcgis.com/home/item.html?id=39cf66d58c234279ba728c50461a1a89

Regards

Anthony
0 Kudos
ChristopherBlinn1
Deactivated User
Thanks Anthony, however I have one more query and it is about identify task. the help says it is used for identifying layer whereas i want to determine the density as calculated in the raster layer after applying the kernal density function , so can u please give me some clue how to use this function for my purpose.
Regards


After you create the KDE output, create the raster attribute table.  You'll have to convert your values to integers, but the raster calculator can help with that.  You can always add a field to the table and recalculate the actual density values.

The raster attribute table will contain the density value.  You can even add a text field and populate it with a statement such as:

"The density at this location is " & [DENSITY VALUE FIELD] & "."

Then using the identifytask you can then identify the density values.
0 Kudos