<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">G'day p,<DIV><DIV><BR><DIV><DIV>On 04/06/2007, at 3:48 PM, p wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Is thematic classification based on joined field</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">values supported? What is the proper syntax for the</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">classification in the map file? I think i need to</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">create an ogr connection but i could not find any</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sample map file showing how to create the connection.</DIV></BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I think all you want to really do is dynamically generate a mapfile based on the thematic classification you want to apply to the polygons (we have to use SQL Server in a similar manner, and that's how we do it.)<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Look at the MapServer Website under classes and look for an example maybe with a regex (to identify the field in the dbf that matches your database).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>We use either perl or php to either replace placeholders in a template file for cgi applications, or (using mapscript) write the mapfile from scratch.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>If you are still having trouble this is probably a better question to direct at the MapServer users list, as it sounds as though you have ms4w working OK.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>cheers</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Ben</DIV><DIV><BR class="khtml-block-placeholder"></DIV></DIV><DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-- </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Ben Madin</DIV><DIV>REMOTE INFORMATION</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>t : +61 8 9192 5455</DIV><DIV>f : +61<SPAN class="Apple-converted-space"> </SPAN>8 9192 5535</DIV><DIV>m : 0448 887 220</DIV><DIV>Broome   WA   6725</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="mailto:ben@remoteinformation.com.au">ben@remoteinformation.com.au</A></DIV><BR class="Apple-interchange-newline"></SPAN><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"><SPAN class="Apple-style-span" style="white-space: pre; ">                                        </SPAN></SPAN>Out here, it pays to know...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></DIV></BODY></HTML>