Rép. : [mapserver-users] Problem creating WMS
SIMON MERCIER
simon.mercier at msp.gouv.qc.ca
Thu Mar 27 05:41:15 PDT 2008
Hi bernardo
for your layer, you need a "wms_name"... to use a getFeatureInfo you
need to add (DUMP TRUE) and (TEMPLATE "../templates/todo.html")... the
html file dont need to exist...! it's a good idea to specify a
TOLERENCE to restrict the search in the map... and use
"gml_include_items" and "ows_exclude_items" in metadata.. if you work
with a RDBMS(postgis or Oracle) dont forget to add your primary key
field off your feature class( ... USING UNIQUE ID ... ) in your DATA
tag layer... good luck
LAYER
NAME "LEP_V_MUNICIPALITE_GEO"
GROUP "DGEQ"
CONNECTIONTYPE oraclespatial
CONNECTION "{..}"
PROCESSING "CLOSE_CONNECTION=DEFER"
DATA "geom_s FROM ADMGEO1.LEP_V_MUNICIPALITE_GEO USING UNIQUE
ID SRID 32198"
TYPE POLYGON
DUMP TRUE
TEMPLATE "../templates/todo.html"
TOLERANCE 10
TOLERANCEUNITS PIXELS
MAXSCALE 700000
MINSCALE 1
LABELMAXSCALE 200000
LABELMINSCALE 1
LABELITEM "NM_MUNCP"
METADATA
"wms_group_title" "Référentiel d'adresse"
"wms_name" "LEP_V_MUNICIPALITE_GEO"
"wms_title" "Municipalité"
"wms_keywordlist" ""
"wms_server_version" "1.1.1"
"wms_abstract" "(1/700 000)"
"wms_srs" "EPSG:2036 EPSG:2037 EPSG:2148
EPSG:2149 EPSG:2150 EPSG:4269 EPSG:4326 EPSG:26917 EPSG:26918 EPSG:26919
EPSG:26920 EPSG:32183 EPSG:32184 EPSG:32185 EPSG:32186 EPSG:32187
EPSG:32188 EPSG:32189 EPSG:32190 EPSG:32198 EPSG:42105 EPSG:42304"
"wms_extent" "-1100000 -23500 1100000 2253500"
"gml_include_items" "all"
"gml_exclude_items" "ID"
"ows_include_items" "all"
"ows_exclude_items" "ID"
END
PROJECTION
"init=epsg:32198"
END
CLASS
NAME "Municipalité"
LABEL
OUTLINECOLOR 235 235 235 #--Halo
TYPE TRUETYPE
FONT "vera"
SIZE 8
POSITION AUTO
COLOR 123 104 238
MINDISTANCE 50000
BUFFER 10
END
STYLE
SYMBOL 'line_solid'
OUTLINECOLOR 123 104 238
SIZE 1
END
END
END
Simon mercier
Ministère de la Sécurité publique
>>> "bernardo" <bernardo at incargis.com> 25/3/2008 18:35 >>>
Hello all:
I'm trying to create a WMS, but i need to use it with a client named
"gvSIG". This program cannot read feature info in type "text/html", only
"gml"
METADATA
"wms_title" "Layer"
"wms_srs" "EPSG:23030"
"wms_abstract" "Layer"
"wms_feature_info_mime_type" "gml"
#"wms_feature_info_mime_type" "text/html"
END
That i wanna do is to show a web page or url for "feature info".
Any ideas?
Bernardo Martín García
Director Técnico
iNCARGiS, C.I.G., S.L.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080327/bf4a3f3d/attachment.htm>
More information about the MapServer-users
mailing list