Select to view content in your preferred language

identify widget version 3.0 raster layer.

2758
19
11-22-2012 03:27 AM
NadeemQazi
Regular Contributor
I have published a map on server consisting of 10 layers of which only one layer is published as raster the rest is published as feature layer. I used the identify widget. when i used the all layers option  then the this widgets shows me data for all the layers in the map with the names of the layers and data in their respective fields. however it does not show me the layer name of the raster layer. However  if I use the name of raster layer in the identify config.xml  to take the information of the raster layer only then it returns me No result found. however if mentioned any other feature layer separately it returns the info for that feature layer. its only for the raster layer that it shows no result found when i use the name of the raster layer and do nt use the all layers. Any suggestion please.
Tags (2)
0 Kudos
19 Replies
RobertScheitlin__GISP
MVP Emeritus
Nadeem,

   In your other post two other members tried thier hardest to exmplain what you needed to do for this.The only thing that they did not do was write the configuration file for you so I guess that is what I will have to do.

<?xml version="1.0" ?>
<configuration>
    <betareturngeometryfix>false</betareturngeometryfix>
    <identifylayeroption>visible</identifylayeroption>
    <identifytolerance>5</identifytolerance>
    <defaultzoomscale>5000</defaultzoomscale>
    <keepidentifyactive>true</keepidentifyactive>
    <returngeometryforzoom>true</returngeometryforzoom>
    <enablelineselect>true</enablelineselect>
    <enableextentselect>true</enableextentselect>
    <enablepolyselect>true</enablepolyselect>
    <enablemouseovergraphicsinfo>true</enablemouseovergraphicsinfo>
    <enablemouseoverrecordinfo>false</enablemouseoverrecordinfo>
    <usemaptime>false</usemaptime>
    <infoautoclosemilliseconds>2000</infoautoclosemilliseconds>
    <autoactivatedtool>mappoint</autoactivatedtool>
    <excludebasemaps>false</excludebasemaps>
    <disablepopuplinks>true</disablepopuplinks>
    <labels>
        <zoom2message>Click to Zoom to Point</zoom2message>
        <identifylabel>Identify</identifylabel>
        <resultslabel>Results</resultslabel>
        <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
        <pointlabel>Identify by Point</pointlabel>
        <linelabel>Identify by Polyline</linelabel>
        <rectlabel>Identify by Rectangle</rectlabel>
        <polylabel>Identify by Polygon</polylabel>
        <clearlabel>Clear</clearlabel>
        <loadinglabel>Loading...</loadinglabel>
        <removeresultmessage>Remove Result</removeresultmessage>
        <idfrom>Identify From</idfrom>
        <noresultsfoundlabel>No Results Found</noresultsfoundlabel>
        <resultsfoundlabel>Results Found</resultsfoundlabel>
    </labels>
    <useproxy />
    <layers onlythese="true">
        <layer>
            <name>kerneldensity</name>
            <fields>
                <field alias="Height" name="pixel value" numberformat="2|,|." />
            </fields>
            <links>
                <link includeinresults="false" field="" alias="" tooltip="">
                    <linkprefix />
                    <linksuffix />
                    <iconfield />
                    <iconprefix />
                    <iconsuffix />
                </link>
            </links>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
    </layers>
    <symbols>
        <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">
            <outline color="0x448ccb" alpha="0.8" width="2" />
        </simplefillsymbol>
        <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">
            <outline style="solid" color="0xffffff" alpha="0.8" width="1" />
        </simplemarkersymbol>
        <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" />
        <simplelinesymbol color="0x448ccb" alpha="0.8" width="2" />
    </symbols>
</configuration>


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos
NadeemQazi
Regular Contributor
Nadeem,

   In your other post two other members tried thier hardest to exmplain what you needed to do for this.The only thing that they did not do was write the configuration file for you so I guess that is what I will have to do.

