<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Dear members,</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">I would like request you to help me the dynamic query problems. I created map file to show the point for one day on map. Because the table in PostGIS has many rows for many different days. I tested with FILTER but it is not the one I want. I tried to make criteria in DATA by WHERE clause. Please see map file here.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">This part make errors in map file. Other part is ok.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">LAYER #Confidence<BR>&nbsp; CONNECTIONTYPE postgis<BR>&nbsp; NAME "firepoint"<BR>&nbsp; CONNECTION "user=postgres password=kyawsannoo1234 dbname=hotspot_db host=localhost port=5432"<BR>#&nbsp; DATA "the_geom from firepoint"<BR>&nbsp; DATA "the_geom FROM (SELECT hotspot_tmp.the_geom as the_geom,hotspot_tmp.gid as oid,hotspot_tmp.date as date <BR>&nbsp;FROM hotspot_tmp WHERE hotspot_tmp.date='2006-08-15')"<BR>#&nbsp; FILTER "f_posibl &gt;=75"<BR>#&nbsp; HEADER '/ms4w/projects/hotspot/htdocs/templates/HFVS_header.html'<BR>#&nbsp; FOOTER '/ms4w/projects/hotspot/htdocs/templates/HFVS_footer.html'<BR>&nbsp; TOLERANCE 3<BR>&nbsp; STATUS ON<BR>&nbsp; TYPE POINT<BR>&nbsp; CLASSITEM "f_posibl"<BR>&nbsp; TEMPLATE '/ms4w/projects/hotspot/htdocs/templates/HFVS.html'<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME "Low [0-40]"<BR>&nbsp;&nbsp;&nbsp; EXPRESSION ([f_posibl] &lt;= 40)<BR>&nbsp;&nbsp;&nbsp;
 STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 255 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL "square"<BR>&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp; SIZE 5<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME "Moderate [41 - 70]"<BR>&nbsp;&nbsp;&nbsp; EXPRESSION (([f_posibl] &gt; 40) and ([f_posibl] &lt;= 70))<BR>&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 155 55&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL "square"<BR>&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp; SIZE 5<BR>&nbsp;&nbsp;&nbsp; END&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; END<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME "High [71-100]"<BR>&nbsp;&nbsp;&nbsp; EXPRESSION ([f_posibl] &gt; 70)<BR>&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL "square"<BR>&nbsp;&nbsp;&nbsp;&nbsp;
 OUTLINECOLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp; SIZE 5<BR>&nbsp;&nbsp;&nbsp; END&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; END<BR>END<BR></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">==============</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">ERRORS make</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">msDrawMap(): Image handling error. Failed to draw layer named 'firepoint'. <BR>prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT f_posibl::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from (SELECT hotspot_tmp.the_geom as the_geom,hotspot_tmp.gid as oid,hotspot_tmp.date as date FROM hotspot_tmp WHERE hotspot_tmp.date='2006-08-15') WHERE the_geom &amp;&amp; setSRID('BOX3D(-15 -80,195 60)'::BOX3D, find_srid('','(SELECT hotspot_tmp.the_geom as the_geom,hotspot_tmp.gid as oid,hotspot_tmp.date as date FROM hotspot_tmp WHERE hotspot_tmp.date='2006-08-15')','the_geom') )' <BR><BR>Postgresql reports the error as 'ERROR: subquery in FROM must have an alias HINT: For example, FROM (SELECT ...) [AS] foo. '<BR><BR>More Help:<BR><BR>Error with POSTGIS data variable. You specified '&lt;check your .map
 file&gt;'.<BR>Standard ways of specifiying are : <BR>(1) 'geometry_column from geometry_table' <BR>(2) 'geometry_column from (&lt;sub query&gt;) as foo using unique &lt;column name&gt; using SRID=&lt;srid#&gt;' <BR><BR>Make sure you put in the 'using unique &lt;column name&gt;' and 'using SRID=#' clauses in. <BR><BR>For more help, please see http://postgis.refractions.net/documentation/ <BR><BR>Mappostgis.c - version of Jan 23/2004. <BR>msPOSTGISLayerRetrievePK(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePK():select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = '(SELECT hotspot_tmp.the_geom as the_geom,hotspot_tmp.gid as oid,hotspot_tmp.date as date FROM hotspot_tmp WHERE hotspot_tmp.date='2006-08-15')' and pg_constraint.conkey[2] is null <BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV></DIV></div><br>

<hr size=1>Now that's room service! <a href="http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--
">Choose from over 150,000 hotels <br>in 45,000 destinations on Yahoo! Travel</a> to find your fit.</body></html>