[Mapserver-users] Another JOIN problem
helena liena
helenaliena at yahoo.es
Thu Jul 15 01:14:05 PDT 2004
--0-571256974-1089879245=:14774
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi List!
I'm using MapServer version 4.0 and I have a problem with JOIN. Hier is my .map file:
LAYER
TYPE POLYGON
STATUS OFF
DATA elimpdis
NAME elimpdis
CLASS
COLOR -1 -1 -1
OUTLINECOLOR 58 38 0
SYMBOL 'circle'
SIZE 3
END # end class
# QUERYITEM "DISTRITO"
# QUERY
FILTERITEM "DISTRITO"
JOIN
FROM DISTRITO
TO DIS
NAME prova
TABLE "taules/ELE95.dbf"
TYPE multiple
TEMPLATE querys/qprova.html
END #end join
END # end layer
Here is my TEMPLATE file (qprova.html):
<html>
<head><title>Resultats Districtes</title></head>
<body>
[prova]
Districte:[DISTRITO]
IC:[IC]
PP:[PP]
</body>
</html>
If I do like this the result is: msQueryByPoint(): Search returned no results. No matching record(s) found.
I don't know what exactly do the FILTERITEM, but is the only way I could do the join, because when I tried with QUERYITEM I obtain: loadLayer(): Unknown identifier. Parsing error near (QUERYITEM):(line 152)
How can I solve my problem?
I had seen in the mailing list archive there are lot of problems with JOIN, it is possible to do with Mapserver 4.0? What I'm doing wrong?
Thanks in advanced, and excuse me for my bad-worse english.
Helena.
---------------------------------
[input] [input] [input]
--0-571256974-1089879245=:14774
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV>Hi List!<BR>I'm using MapServer version 4.0 and I have a problem with JOIN. Hier is my .map file:</DIV>
<DIV> </DIV>
<DIV> LAYER<BR> TYPE POLYGON<BR> STATUS OFF<BR> DATA elimpdis<BR> NAME elimpdis<BR> CLASS<BR> COLOR -1 -1 -1<BR> OUTLINECOLOR 58 38 0<BR> SYMBOL 'circle' <BR> SIZE 3<BR> END # end class<BR># QUERYITEM "DISTRITO"<BR># QUERY<BR> FILTERITEM "DISTRITO"<BR> JOIN<BR> FROM DISTRITO<BR> TO DIS<BR> NAME prova<BR> TABLE "taules/ELE95.dbf"<BR> TYPE multiple<BR> TEMPLATE querys/qprova.html<BR> END #end join<BR> END # end layer</DIV>
<DIV> </DIV>
<DIV>Here is my TEMPLATE file (qprova.html):</DIV>
<DIV><html><BR><head><title>Resultats Districtes</title></head><BR><body><BR>[prova] <BR>Districte:[DISTRITO]<BR>IC:[IC]<BR>PP:[PP]<BR></body><BR></html></DIV>
<DIV> </DIV>
<DIV>If I do like this the result is: msQueryByPoint(): Search returned no results. No matching record(s) found. </DIV>
<DIV> </DIV>
<DIV>I don't know what exactly do the FILTERITEM, but is the only way I could do the join, because when I tried with QUERYITEM I obtain: loadLayer(): Unknown identifier. Parsing error near (QUERYITEM):(line 152) </DIV>
<DIV>How can I solve my problem?</DIV>
<DIV> </DIV>
<DIV>I had seen in the mailing list archive there are lot of problems with JOIN, it is possible to do with Mapserver 4.0? What I'm doing wrong?</DIV>
<DIV> </DIV>
<DIV>Thanks in advanced, and excuse me for my bad-worse english.</DIV>
<DIV>Helena.</DIV><p>
<hr size=1><br>
<table><tr><td><a href="http://es.rd.yahoo.com/mail_es/tagline/search/image/*http://es.search.yahoo.com/search/es/home/"><img src="http://eur.i1.yimg.com/eur.yimg.com/i/es/mail/srchf.gif" height=80 width=230 alt="Nuevo Yahoo! Búsquedas" border=0 align="left"></a></td></tr>
<tr><td>
<!-- Yahoo! Search -->
<form method=get action="http://es.rd.yahoo.com/mail_es/tagline/search/box/*http://es.search.yahoo.com/search/es">
<input type="text" name="p" size=25> <input type="hidden" name="fr" value="mailtag"> <input type="submit" value="Buscar">
</form>
<!-- End Yahoo! Search -->
</td></tr></table>
--0-571256974-1089879245=:14774--
More information about the MapServer-users
mailing list