[Geomoose-users] Item Query Problems and Question

Ed Boesenberg, III boesiii at yahoo.com
Wed Nov 30 09:16:34 EST 2011


Dan,

 

Yes the template has the magic string.

 

I was looking at query.php and dumping the results of some variables.
Around line 359, an array is pushed out to variable $resultfeatures, when I
dump that variable using var_export I am able to see that there is results
getting passed.  A few lines after that variable there is a line of code
"$results = $map->processquerytemplate(array(), false);" which I am guessing
processes the feature results using the template specified in the MAP file
and pushes it out to html code.  If I do a variable dump on $results it is
blank.

 

Is it possible that "processquerytemplate" is not working properly?

 

Is there a simple way to test "processquerytemplate"?

 

Ed

 

From: Dan Little [mailto:danlittle at yahoo.com] 
Sent: Tuesday, November 29, 2011 1:44 PM
To: Ed Boesenberg, III; 'Brent Fraser'
Cc: geomoose-users at lists.osgeo.org
Subject: Re: [Geomoose-users] Item Query Problems and Question

 

Do you have the magic string "<!-- MapServer Template -->" in your template
file?

 


  _____  


From: "Ed Boesenberg, III" <boesiii at yahoo.com>
To: 'Brent Fraser' <bfraser at geoanalytic.com> 
Cc: geomoose-users at lists.osgeo.org 
Sent: Thursday, November 10, 2011 3:31 PM
Subject: RE: [Geomoose-users] Item Query Problems and Question

Brent,

Not sure if this helps but below is the text from ms_error.txt:

[Thu Nov 10 16:29:44 2011].601000 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Thu Nov 10 16:29:44 2011].601000 msDrawMap(): Layer 0 (ftma_waterlines),
0.000s
[Thu Nov 10 16:29:44 2011].601000 msDrawMap(): Drawing Label Cache, 0.000s
[Thu Nov 10 16:29:44 2011].601000 msDrawMap() total time: 0.001s
[Thu Nov 10 16:29:44 2011].738000 msSaveImage() total time: 0.137s
[Thu Nov 10 16:29:44 2011].741000 msSaveImage() total time: 0.001s
[Thu Nov 10 16:29:44 2011].742000 msLayerGetShape(): Shapefile error.
Shapefile layer has not been opened.
[Thu Nov 10 16:29:44 2011].743000 msFreeMap(): freeing map at 038DB8A0.
[Thu Nov 10 16:29:44 2011].832000 CGI Request 1 on process 5960
[Thu Nov 10 16:29:44 2011].838000 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Thu Nov 10 16:29:44 2011].851000 msDrawMap(): Layer 0 (ftma_waterlines),
0.013s
[Thu Nov 10 16:29:44 2011].851000 msDrawMap(): Drawing Label Cache, 0.000s
[Thu Nov 10 16:29:44 2011].851000 msDrawMap() total time: 0.019s
[Thu Nov 10 16:29:45 2011].231000 msSaveImage() total time: 0.380s
[Thu Nov 10 16:29:45 2011].234000 mapserv request processing time (loadmap
not incl.): 0.402s
[Thu Nov 10 16:29:45 2011].234000 msFreeMap(): freeing map at 01E1CA60.
[Thu Nov 10 16:29:44 2011].914000 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Thu Nov 10 16:29:44 2011].914000 msDrawMap(): Layer 0 (ftma_waterlines),
0.000s
[Thu Nov 10 16:29:44 2011].914000 msDrawMap(): Drawing Label Cache, 0.000s
[Thu Nov 10 16:29:44 2011].914000 msDrawMap() total time: 0.005s
[Thu Nov 10 16:29:45 2011].81000 msSaveImage() total time: 0.167s
[Thu Nov 10 16:29:45 2011].85000 msSaveImage() total time: 0.002s
[Thu Nov 10 16:29:45 2011].85000 msLayerGetShape(): Shapefile error.
Shapefile layer has not been opened.
[Thu Nov 10 16:29:45 2011].505000 msFreeMap(): freeing map at 03966668.

Ed

-----Original Message-----
From: Brent Fraser [mailto:bfraser at geoanalytic.com] 
Sent: Thursday, November 10, 2011 3:35 PM
To: boesiii
Cc: geomoose-users at lists.osgeo.org
Subject: Re: [Geomoose-users] Item Query Problems and Question

Try adding
DEBUG 5
to the mapfile and checking the messages in ms_error.txt

Best Regards,
Brent Fraser


On 11/10/2011 1:23 PM, boesiii wrote:
> I tried to debug using firebug but didn't see anything obvious.  The code
> below is a result from the Firebug console:
>
> <results><html></html></results>
>
> For some reason I don't think it is reading my
> "ftma_waterlines_itemquery.html" but I am not positive.
>
> --
> View this message in context:
http://geomoose-users.964460.n3.nabble.com/Geomoose-users-Item-Query-Problem
s-and-Question-tp3497288p3497875.html
> Sent from the Geomoose-users mailing list archive at Nabble.com.
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>

_______________________________________________
Geomoose-users mailing list
Geomoose-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geomoose-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20111130/ae29e5ec/attachment-0001.html


More information about the Geomoose-users mailing list