Thanks David, found the problem "=" symbol should have been "eq"
Regards, Hayden ________________________________ From: Fawcett, David [mailto:[EMAIL PROTECTED] Sent: Tuesday, 16 October 2007 12:06 AM To: Hayden Fisher; [email protected] Subject: RE: [UMN_MAPSERVER-USERS] [MI-L] Re: MapServer, IIS and ASP Hayden, What do you mean by 'it is not working'? It is a little tough to help you with such general symptoms. Another thing to try: If your column Assettype is a string, I don't think that your expression is correctly formed. If it is a string, you also need to quote the column name. Try something like: EXPRESSION ('[Assettype]'="Unknown") David. -----Original Message----- From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Hayden Fisher Sent: Thursday, October 11, 2007 11:12 PM To: [email protected] Subject: Re: [UMN_MAPSERVER-USERS] [MI-L] Re: MapServer, IIS and ASP Hi All, Have MapServer MapScript running! I have MapInfo tables with DBF data files. I am now trying to place different symbology for each asset type. I have placed the layer portion of my MapFile below. This is what I've tried so far, could someone take a look, as it is not working. Also polygons on top of polygons, is there a way to make it so you can see both? LAYER NAME "wsregn" STATUS default TYPE polygon MINSCALE 0.1 MAXSCALE 50000 CONNECTIONTYPE OGR CONNECTION "C:\Inetpub\wwwroot\biz_e_asset_new\AMS_Final\WS\REGIONS\CORE\wsregn.tab " PROJECTION auto END CLASSITEM "assettype" CLASS EXPRESSION ([Assettype]="Unknown") STYLE COLOR 100 0 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Building") STYLE COLOR 0 100 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Land") STYLE COLOR 100 100 0 OUTLINECOLOR 0 0 100 SYMBOL 0 END END END Regards, Hayden Fisher
