[Geomoose-users] Identify, services, and the PSOD
Jason Menard
menard.jason at gmail.com
Thu Oct 25 11:11:34 PDT 2012
Hi Bob,
Yep, local_settings.ini set to maps. :)
The metadata items are separated by a TAB. So the code in the .MAP file is:
METADATA
# drill-down identify service record.
'identify_record' 'templates/identify.html'
END
TOLERANCE 0
END
And all identify.html is is this (all I want is an ID returned):
<!-- MapServer Template -->
<tr bgcolor="#DEE5EB"><td colspan="2"><b><u>Gate Valves</u></b></tr>
<tr>
<td align="right"><b>ID: </b></td>
<td>[ID]</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
The debugger returns this:
[Thu Oct 25 10:11:32 2012].534000 msLoadMap(): Unknown identifier. Parsing
error near (identify_record):(line 79)
... Line 79 is the line.
I can see why it might not work, but the PSOD is an extra wrinkle of
confusion.
Thanks,
Jason
----
Jason Menard
menard.jason at gmail.com
On Thu, Oct 25, 2012 at 1:56 PM, Bistrais, Bob <Bob.Bistrais at maine.gov>wrote:
> One thing to check just to be sure, in conf\local_settings.ini, make
> sure the root is set for the location of your maps directory.****
>
> ** **
>
> *From:* geomoose-users-bounces at lists.osgeo.org [mailto:
> geomoose-users-bounces at lists.osgeo.org] *On Behalf Of *Bistrais, Bob
> *Sent:* Thursday, October 25, 2012 1:54 PM
> *To:* Jason Menard; geomoose-users at lists.osgeo.org
> *Subject:* Re: [Geomoose-users] Identify, services, and the PSOD****
>
> ** **
>
> It would be good if we could see your code. So the point layer draws, but
> adding those items to the metadata section breaks it? Or does the act of
> trying to Identify give you the PSOD?****
>
> Are those metadata items in quotes, with a space between them? (as in your
> message)****
>
> ** **
>
> ** **
>
> ** **
>
> *From:* geomoose-users-bounces at lists.osgeo.org [
> mailto:geomoose-users-bounces at lists.osgeo.org<geomoose-users-bounces at lists.osgeo.org>]
> *On Behalf Of *Jason Menard
> *Sent:* Thursday, October 25, 2012 1:48 PM
> *To:* geomoose-users at lists.osgeo.org
> *Subject:* [Geomoose-users] Identify, services, and the PSOD****
>
> ** **
>
> Hi all,****
>
> ** **
>
> I am slogging through service configuration. I have parcels in my
> datasets, I can get those to work fine with Identify just fine (and Search
> Parcels too). But when I try to add some point features, adding
> the 'identify_record' 'templates/identify.html' to the
> METADATA section of the .MAP file breaks the layer and gives me the PSOD.
> I'm pretty sure I have the templates configured correctly (though with me,
> you never know), but I can't think why I'd get the PSOD.****
>
> ** **
>
> Any ideas?****
>
> ** **
>
> Thanks!****
>
> ** **
>
> -jason
> ----
> Jason Menard
> menard.jason at gmail.com****
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20121025/7b5431dc/attachment.html>
More information about the Geomoose-users
mailing list