[Geomoose-users] Expressions

Dan Little danlittle at yahoo.com
Thu Feb 5 11:38:36 EST 2009


Jay,

Can you include more of the error, it's showing the line of code but does not show the error being generated.



________________________________
From: Jay Kapalczynski <jkapalczynski at ci.maple-grove.mn.us>
To: "geomoose-users at lists.sourceforge.net" <geomoose-users at lists.sourceforge.net>; "geomoose-developers at lists.sourceforge.net" <geomoose-developers at lists.sourceforge.net>
Sent: Thursday, February 5, 2009 10:27:13 AM
Subject: Re: [Geomoose-users] Expressions


I tried this a ton of ways….Talked
with Nate Graham and he said he was doing it this way:
 
<group title="Burgalries"
expand="false">
       <map
title="Burglaries" default="true"
reference="false" popups="false" data="false">
             
<param type="today" offset="-7"
name="LASTWEEK" format="%2Y%2M%2D000000"/>
             
<param type="today" offset="-14"
name="LASTTWOWEEKS" format="%2Y%2M%2D000000"/>
             
<param type="today" offset="-30"
name="LASTTHIRTY" format="%2Y%2M%2D000000"/>
             
<param type="today" offset="-90" name="LASTNINTY"
format="%2Y%2M%2D000000"/>
 
With the field value (string) = 090203184237
– Year/Month/Day/Time
 
 
Placed the exact code in my
project and made sure that the field in the shapefile was exact: 090203184137
I still get an error…I
dotn know what I am doing wrong…I have this working in a prior version
 
I AM STILL GETTING THE ERROR
SEEN BELOW
 
 

Anyone have any thoughts?
 
THanks
 
 
From:Jay Kapalczynski 
Sent: Tuesday, February 03, 2009 3:07 PM
To: 'geomoose-users at lists.sourceforge.net';
'geomoose-developers at lists.sourceforge.net'
Subject: Expressions
 
I am trying to do expressions based on a shapefile…I
had this working in a prior version but now it wont work…
 
The fields GEO_SIMPLE and dateValues exist in the shapefile.
I have the data in “dateValues” as TEXT, 8
characters.
 
The Star symbols come up but the application freezes up and
wont draw the rest of the layers…so I have something wrong…
 
Does the date format have to be changed?
Does the field have to be a date field?
 
THANKS IN ADVANCE FOR ANY HELP
 
I get this error:
 
 
 
DEMO.XML
         
<map title="Burglaries" default="true"
reference="false" popups="true" data="true">
                   
<param type="today" offset="-7"
name="LASTWEEK" format="%2M%2D%2Y"/>
                   
<param type="today" offset="-14" name="LASTTWOWEEKS"
format="%2M%2D%2Y"/>
                   
<param type="today" offset="-30"
name="LASTTHIRTY" format="%2M%2D%2Y"/>
                   
<param type="today" offset="-90"
name="LASTNINTY" format="%2M%2D%2Y"/>
                   
<file>/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/Burglaries/Burglaries_8bit.map</file>
        
</map>
 
 
 
BURGLARIES.map
                               
CLASS
                               
  NAME 'Last Week'
             
                 
     EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND
'[dateValues]' > '%LASTWEEK%')
                               
       COLOR 197 0 255
                               
       SYMBOL "star"
               
               
       SIZE 12
                               
END
                                
                               
CLASS
                               
  NAME 'Last Two Weeks'
                               
  EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' >
'%LASTTWOWEEKS%')
                               
  COLOR 255 0 0
                               
  SYMBOL "star"
               
               
      SIZE 12
                               
END
 
                               
CLASS
                               
  NAME 'Last Thirty Days'
                               
  EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' >
'%LASTTHIRTY%')
                               
  COLOR 0 255 0
                               
  SYMBOL "star"
               
               
      SIZE 12
                               
END
                                
                               
CLASS
                               
  NAME 'Last Ninety Days'
                               
  EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' >
'%LASTNINTY%')
                               
  COLOR 0 0 255
                               
  SYMBOL "star"
               
               
      SIZE 12
                               
END


      
-------------- next part --------------
Skipped content of type multipart/related


More information about the Geomoose-users mailing list