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

José María Michia jose.maria.michia at gmail.com
Thu Dec 25 16:43:21 PST 2008


2008/12/25 <nikos at maich.gr>
>
> 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

I believe that the LAYER/CLASS object lacks the TEMPLATE parameter.
You may want to check this.

For example, you must add a line in this way:

> ########################
> map
> ....
>  # 2 layer 2006_xy_opekepe_Karditsa
>  layer
>    classitem "AFM"
>    data "2006_xy_opekepe_Karditsa"
# Add this here:
>    template "2006_xy_opekepe_Karditsa_template.html"
#
>    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
> ....

Saludos
José María



More information about the MapServer-users mailing list