[Geomoose-users] Identify, services, and the PSOD

Bistrais, Bob Bob.Bistrais at maine.gov
Thu Oct 25 11:18:08 PDT 2012


Just for starters, I'd try removing the tab and just use some spaces.
Another thing I'd suggest is removing that #drill down line with the comment.  Might not be the problem, but it can be eliminated as the possibility.
Which one is line 79?


From: Jason Menard [mailto:menard.jason at gmail.com]
Sent: Thursday, October 25, 2012 2:12 PM
To: Bistrais, Bob
Cc: geomoose-users at lists.osgeo.org
Subject: Re: [Geomoose-users] Identify, services, and the PSOD

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<mailto:menard.jason at gmail.com>

On Thu, Oct 25, 2012 at 1:56 PM, Bistrais, Bob <Bob.Bistrais at maine.gov<mailto: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> [mailto: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<mailto: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> [mailto: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<mailto: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<mailto:menard.jason at gmail.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20121025/96bb05e8/attachment-0001.html>


More information about the Geomoose-users mailing list