[Geomoose-users] Item Query Problems and Question

Dan Little danlittle at yahoo.com
Wed Nov 30 12:58:41 EST 2011


Um.  Yes.



>________________________________
> From: "Ed Boesenberg, III" <boesiii at yahoo.com>
>To: 'Dan Little' <danlittle at yahoo.com> 
>Cc: geomoose-users at lists.osgeo.org 
>Sent: Wednesday, November 30, 2011 11:53 AM
>Subject: RE: [Geomoose-users] Item Query Problems and Question
> 
>
>Would this (see link) have anything to do with the problem?
> 
>http://www.osgeo.org/pipermail/mapserver-dev/2010-April/009937.html
> 
> 
>From:Dan Little [mailto:danlittle at yahoo.com] 
>Sent: Wednesday, November 30, 2011 9:55 AM
>To: Ed Boesenberg, III; 'Brent Fraser'
>Cc: geomoose-users at lists.osgeo.org
>Subject: Re: [Geomoose-users] Item Query Problems and Question
> 
>This is actually one of the problematic parts of using MapServer templates.  It can be a real bugger to diagnose when it does work.  Of course, when they do work they work beautifully.
> 
>The parameters for processquerytemplate are not related to the features list.  They are "mostly" for internal MapServer business that we don't need to modify, hence, they are functionally both "null."
> 
>Dumping the result is the clearest cut way to see if anything is returned.  If the result is blank there are a few causes:
>1) Complete feature miss.
>2) Malformed Templates.
> 
>If you're getting results then I'd lean towards the second and try to figure out why MapServer is being so hateful.  This particular diagnostic task has had me leaning towards getting MapServer *out* of the template business.  Possibly OGR/GDAL bindings to python/ruby + Mako/Erb would be more useful.  This does not help you but I feel better having espoused a potential long term fix to these troubles.  :-)
> 
> 
> 
>>
>>________________________________
>>
>>From:"Ed Boesenberg, III" <boesiii at yahoo.com>
>>To: 'Dan Little' <danlittle at yahoo.com>; 'Brent Fraser' <bfraser at geoanalytic.com> 
>>Cc: geomoose-users at lists.osgeo.org 
>>Sent: Wednesday, November 30, 2011 8:16 AM
>>Subject: RE: [Geomoose-users] Item Query Problems and Question
>>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/2b1f4805/attachment-0001.html


More information about the Geomoose-users mailing list