Setting up a Queriable layer?
Brock Anderson
banders at REFRACTIONS.NET
Mon Jan 30 15:35:23 PST 2006
Hi James,
In order to make a layer queryable via WMS GetFeatureInfo requests, I
think your LAYER needs:
DUMP TRUE
TEMPLATE 'anything'
To control which attributes are exposed use the LAYER metadata items
"gml_include_items" and "gml_exclude_items".
You can read about the include/exclude stuff on the WFS howto, but I
believe it's still relavent to WMS GetFeatureInfo.
http://mapserver.gis.umn.edu/docs/howto/wfs_server/#layer-object
It looks like the only thing you're missing is the TEMPLATE.
Brock
James Net wrote:
> Hi all,
>
> How do I setup a queriable layer in my map file?
>
> Here's what I've got, please tell me what I have missed / overlooked:
>
> LAYER
> NAME "my_point"
> DATA "/home/data/my_point_GDA94.shp"
> TYPE POINT
> STATUS ON
> TRANSPARENCY ALPHA
> LABELITEM "NAME"
> MAXSCALE 1000000.0
> MINSCALE 1.0
> SYMBOLSCALE 10000.0
> TOLERANCE 5
> DUMP TRUE # Allow GML export.
> CLASS
> LABEL
> ANTIALIAS true
> FONT "sans"
> COLOR 255 255 255
> POSITION lr
> END
> STYLE
> COLOR 255 0 0
> SYMBOL 'circle'
> SIZE 1
> END
> END
> METADATA
> wms_title "my_point"
> wms_srs "EPSG:4326"
> wms_abstract "my points"
> "gml_include_items" "all"
> END
> END
>
> I only need the GML response. I'm not using mapserver as the client!
>
> Cheers,
>
> James
>
> _________________________________________________________________
> Buy now @ Tradingpost.com.au
> http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fad%2Eau%2Edoubleclick%2Enet%2Fclk%3B24875379%3B12369854%3Ba%3Fhttp%3A%2F%2Fwww%2Etradingpost%2Ecom%2Eau%3Freferrer%3DnmsnHMetagv1&_t=752643439&_r=hotmailtagline&_m=EXT
>
More information about the MapServer-users
mailing list