Jay,<div><br></div><div>I am not exactly sure how the params work in GeoMoose.  One tip in general to be able to isolate the problem to either GeoMoose or MapServer is to look at the actual requests that are being made to MapServer. One of the easiest ways to do this is to either use the FireBug extension in FireFox or the Javascript Console in Chrome. With this take a look at the URL that is being sent to MapServer and see what is in the parameter &amp;LASTWEEK=.</div>

<div><br></div><div><br></div><div>David<br><br><div class="gmail_quote">On Wed, Sep 29, 2010 at 10:49 AM, Jay Kapalczynski <span dir="ltr">&lt;<a href="mailto:jkapalczynski@ci.maple-grove.mn.us">jkapalczynski@ci.maple-grove.mn.us</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="EN-US" link="blue" vlink="purple">

<div>

<p>I thank you for your response....greatly appreciated as I
cannot figure this out....</p>

<p>I know that I have 4 features in the dataset that have a
value of 20100916  that’s 13 days ago....so with the expression
below those 4 or 5 features should show up....but nothing shows up</p>

<p> </p>

<p>IncidentDa is the field (long integer)</p>

<p>Param type is specifying YYYYMMDD my data has values of
20100916 (13 days)</p>

<p> </p>

<p>I have no idea what could be wrong…Thank you all for
your help….</p>

<p> </p>

<p><b><span style="font-size:9.0pt;color:black">.XML file</span></b></p><div class="im">

<p><span style="font-size:9.0pt;color:#632423"> 
&lt;map-source name=&quot;Burglaries&quot; type=&quot;mapserver&quot;&gt;</span></p>

<p><span style="font-size:9.0pt;color:#632423">   
&lt;file&gt;./maple_grove_datasets/police/Burglaries.map&lt;/file&gt;</span></p>

</div><p><span style="font-size:9.0pt;color:#632423">   
&lt;param type=&quot;today&quot; offset=&quot;-90&quot;
name=&quot;LASTNINTY&quot; format=&quot;%4Y%2M%2D&quot; /&gt;</span></p>

<p><span style="font-size:9.0pt;color:#632423">   
&lt;param type=&quot;today&quot; offset=&quot;-30&quot;
name=&quot;LASTTHIRTY&quot; format=&quot;%4Y%2M%2D&quot; /&gt;</span></p>

<p><b><span style="font-size:9.0pt;color:#632423">   
&lt;param type=&quot;today&quot; offset=&quot;-14&quot; name=&quot;LASTTWOWEEKS&quot;
format=&quot;%4Y%2M%2D&quot; /&gt;</span></b></p>

<p><b><span style="font-size:9.0pt;color:#632423">   
&lt;param type=&quot;today&quot; offset=&quot;-7&quot;
name=&quot;LASTWEEK&quot; format=&quot;%4Y%2M%2D&quot; /&gt;</span></b></p>

<p><span style="font-size:9.0pt;color:#632423">   
&lt;param type=&quot;today&quot; offset=&quot;0&quot; name=&quot;TODAY&quot;
format=&quot;%4Y%2M%2D&quot; /&gt;</span></p><div class="im">

<p><span style="font-size:9.0pt;color:#632423">   
&lt;layer name=&quot;Burglaries&quot;/&gt;</span></p>

<p><span style="font-size:9.0pt;color:#632423"> 
&lt;/map-source&gt;</span></p>

<p><span style="font-size:9.0pt;color:#632423"> </span></p>

</div><p><b><span style="font-size:9.0pt;color:black">.MAP file</span></b></p>

<p><span style="font-size:9.0pt;color:#632423">CLASS</span></p>

<p><span style="font-size:9.0pt;color:#632423">       NAME
&#39;Last Weeks&#39;</span></p>

