[mapserver-users] What is required to be able to query point layers?

nikos at maich.gr nikos at maich.gr
Thu Dec 25 08:46:44 PST 2008


Hello and Merry X-mas to all,

Bit of a bother here. I've received a point layer to add to my current app,
and while I'm able to render it, I cannot get a query to work.

Even with a huge tolerance, clicking on points does not return a result.
The shapefile check outs fine and queries in ESRI and Qgis apps.

Using MS 5.3-dev from FWTools, on XP

would appreciate some help,

Attached is the map file,

regards,

nikos
########################
map
  extent 311610.0 4326810.0 346410.0 4363900.0
  imagecolor 255 255 255
  name "farditsa1"
  shapepath "data"
  size 600 600
  status on
  symbolset "symbols/all.sym"
  units meters
  # 1 scalebar #none
  scalebar
    backgroundcolor 255 255 0
    color 255 255 255
    imagecolor 255 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 2006_xy_opekepe_Karditsa
  layer
    classitem "AFM"
    data "2006_xy_opekepe_Karditsa"
    footer "2006_xy_opekepe_Karditsa_footer.html"
    group "2006_xy_opekepe_Karditsa"
    header "2006_xy_opekepe_Karditsa_header.html"
    labelcache on
    labelitem "AFM"
    name "2006_xy_opekepe_Karditsa"
    postlabelcache true
    status on
    type point
    TOLERANCE	 600
    TOLERANCEUNITS	pixels
    TRANSPARENCY 60
    # 1 class 2006_xy_opekepe_Karditsa_1
    class
      STYLE
         SYMBOL 'CIRCLE'
         SIZE 10
         OUTLINECOLOR 0 0 0
         COLOR 24 93 38
       END
    END
  end

      #Circle symbol
      SYMBOL
        NAME 'CIRCLE'
        TYPE ellipse
        FILLED true
        POINTS
          1 1
        END
      END
  # 3 web farditsa1.html
  web
    footer "farditsa1_footer.html"
    header "farditsa1_header.html"
    imagepath "/web/farditsa1/tmp/"
    imageurl "/farditsa1/tmp/"
    template "farditsa1.html"
  end
  # 4 querymap hilite
  querymap
    color 255 0 0
    size 200 200
    status on
    style hilite
  end
  # 5 reference graphics/reference.gif
  reference
    color -1 -1 -1
    extent 311610.0 4326810.0 346410.0 4363900.0
    image "graphics/reference.gif"
    outlinecolor 255 0 0
    size 120 120
    status on
  end
  # 6 legend #none
  legend
    keysize 18 12
    status on
    # 1 label #none
    label
      color 0 0 89
      size medium
      type bitmap
    end
  end
end

####################################




More information about the MapServer-users mailing list