RE: [mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS

2010-11-09 Thread Lime, Steve D (DNR)
Actually EXPRESSIONs can handle regex too: CLASSITEM ‘tag’ CLASS EXPRESSION /^TVOP2/ … END This catches all tag’s that begin with the pattern TVOP2. You might want to do a FILTER instead if this is the ONLY filter you need to apply. You’d see a small performance boost if that were the

RE: [mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS

2010-11-09 Thread Fawcett, David (MPCA)
Matt, It looks like Steve Lime's regular expression example will get you what you are looking for. One strategy to think about with MapServer (and any other Web map server) is that when you are looking for the best performance, you want to pre-process your data as much as possible. This

[mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS

2010-11-09 Thread wildcolour
Wow Thanks guys, these where great examples, I got there straight away. Thanks for the advice on performance. This may become an issue, and sounds like it is better to deal with it early. This is a very powerful tool, with a great community base, I am very impressed Now of the fun part, making

[mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS

2010-11-08 Thread wildcolour
Thanks, this looks great. I will try it tonight, but I think is looking just right. One more related question. The column we are using is called 'Tag' and the seemed to have grouped the 'class' and the 'title' in the one column. For example all secondary roads have the tag TVOP2 but roads with