<p><span style="font-size:9.0pt;color:#632423">       EXPRESSION
(&#39;[IncidentDa]&#39; &gt; &#39;%LASTTWOWEEKS%&#39; &amp;&amp; &#39;[IncidentDa]&#39; &lt;
&#39;%LASTWEEK%&#39;)</span></p><div class="im">

<p><span style="font-size:9.0pt;color:#632423">       STYLE</span></p>

<p><span style="font-size:9.0pt;color:#632423">              COLOR
0 100 50 </span></p>

<p><span style="font-size:9.0pt;color:#632423">              SYMBOL
&quot;bike&quot;   </span></p>

<p><span style="font-size:9.0pt;color:#632423">              SIZE
12</span></p>

<p><span style="font-size:9.0pt;color:#632423">       END 
</span></p>

<p><span style="font-size:9.0pt;color:#632423">END</span></p>

<p> </p>

</div><p>=======================================</p>

<p> </p>

<p>BUT if I simply place this in there I get all the points…so
something is weird here because most of the dates are older than 7 days.</p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:Consolas;color:#632423">CLASS</span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:Consolas;color:#632423">       NAME
&#39;Last Weeks&#39;</span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:Consolas;color:#632423">       EXPRESSION
(&#39;[IncidentDa]&#39; &gt; &#39;%LASTWEEK%’)</span></p><div class="im">

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:Consolas;color:#632423">       STYLE</span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:Consolas;color:#632423">              COLOR
0 0 0 </span></p>

</div><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:Consolas;color:#632423">              SYMBOL
&quot;tent&quot;   </span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:Consolas;color:#632423">              SIZE
12</span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:9.0pt;font-family:Consolas;color:#632423">END  </span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:Consolas;color:#632423">#END</span></p><div><div></div><div class="h5">

<p> </p>

<p> </p>

<p>-----Original Message-----<br>
From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>
[mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of Stephen
Woodbridge<br>
Sent: Wednesday, September 29, 2010 8:19 AM<br>
To: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
Subject: Re: [mapserver-users] Expressions</p>

<p> </p>

<p>In EXPRESSIONS you can evaluate any of the following:</p>

<p> </p>

<p>1. Regular expressions treating the value as a string</p>

<p>2. numeric expressions using booleans like
==,&lt;,&gt;,&lt;=,&gt;=</p>

<p>3. string expressions like ==, !=, and I think strlen()</p>

<p> </p>

<p>So if you converted you dates into a format like YYYYMMDD
then it would </p>

<p>be easy to use a numeric expression like:</p>

<p> </p>

<p>EXPRESSION (&#39;[dateValues]&#39; &gt; &#39;%STARTDATE%&#39; &amp;&amp;
&#39;[dateValues]&#39; &lt; &#39;%ENDDATE%&#39;)</p>

<p> </p>

<p>or</p>

<p> </p>

<p>EXPRESSION (&#39;[dateValues]&#39; &gt; &#39;%STARTDATE%&#39;)</p>

<p> </p>

<p>where STARTDATE is the YYYYMMDD value of two weeks ago
and ENDDATE would </p>

<p>be in the same format and allow you to extract record
betwee any two </p>

<p>start and end dates.</p>

<p> </p>

<p>Or you might be able to figure out a complex regular
expression the </p>

<p>represents the last two weeks like:</p>

<p> </p>

<p>EXPRESSION (&#39;[dateValues]&#39; =~ &#39;/%LASTTWOWEEKS%/&#39;)</p>

<p> </p>

<p>I&#39;m not sure what you would need for the regular
expression.</p>

<p> </p>

<p>-Steve W</p>

<p> </p>

<p>On 9/28/2010 4:23 PM, Jay Kapalczynski wrote:</p>

<p>&gt; Anyone have anymore ideas about this….</p>

<p>&gt; </p>

<p>&gt; I have a string field with values</p>

<p>&gt; </p>

<p>&gt; And the code below. The expression does not seem to
be running…if I only</p>

<p>&gt; use LASTTWOWEEKS it still draws all the
points….and I know there are</p>

<p>&gt; values in there from 2008</p>

<p>&gt; </p>

<p>&gt; Thanks</p>

<p>&gt; </p>

<p>&gt; *From:* <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a></p>

<p>&gt; [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] *On
Behalf Of *Jay</p>

<p>&gt; Kapalczynski</p>

<p>&gt; *Sent:* Tuesday, September 21, 2010 9:51 AM</p>

<p>&gt; *To:* &#39;Bob Basques&#39;; <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a></p>

<p>&gt; *Subject:* RE: [mapserver-users] Expressions</p>

<p>&gt; </p>

<p>&gt; My major question is can I do this with a String/text
field? Its the</p>

<p>&gt; only way I can see keeping things in a %2Y%2M%2D
format ex. 092110 (Sept</p>

<p>&gt; 21^st 2010), otherwise the 0 will get removed in a
numeric field</p>

<p>&gt; </p>

<p>&gt; Can I use the format Year, Month, Day? Or do I have
to use Month, Day, Year?</p>

<p>&gt; </p>

<p>&gt; In this example I eliminated two expressions and
focused on one</p>

<p>&gt; Expression to see if it is working.</p>

<p>&gt; </p>

<p>&gt; *_I kept this_*</p>

<p>&gt; </p>

<p>&gt; &lt;map-source name=&quot;Burglaries&quot;
type=&quot;mapserver&quot;&gt;</p>

<p>&gt; </p>

<p>&gt;
&lt;file&gt;./maple_grove_datasets/police/Burglaries.map&lt;/file&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;param type=&quot;today&quot;
offset=&quot;-7&quot; name=&quot;LASTWEEK&quot; format=&quot;%2Y%2M%2D&quot;
/&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;param type=&quot;today&quot;
offset=&quot;-14&quot; name=&quot;LASTTWOWEEKS&quot;
format=&quot;%2Y%2M%2D&quot; /&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;param type=&quot;today&quot;
offset=&quot;-30&quot; name=&quot;LASTTHIRTY&quot; format=&quot;%2Y%2M%2D&quot;
/&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;param type=&quot;today&quot;
offset=&quot;-90&quot; name=&quot;LASTNINTY&quot; format=&quot;%2Y%2M%2D&quot;
/&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;layer name=&quot;Burglaries&quot;/&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;/map-source&gt;</p>

<p>&gt; </p>

<p>&gt; *_In my map file I used _**_ONLY_**_ this_*</p>

<p>&gt; </p>

<p>&gt; CLASS</p>

<p>&gt; </p>

<p>&gt; NAME &#39;Last Weeks&#39;</p>

<p>&gt; </p>

<p>&gt; EXPRESSION (&#39;[dateValues]&#39; &gt; &#39;%LASTTWOWEEKS%&#39;)</p>

<p>&gt; </p>

<p>&gt; STYLE</p>

<p>&gt; </p>

<p>&gt; COLOR 0 100 50</p>

<p>&gt; </p>

<p>&gt; SYMBOL &quot;bike&quot;</p>

<p>&gt; </p>

<p>&gt; SIZE 12</p>

<p>&gt; </p>

<p>&gt; END</p>

<p>&gt; </p>

<p>&gt; END</p>

<p>&gt; </p>

<p>&gt; Now in my data I have these values (below), although
every symbol was</p>

<p>&gt; displayed in the map</p>

<p>&gt; </p>

<p>&gt; NOTE THIS IS A TEXT FIELD</p>

<p>&gt; </p>

<p>&gt; 081204, 081225,090118</p>

<p>&gt; </p>

<p>&gt; These values (above) for the Year, Month, Day format
specified in the</p>

<p>&gt; map source are clearly less than the “last two
weeks”, Where as they are</p>

<p>&gt; older than the last 14 days….so none of them
should show up, but they do</p>

<p>&gt; </p>

<p>&gt; Any thoughts</p>

<p>&gt; </p>

<p>&gt; *From:* <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a></p>

<p>&gt; [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] *On
Behalf Of *Bob Basques</p>

<p>&gt; *Sent:* Friday, September 17, 2010 9:25 PM</p>

<p>&gt; *To:* <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a></p>

<p>&gt; *Subject:* Re: [mapserver-users] Expressions</p>

<p>&gt; </p>

<p>&gt; A first stab at seeing more than one class, might be
to try and switch</p>

<p>&gt; them around order wise, one filter may be
overwriting the other for example.</p>

<p>&gt; </p>

<p>&gt; bobb</p>

<p>&gt; </p>

<p>&gt; </p>

<p>&gt; </p>

<p>&gt; </p>

<p>&gt; On 9/17/2010 8:20 AM, Jay Kapalczynski wrote:</p>

<p>&gt; </p>

<p>&gt; I am using GeoMoose but feel this is more a question
for Map Server.</p>

<p>&gt; </p>

<p>&gt; I am trying to sort my points by dates using the
code below….I think</p>

<p>&gt; that I can do this but not sure</p>

<p>&gt; </p>

<p>&gt; Is this a viable format “2Y%2M%2D” ?</p>

<p>&gt; </p>

<p>&gt; As for the field in the shapefile…If I use an
integer it removes the 0</p>

<p>&gt; from the 092110, (sept 21^st 2010)</p>

<p>&gt; </p>

<p>&gt; If I use a date then there are “/”
… 9/21/10</p>

<p>&gt; </p>

<p>&gt; The only way I can see this happening is using a
text field with retains</p>

<p>&gt; the 0 in 092110</p>

<p>&gt; </p>

<p>&gt; When I use the textfield “dateValues” as
seen below I can get the stars</p>

<p>&gt; to draw but only the LASTWEEK…for some reason
the LASTTWOWEEKS does not</p>

<p>&gt; show and I know that I have a few records with dates
in the last 14 days…</p>

<p>&gt; </p>

<p>&gt; Thoughts?</p>

<p>&gt; </p>

<p>&gt; THANKS….all your help is very
appreciated….</p>

<p>&gt; </p>

<p>&gt; Main .xml file</p>

<p>&gt; </p>

<p>&gt; &lt;map-source name=&quot;Burglaries&quot;
type=&quot;mapserver&quot;&gt;</p>

<p>&gt; </p>

<p>&gt;
&lt;file&gt;./maple_grove_datasets/police/Burglaries.map&lt;/file&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;param type=&quot;today&quot;
offset=&quot;-7&quot; name=&quot;LASTWEEK&quot; format=&quot;%2Y%2M%2D&quot;
/&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;param type=&quot;today&quot;
offset=&quot;-14&quot; name=&quot;LASTTWOWEEKS&quot;
format=&quot;%2Y%2M%2D&quot; /&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;param type=&quot;today&quot;
offset=&quot;-30&quot; name=&quot;LASTTHIRTY&quot; format=&quot;%2Y%2M%2D&quot;
/&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;param type=&quot;today&quot;
offset=&quot;-90&quot; name=&quot;LASTNINTY&quot; format=&quot;%2Y%2M%2D&quot;
/&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;layer name=&quot;Burglaries&quot;/&gt;</p>

<p>&gt; </p>

<p>&gt; &lt;/map-source&gt;</p>

<p>&gt; </p>

<p>&gt; .map file</p>

<p>&gt; </p>

<p>&gt; CLASS</p>

<p>&gt; </p>

<p>&gt; NAME &#39;Last Weeks&#39;</p>

<p>&gt; </p>

<p>&gt; EXPRESSION (&#39;[dateValues]&#39; &gt; &#39;%LASTWEEK%&#39;)</p>

<p>&gt; </p>

<p>&gt; STYLE</p>

<p>&gt; </p>

<p>&gt; COLOR 0 0 0</p>

<p>&gt; </p>

<p>&gt; SYMBOL &quot;star&quot;</p>

<p>&gt; </p>

<p>&gt; SIZE 12</p>

<p>&gt; </p>

<p>&gt; END</p>

<p>&gt; </p>

<p>&gt; END</p>

<p>&gt; </p>

<p>&gt; CLASS</p>

<p>&gt; </p>

<p>&gt; NAME &#39;Last Two Weeks&#39;</p>

<p>&gt; </p>

<p>&gt; EXPRESSION (&#39;[dateValues]&#39; &gt; &#39;%LASTTWOWEEKS%&#39;)</p>

<p>&gt; </p>

<p>&gt; STYLE</p>

<p>&gt; </p>

<p>&gt; COLOR 0 100 50</p>

<p>&gt; </p>

<p>&gt; SYMBOL &quot;star&quot;</p>

<p>&gt; </p>

<p>&gt; SIZE 12</p>

<p>&gt; </p>

<p>&gt; END</p>

<p>&gt; </p>

<p>&gt; END</p>

<p>&gt; </p>

<p>&gt; </p>

<p>&gt; </p>

<p>&gt; </p>

<p>&gt; </p>

<p>&gt; _______________________________________________</p>

<p>&gt; </p>

<p>&gt; mapserver-users mailing list</p>

<p>&gt; </p>

<p>&gt; <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a> 
&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>&gt;</p>

<p>&gt; </p>

<p>&gt;
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></p>

<p>&gt; </p>

<p>&gt; </p>

<p>&gt; </p>

<p>&gt; _______________________________________________</p>

<p>&gt; mapserver-users mailing list</p>

<p>&gt; <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a></p>

<p>&gt;
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></p>

<p> </p>

<p>_______________________________________________</p>

<p>mapserver-users mailing list</p>

<p><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a></p>

<p><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></p>

</div></div></div>

</div>


<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>************************************<br>David William Bitner<br>
</div>