[Mapserver-users] Regular expression.
Steve Lime
steve.lime at dnr.state.mn.us
Tue Feb 25 09:59:40 PST 2003
Type man regex on your system. It varies from OS to OS. It's safe to say
that it's not exactly what perl uses.
Steve
>>> "krung" <krung at cad.go.th> 02/25/03 12:07PM >>>
Hi Vinko,
It's not the matter for me how big shapefile is. Coz I got these files
from another department, it may be changed. So, I didn't try to transfer
this shapefile to another format. For reality, I didn't know how to post
to PostGIS format till now :). I tried mapserv regexp with regexp used
in perl, e.g. /1\d{4}/ for number 10000-19999, but didn't work. Where
can I find the document about regexp format used in mapserver?
Thanks
Krung
---------- Original Message ----------------------------------
From: Vinko Vrsalovic <vinko at cprsig.cl>
Reply-To: vinko at cprsig.cl
Date: Mon, 24 Feb 2003 17:14:05 -0300
>On Tue, Feb 25, 2003 at 12:25:26AM +0700, krung wrote:
>> Hi all,
>>
>> I have a problem about using regexp. My dbf shapefile has one column
with number context. I would like to classify into range of number,
e.g.
>>
>> 1000-1999, 10000-19999
>>
>> How do I write this expression in map file?
>>
>> CLASSITEM 'num_col'
>> CLASS
>> EXPRESSION /.../ <- 1,000 to 1,999
>> ......
>> END
>> CLASS
>> EXPRESSION /.../ <- 10,000 to 19,999
>> ....
>> END
>>
>> I wouldn't like to use as:
>>
>> EXPRESSION ([num_col] >=1000 and [num_col] <=1999)
>> ......
>> because it is very slow in rendering the image.
>
>This was recently discussed on the list, and DBF indexes are not
>supported yet in MapServer, a good alternative is to use PostGIS as
>the indexes work there. BTW, how big is your shapefile?
>
>--
>Vinko Vrsalovic <el[|- at -|]vinko.cl>
>http://www.cprsig.cl
>
>
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list