Mapfile TOLERANCE/ Mouse-click accuracy?

Flavio Hendry flavio at TYDAC.CH
Tue Jul 12 03:47:15 PDT 2005


salut

you should use any tolerance at all ...

Mit freundlichem Gruss / Best Regards
Flavio Hendry

----------------------------------------------------------------
TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual
----------------------------------------------------------------
############      Mit freundlichen Gruessen / Kind Regards
############             mailto:flavio at tydac.ch
############         TYDAC AG - http://www.tydac.ch
####    ####        Geographic Information Solutions
####    ####         Luternauweg 12 -- CH-3006 Bern
############   Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860
----------------------------------------------------------------


-----Original Message-----
From: Nikos <nicolas at MAICH.GR>
To: MAPSERVER-USERS at LISTS.UMN.EDU
Date: Tue, 12 Jul 2005 12:31:01 +0300
Subject: [UMN_MAPSERVER-USERS] Mapfile TOLERANCE/ Mouse-click accuracy?

> Hello,
> 
> I could use a bit of help here.
> Using a simple shapefile of France, about 20 regions, under windows, 
> ms3.6 cgi, and standard html interface...
> 
> My problem is accuarcy when querying a polygon, e.g when I click on
> what 
> should be Corsica, I get the alps..
> 
> I've cranked up the TOLERANCE in my layer definition.. but all that
> does 
> is return more regions when "querying multiple" that does not really
> help..
> No projection is set in mapfile
> I've checked the shapefile with shpdump, and it reports the extents
> as 
> are in the mapfile
> The shape file queries correctly in Arcview...
> 
> could use a bit of help here..
> 
> regards,
> 
> nicolas boretos
> 
> ----------
> map
>   extent -5.18189952103 41.3328004925 9.5598004927 51.0886995016
>   imagecolor 255 255 255
>   name "france"
>   shapepath "data"
>   size 600 600
>   status on
>   symbolset "symbols/all.sym"
>   units KILOmeters
>   # 1 scalebar #none
>   scalebar
>     backgroundcolor 25 255 0
>     color 255 255 255
>     imagecolor 25 255 255
>     intervals 4
>     outlinecolor 0 0 0
>     size 200 7
>     status on
>     style 0
>     transparent TRUE
>     units meters
>     # 1 label #none
>     label
>       backgroundcolor 0 0 0
>       color 255 255 0
>       size tiny
>     end
>   end
>   # 2 layer regions
>  layer
>     classitem "COLZA_TN"
>     data "regions"
>     footer "regions_footer.html"
>     group "regions"
>     header "regions_header.html"
>     TOLERANCE 70
>     TRANSPARENCY 80
>     labelcache on
>     labelitem "COLZA_TN"
>     name "Regions"
>     postlabelcache true
>     status on
>     type polygon
>     # 1 class regions_1
>    class
>       backgroundcolor 128 128 128
>       color 85 34 221
>       name "regions_1_1"
>       NAME Regions
>       outlinecolor 0 0 0
>       template "regions_query.html"
>     end
>      #This is where the parametric query works..
>   end
>   # 3 web france.html
>   web
> blah...
> 
> ---------------------



More information about the MapServer-users mailing list