Multi-colored hilite results or other options

Fawcett, David David.Fawcett at STATE.MN.US
Wed Nov 9 05:55:23 PST 2005


Eric, 
 
A different approach is to use URL variables to substitute a new
expression for the classes in your two layers.  
 
http://myurl/cgi-bin/mapserv.exe?map=%5Cmaps%5Ctestmap%5Ctestlegend.map&
mode=map&subjectproperty=6666&comps=
<http://myurl/cgi-bin/mapserv.exe?map=%5Cmaps%5Ctestmap%5Ctestlegend.map
&mode=map&subjectproperty=6666&comps=>  1111,2222,3333,4444 

In you mapfile, in your parcel layer, you have three classes:

 CLASS 
       NAME "Subject"
       EXPRESSION ('[APN]' in '%subjectproperty%')
       OUTLINECOLOR 0 0 0   
       COLOR 255 0 0
    END
    CLASS 
       NAME "Comparable"
       EXPRESSION ('[APN]' in '%comps%')
       OUTLINECOLOR 0 0 0   
       COLOR 0 255 0
    END

    CLASS 
       NAME "EverythingElse"
       OUTLINECOLOR 0 0 0   
       COLOR 255 255 255 
    END

 

David.

 

 

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Eric Brown
Sent: Tuesday, November 08, 2005 11:06 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Multi-colored hilite results or other
options



	Good evening,
	 
	I've been working on several issues and have resolved most of
them by trial and error.
	 
	Here's a rough example of how I can show multiple hilighted
parcels
	 
	<img
src="[program]?map=[map]&layer=layer1&layer=layer2&mode=itemnquerymap&sl
ayer=parcels&qlayer=parcels&qitem=APN&qstring=('[APN]'
<http://www.kerndata.com/cgi-bin/mapserv.exe?map=kerngis/kerndata_compar
able.map&layer=parcels&layer=roads&layer=cities&layer=copyright180&mode=
itemnquerymap&slayer=parcels&qlayer=parcels&qitem=APN&qstring=('[APN]'>
IN '51417116,51449224,51454111,51449212')&mapext=shapes">
	 
	as far as how to provide multiple views  at different extents,
just add "scale=xxxxxx" where xxxx is the scale - e.g. 10000.
	also, the above example requires replacement of [program] and
[map] with your program and map name.
	 
	My question is... 
	 
	As in the example above - I'd like to show a comperable sales
map - with the subject displayed in one color, the comparables displayed
in another.
	 
	Any insight would be greatly appreciated.
	 
	Thank you,
	 
	- Eric Brown

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20051109/f55363ea/attachment.htm>


More information about the MapServer-users mailing list