Mapserver as WMS: Query

SUBSCRIBE MAPSERVER-USERS Joe H. Smith thip at AIT.AC.TH
Wed Aug 9 08:26:07 PDT 2006


Dear all,

I have the same problem. I followed the same manual:
http://mapserver.gis.umn.edu/docs/howto/wms_server but I could not make it
work. If anyone can query feature through WMS, please please help.

My map file is below.

LAYER
  NAME Asia
  DATA asia_bnd
  DUMP TRUE

  PROJECTION
    #proj=latlong
    "init=epsg:4326"
  END

METADATA

    "wms_title"           "Asia" ##required
    "wms_srs"             "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:4031"
    "wms_name"            "Asia"
    "wms_server_version"  "1.3.0"
    "gml_include_items"    "all"

END
  TYPE POLYGON
  TRANSPARENCY 70
  TEMPLATE "/data/maplab-2.2/AIT/asia.html"
  HEADER "/data/maplab-2.2/AIT/asia_header.html"
  FOOTER "/data/maplab-2.2/AIT/footer.html"
  STATUS ON
  CLASSITEM cntry_name
  LABELITEM cntry_name

CLASS
    NAME "Asia"
    EXPRESSION /./
STYLE
    OUTLINECOLOR 74 74 74
    COLOR 192 207 203
END
END
END


Thanks,
Thip


Quoting "Kralidis,Tom [Burlington]" <Tom.Kralidis at EC.GC.CA>:

> Luca,
>
> Try setting DUMP TRUE in the LAYER object?
>
> ..Tom
>
>
> -----Original Message-----
> From:	UMN MapServer Users List on behalf of Luca Manganelli
> Sent:	Wed 09-Aug-06 09:59
> To:	MAPSERVER-USERS at LISTS.UMN.EDU
> Cc:
> Subject:	[UMN_MAPSERVER-USERS] Mapserver as WMS: Query
>
> Hi,
>
> I'm trying to make QUERY via WMS working.
>
> In the guide from:
>
> http://mapserver.gis.umn.edu/docs/howto/wms_server
>
> there are three ways:
>
> # GetFeatureInfo: return info about feature(s) at a query (mouse
> click) location. MapServer supports 3 types of responses to this
> request:
>
>     * Text/plain output with attribute info.
>     * Text/html output using MapServer query templates specified in
> the CLASS template parameter. The MIME type returned by the Class
> templates defaults to text/html and can be controlled using the
> metadata "wms_feature_info_mime_type".
>     * Gml features.
>
> well, in my map file I defined:
>
> 	LAYER
> 		NAME "trees"
> 		DATA "base/tree"
> 		METADATA
> 			"wms_title" "trees"
>     			"gml_include_items" "all"
> 		END
>   		PROJECTION
>    			 "init=epsg:26591"
> 		END
> 		TYPE LINE
> 		STATUS ON
> 		#TRANSPARENCY 50
> 		CLASS
> 			NAME "trees"
> 			STYLE
> 				COLOR 0 255 0
> 			END
> 		END
> 		TEMPLATE "tree.html"
> 	END
>
>
> the TEMPLATE "tree.html" contains:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>        "http://www.w3.org/TR/html4/transitional.dtd">
> <html>
>   <head>
>     <title>MapServer Template Sample</title>
>   </head>
>
>   <body>
> 	<b>[cl]</b><br>
> 	id [TREE_ID] - type [TREE_TYP]
>   </body>
> </html>
>
> but in my WFS client (arcmap) it doesn't return me any query result
> (but I see the layer)
>
>
>
>
> --
> "Work only as many hours as you can be productive and only as many hours as
>  you can sustain."  - Kent Beck, in "Extreme Programming Explained"
>
> http://www.trapanator.com/blog
>




----------------------------------------------------------
This mail sent through AIT WebMail : http://www.ait.ac.th/



More information about the MapServer-users mailing list