<?xml version="1.0" ?>
<configuration>
    <betareturngeometryfix>false</betareturngeometryfix>
    <identifylayeroption>visible</identifylayeroption>
    <identifytolerance>5</identifytolerance>
    <defaultzoomscale>5000</defaultzoomscale>
    <keepidentifyactive>true</keepidentifyactive>
    <returngeometryforzoom>true</returngeometryforzoom>
    <enablelineselect>true</enablelineselect>
    <enableextentselect>true</enableextentselect>
    <enablepolyselect>true</enablepolyselect>
    <enablemouseovergraphicsinfo>true</enablemouseovergraphicsinfo>
    <enablemouseoverrecordinfo>false</enablemouseoverrecordinfo>
    <usemaptime>false</usemaptime>
    <infoautoclosemilliseconds>2000</infoautoclosemilliseconds>
    <autoactivatedtool>mappoint</autoactivatedtool>
    <excludebasemaps>false</excludebasemaps>
    <disablepopuplinks>true</disablepopuplinks>
    <labels>
        <zoom2message>Click to Zoom to Point</zoom2message>
        <identifylabel>Identify</identifylabel>
        <resultslabel>Results</resultslabel>
        <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
        <pointlabel>Identify by Point</pointlabel>
        <linelabel>Identify by Polyline</linelabel>
        <rectlabel>Identify by Rectangle</rectlabel>
        <polylabel>Identify by Polygon</polylabel>
        <clearlabel>Clear</clearlabel>
        <loadinglabel>Loading...</loadinglabel>
        <removeresultmessage>Remove Result</removeresultmessage>
        <idfrom>Identify From</idfrom>
        <noresultsfoundlabel>No Results Found</noresultsfoundlabel>
        <resultsfoundlabel>Results Found</resultsfoundlabel>
    </labels>
    <useproxy />
    <layers onlythese="true">
        <layer>
            <name>kerneldensity</name>
            <fields>
                <field alias="Height" name="Pixel Value" numberformat="2|,|." />
            </fields>
            <links>
                <link includeinresults="false" field="" alias="" tooltip="">
                    <linkprefix />
                    <linksuffix />
                    <iconfield />
                    <iconprefix />
                    <iconsuffix />
                </link>
            </links>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
    </layers>
    <symbols>
        <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">
            <outline color="0x448ccb" alpha="0.8" width="2" />
        </simplefillsymbol>
        <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">
            <outline style="solid" color="0xffffff" alpha="0.8" width="1" />
        </simplemarkersymbol>
        <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" />
        <simplelinesymbol color="0x448ccb" alpha="0.8" width="2" />
    </symbols>
</configuration>


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:



well thanks but what you have mentioned i have already applied however it was not successful therefore i put up that question . please rest asure i have did what was advised on this forum .
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nadeem,

   Hmm... Well if your raster layers name in your Rest Service directory is kerneldensity then there is no reason that EXACTLY what I posted should not work then. Maybe you could copy all the text from your REST Service Directory page for the raster layer so that I can take a look. Am I correct in assuming that this service is not publicly accessible?
0 Kudos
NadeemQazi
Regular Contributor
Nadeem,

   Hmm... Well if your raster layers name in your Rest Service directory is kerneldensity then there is no reason that EXACTLY what I posted should not work then. Maybe you could copy all the text from your REST Service Directory page for the raster layer so that I can take a look. Am I correct in assuming that this service is not publicly accessible?

thanks here it is : please also note that I have debugged the whole code . the identifyresult object does not contain any thing in its fields its just "" .however  the identifyResult.feature.attributes contains the values as stretched value  and pixel values. however it does contain id of the layer.

ArcGIS REST Services Directory 
Home > services > Wexford_model_layersnhq22 (MapServer) > kerneldensity  Help | API Reference
JSON
Layer: kerneldensity (ID: 10)
Name: kerneldensity
Display Field:
Type: Raster Layer
Geometry Type: null
Description:
Definition Expression:
Copyright Text:
Default Visibility: true
MaxRecordCount: 0
Supported Query Formats: JSON, AMF
Min Scale: 0
Max Scale: 0
Supports Advanced Queries: false
Supports Statistics: false
Has Labels: false
Can Modify Layer: false
Can Scale Symbols: false
Extent:
    XMin: 267154.2212568933
    YMin: 97192.8062568921
    XMax: 325674.22125689336
    YMax: 172872.80625689265
    Spatial Reference: 29900  (29902)


Drawing Info:

    N/A


HasZ: false

HasM: false

Has Attachments: false

HTML Popup Type: null

Type ID Field: null

Fields: None
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nadeem,

   Mave you tried to use "stretched value" as the field name then?

    <layers onlythese="true">
        <layer>
            <name>kerneldensity</name>
            <fields>
                <field alias="Height" name="stretched value" numberformat="2|,|." />
            </fields>
            <links>
                <link includeinresults="false" field="" alias="" tooltip="">
                    <linkprefix />
                    <linksuffix />
                    <iconfield />
                    <iconprefix />
                    <iconsuffix />
                </link>
            </links>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
    </layers>
0 Kudos
NadeemQazi
Regular Contributor
Nadeem,

   Mave you tried to use "stretched value" as the field name then?

    <layers onlythese="true">
        <layer>
            <name>kerneldensity</name>
            <fields>
                <field alias="Height" name="stretched value" numberformat="2|,|." />
            </fields>
            <links>
                <link includeinresults="false" field="" alias="" tooltip="">
                    <linkprefix />
                    <linksuffix />
                    <iconfield />
                    <iconprefix />
                    <iconsuffix />
                </link>
            </links>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
    </layers>


