[Geomoose-users] Identify not working

Eli Adam eadam at co.lincoln.or.us
Wed Sep 12 16:48:09 PDT 2012


On Wed, Sep 12, 2012 at 4:24 PM, Matej Mailing <mailing at tam.si> wrote:
> Hi,
>
> I have followed all 3 points, but with no success. I still get the
> coordinates and that's it ...

If you started with the demo, does identify on the parcels work?

> Now I have removed all the fields from the template file (that begins
> with the <!-- MapServer Template -->) so it only outputs some "hello
> world text", but it still doesn't work. I have now found a
> metadata="true" option available when defining the layer in the
> mapbook file, but also with this set to true it doesn't work. I have
> also added only this layer to be used for identify via <input
> type="hidden" name="layers" value="..."/> with no result :/
>
> What is the best way to debug this issue?

Firefox/firebug could be a good way to start.  Using the firebug
console on the online demo leads to seeing things like:
post
dojo.preventCache	1347492736022
layers	blank%3Ablank/blank%3Aborders%3Aborders/city_labels%3Aborders/county_labels%3Aborders/city_poly%3Aborders/county_borders%3Aparcels%3Aparcels/parcels%3Asketch
projection	EPSG%3A3857
shape	POINT%28-10372969.112863%205552707.7829098%29
Source
layers=blank%253Ablank%2Fblank%253Aborders%253Aborders%2Fcity_labels%253Aborders%2Fcounty_labels%253Aborders%2Fcity_poly%253Aborders%2Fcounty_borders%253Aparcels%253Aparcels%2Fparcels%253Asketch&projection=EPSG%253A3857&shape=POINT%2528-10372969.112863%25205552707.7829098%2529&dojo.preventCache=1347492736022

response
<results><script> GeoMOOSE.clearLayerParameters('highlight');
GeoMOOSE.turnLayerOff('highlight/highlight');</script><html><![CDATA[<!--
MapServer Template -->
Detailed information for the area you clicked on the map...
<table border="0">
<tr>
<td colspan="2"><b><u>Ground Coordinates</u></b>
<br>
<b>X: </b>485549.182735
<br>
<b>Y: </b>4934226.01043</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<table border="0" cellpadding="1" cellspacing="2">
<tr bgcolor="#DEE5EB"><td colspan="2"><b><u>Parcels</u></b></tr>
<tr>
<td align="right"><b>PIN:</b></td>
<td>130260001175 <a
href="javascript:GeoMOOSE.startService('feature_report', {'PIN' :
'130260001175', 'src' : 'parcels/parcels'})">Report</a></td>
</tr>
<tr>
<td align="right"><b>Owner Name:</b></td>
<td>Thaddeus Garcia</td>
</tr>
<tr>
<td align="right"><b>Est. Market Value:</b></td>
<td>1178700</td>
</tr>
<tr>
<td align="right"><b>Acres:</b></td>
<td>154.37</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
]]></html><footer><![CDATA[<b>Disclaimer: This information is being
distributed as demonstation data only.  You should not use the data
for any other purposes.</b>
]]></footer></results>

You can do the same with your site and see exactly what is coming back
in the response.  Posting more specific details (relevant parts of
mapbook.xml, ogrinfo of datasource) or providing a link to your
website might make it easier for people to make suggestions.  Getting
the parcels example working correctly and then closely matching the
parcels set can be a starting place.  Also confirm that relative paths
are correct.

Best Regards, Eli


>
> Thanks for any ideas in advance ....
> Matej
>
> 2012/9/13 Eli Adam <eadam at co.lincoln.or.us>:
>> Matej,
>>
>> On Wed, Sep 12, 2012 at 3:52 PM, Matej Mailing <mailing at tam.si> wrote:
>>> Hi,
>>>
>>> I have a layer where I have added
>>>                METADATA
>>>                        'identify_record'       'templates/identify.html'
>>>                END
>>> and created a file in the subdirectory of the directory where the map
>>> file is. Identify service is active since when I click to some point I
>>
>> Does your template start with:
>> <!-- MapServer Template -->
>>
>>> get the coordinates. This layer can be the only layer turned on in the
>>> Catalog, but I still get no identify results and the message
>>> containing the coordinates seems to be used.
>>
>> Can you review this draft updated documentation and see if it helps?
>> http://geomoose.org/trunk/howto/identify.html
>>
>> HTH, Eli
>>
>>>
>>> What am I doing wrong? I have been pulling my hair out for quite some
>>> hours now ...
>>>
>>> Thanks for all the ideas.
>>> Matej
>>> _______________________________________________
>>> Geomoose-users mailing list
>>> Geomoose-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/geomoose-users


More information about the Geomoose-users mailing list