Mapfile TOLERANCE/ Mouse-click accuracy?

Nikos nicolas at MAICH.GR
Tue Jul 12 05:31:01 EDT 2005


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