thnaks for your help. but it did not work as well. I am pasting the config may be i have done some thing wrong please have a look.
<configuration>
    <betareturngeometryfix>false</betareturngeometryfix>
    <identifylayeroption>visible</identifylayeroption>
    <identifytolerance>5</identifytolerance>
    <defaultzoomscale>5000</defaultzoomscale>
    <keepidentifyactive>true</keepidentifyactive>
    <returngeometryforzoom>true</returngeometryforzoom>
    <enablelineselect>true</enablelineselect>
    <enableextentselect>true</enableextentselect>
    <enablepolyselect>true</enablepolyselect>
    <enablemouseovergraphicsinfo>true</enablemouseovergraphicsinfo>
    <enablemouseoverrecordinfo>false</enablemouseoverrecordinfo>
    <usemaptime>false</usemaptime>
    <infoautoclosemilliseconds>2000</infoautoclosemilliseconds>
    <autoactivatedtool>mappoint</autoactivatedtool>
    <excludebasemaps>false</excludebasemaps>
    <disablepopuplinks>true</disablepopuplinks>
    <labels>
        <zoom2message>Click to Zoom to Point</zoom2message>
        <identifylabel>Identify</identifylabel>
        <resultslabel>Results</resultslabel>
        <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
        <pointlabel>Identify by Point</pointlabel>
        <linelabel>Identify by Polyline</linelabel>
        <rectlabel>Identify by Rectangle</rectlabel>
        <polylabel>Identify by Polygon</polylabel>
        <clearlabel>Clear</clearlabel>
        <loadinglabel>Loadingfam...</loadinglabel>
        <removeresultmessage>Remove Result</removeresultmessage>
        <idfrom>Identify From</idfrom>
        <noresultsfoundlabel>No Results Foundhc</noresultsfoundlabel>
        <resultsfoundlabel>Results Found</resultsfoundlabel>
    </labels>
    <layers onlythese="true">
        <layer>
            <name>kerneldensity</name>
            <fields>
                <field alias="Height" name="Stretched value" numberformat="2|,|." />
            </fields>

        </layer>
    </layers>
    <symbols>
        <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">
            <outline color="0x448ccb" alpha="0.8" width="2"/>
        </simplefillsymbol>
        <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">
            <outline style="solid" color="0xffffff" alpha="0.8" width="1"/>
        </simplemarkersymbol>
        <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0"/>
        <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/>
    </symbols>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nadeem,

   Something that you might still be missing about the Flex Language is that it is case sensitive so if you said that you saw in the identify results values returned for "stretched value" than you need to use that exact value (all lower case).
0 Kudos
NadeemQazi
Regular Contributor
thnaks for your help. but it did not work as well. I am pasting the config may be i have done some thing wrong please have a look.
<configuration>
    <betareturngeometryfix>false</betareturngeometryfix>
    <identifylayeroption>visible</identifylayeroption>
    <identifytolerance>5</identifytolerance>
    <defaultzoomscale>5000</defaultzoomscale>
    <keepidentifyactive>true</keepidentifyactive>
    <returngeometryforzoom>true</returngeometryforzoom>
    <enablelineselect>true</enablelineselect>
    <enableextentselect>true</enableextentselect>
    <enablepolyselect>true</enablepolyselect>
    <enablemouseovergraphicsinfo>true</enablemouseovergraphicsinfo>
    <enablemouseoverrecordinfo>false</enablemouseoverrecordinfo>
    <usemaptime>false</usemaptime>
    <infoautoclosemilliseconds>2000</infoautoclosemilliseconds>
    <autoactivatedtool>mappoint</autoactivatedtool>
    <excludebasemaps>false</excludebasemaps>
    <disablepopuplinks>true</disablepopuplinks>
    <labels>
        <zoom2message>Click to Zoom to Point</zoom2message>
        <identifylabel>Identify</identifylabel>
        <resultslabel>Results</resultslabel>
        <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
        <pointlabel>Identify by Point</pointlabel>
        <linelabel>Identify by Polyline</linelabel>
        <rectlabel>Identify by Rectangle</rectlabel>
        <polylabel>Identify by Polygon</polylabel>
        <clearlabel>Clear</clearlabel>
        <loadinglabel>Loadingfam...</loadinglabel>
        <removeresultmessage>Remove Result</removeresultmessage>
        <idfrom>Identify From</idfrom>
        <noresultsfoundlabel>No Results Foundhc</noresultsfoundlabel>
        <resultsfoundlabel>Results Found</resultsfoundlabel>
    </labels>
    <layers onlythese="true">
        <layer>
            <name>kerneldensity</name>
            <fields>
                <field alias="Height" name="Stretched value" numberformat="2|,|." />
            </fields>

        </layer>
    </layers>
    <symbols>
        <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">
            <outline color="0x448ccb" alpha="0.8" width="2"/>
        </simplefillsymbol>
        <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">
            <outline style="solid" color="0xffffff" alpha="0.8" width="1"/>
        </simplemarkersymbol>
        <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0"/>
        <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/>
    </symbols>
</configuration>

  thanx, i checked it unfortunately  it did not work as well. m still debugging it.
0 Kudos
RhettZufelt
MVP Notable Contributor
How are you loading the layer with kerneldenisty in the main config.xml?  What type="", visible="", do you have any displaylevels="" or visiblayers="", definitionexpression, or anything like that set for this layer (do you see the raster layer on the map when you click on it, and wkid of map same as this layer(29900))?

Also, have you tried making a new ArcMap document with just the kernel density layer and publish as a new service.  Then load that service into the map and try to identify against it?  Might give you an idea if it is an issue with that particular service rather than a config issue.

Any chance that you've upgraded from a previous version of the Identify widget without doing a clean on the project or removing/re-adding the (updated) IdendifyWidget.mxml in the modules list?

R_
0 Kudos