<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">I set a WFS server that I'm pretty sure
works correctly since I get a xml file when submitting this to the browser</font><font size=3>
</font><font size=2 face="sans-serif">(Unfortunatly you don't have access
to this domain and I don't have any public domain.)<br>
http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante2.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=HLM_shp_wfs2</font>
<br>
<br><font size=2 face="sans-serif">But I can not load the data from the
WFS in open layers or any other client such as gaia and gvSig. I can see
though a WMS from the same mapfile. Here is my openlayers function and
below the mapfile.</font>
<br><font size=2 face="sans-serif">I don't get any error message and I
can't find a log describing the problem. </font>
<br>
<br><font size=2 face="sans-serif">Thanks for your help,</font>
<br><font size=2 face="sans-serif">Steve</font>
<br>
<br><font size=2 face="sans-serif">/*OpenLayers*/</font>
<br><font size=2 face="sans-serif">function init(){</font>
<br><font size=2 face="sans-serif">
var options = {</font>
<br><font size=2 face="sans-serif">
projection: new OpenLayers.Projection("EPSG:900913"),</font>
<br><font size=2 face="sans-serif">
displayProjection: new OpenLayers.Projection("EPSG:4326"),
//Pour afficher les coord lat long</font>
<br><font size=2 face="sans-serif">
units: "m",</font>
<br><font size=2 face="sans-serif">
numZoomLevels: 10,</font>
<br><font size=2 face="sans-serif"> maxResolution:
"auto", </font>
<br><font size=2 face="sans-serif">
maxExtent: new OpenLayers.Bounds(-9239517, 5465442, -5565974,
9349764)</font>
<br><font size=2 face="sans-serif">
};</font>
<br>
<br>
<br><font size=2 face="sans-serif">
map = new OpenLayers.Map( 'map', options );</font>
<br>
<br><font size=2 face="sans-serif">
/*base
map*/</font>
<br><font size=2 face="sans-serif">
google
= new OpenLayers.Layer.Google( "Google Hybrid", { type: G_HYBRID_MAP,
'sphericalMercator': true} );</font>
<br>
<br><font size=2 face="sans-serif">
/*Overlays*/</font>
<br><font size=2 face="sans-serif">
monWFS
= new OpenLayers.Layer.WFS( </font>
<br><font size=2 face="sans-serif">
"HLM en wfs", "http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante.map2&",
</font>
<br><font size=2 face="sans-serif">
{typename: 'HLM_shp_wfs2'}, </font>
<br><font size=2 face="sans-serif">
{ extractAttributes: true}</font>
<br><font size=2 face="sans-serif">
);</font>
<br><font size=2 face="sans-serif">
hlm = new OpenLayers.Layer.WMS( "HLM", </font>
<br><font size=2 face="sans-serif">
"http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante2.map&",</font>
<br><font size=2 face="sans-serif">
{layers:
'HLM_shp', transparent: "true", format:"image/gif"},{isBaseLayer:
false, visibility: false,singleTile:true}</font>
<br><font size=2 face="sans-serif">
);</font>
<br>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
map.addLayers([google, hlm, monWFS]);</font>
<br>
<br><font size=2 face="sans-serif"> map.zoomToMaxExtent();</font>
<br><font size=2 face="sans-serif">
map.addControl( new OpenLayers.Control.LayerSwitcher() );</font>
<br><font size=2 face="sans-serif"> map.addControl(
new OpenLayers.Control.MousePosition() );</font>
<br>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif">/*map file*/</font>
<br>
<br>
<br>
<br><font size=2 face="Courier New">MAP</font>
<br><font size=2 face="Courier New"> NAME paccsante2</font>
<br><font size=2 face="Courier New"> UNITS kilometers</font>
<br><font size=2 face="Courier New"> SHAPEPATH
'\ms4w\paccSante\data\'</font>
<br><font size=2 face="Courier New"> EXTENT -9239517 5465442 -5565974
9349764</font>
<br>
<br><font size=2 face="Courier New"> DEBUG 5
</font>
<br><font size=2 face="Courier New"> CONFIG MS_ERRORFILE "/ms4w/logs/mapserver.log"</font>
<br>
<br><font size=2 face="Courier New"> RESOLUTION 72</font>
<br><font size=2 face="Courier New"> PROJECTION</font>
<br><font size=2 face="Courier New"> "init=epsg:900913"
#si overlay avec google</font>
<br><font size=2 face="Courier New"> END</font>
<br>
<br><font size=2 face="Courier New"> IMAGETYPE gif</font>
<br>
<br>
<br><font size=2 face="Courier New">OUTPUTFORMAT</font>
<br><font size=2 face="Courier New"> NAME gif</font>
<br><font size=2 face="Courier New"> DRIVER "GD/GIF"</font>
<br><font size=2 face="Courier New"> MIMETYPE "image/gif"</font>
<br><font size=2 face="Courier New"> IMAGEMODE PC256</font>
<br><font size=2 face="Courier New"> EXTENSION "gif"</font>
<br><font size=2 face="Courier New"> TRANSPARENT ON</font>
<br>
<br><font size=2 face="Courier New">END</font>
<br>
<br><font size=2 face="Courier New"> WEB</font>
<br><font size=2 face="Courier New"> IMAGEPATH "D:\ms4w\tmp\ms_tmp\"</font>
<br><font size=2 face="Courier New"> IMAGEURL "/ms_tmp/"</font>
<br><font size=2 face="Courier New"> </font>
<br><font size=2 face="Courier New"> # WMS WFS server settings</font>
<br><font size=2 face="Courier New"> METADATA</font>
<br><font size=2 face="Courier New"> 'wms_title'
'PACC Santé'</font>
<br><font size=2 face="Courier New"> 'wms_onlineresource'
'http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante.map&'</font>
<br><font size=2 face="Courier New"> 'wms_srs'
'EPSG:4326 EPSG:32198 EPSG:900913'</font>
<br><font size=2 face="Courier New"> 'wms_feature_info_mime_type'
"text/html" </font>
<br>
<br><font size=2 face="Courier New"> 'wfs_title'
'wfs_paccsante'</font>
<br><font size=2 face="Courier New"> 'wfs_onlineresource'
'http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante.map2&'</font>
<br><font size=2 face="Courier New"> 'wfs_srs'
'EPSG:900913'</font>
<br><font size=2 face="Courier New"> END</font>
<br>
<br><font size=2 face="Courier New"> END #web</font>
<br>
<br><font size=2 face="Courier New">LAYER</font>
<br><font size=2 face="Courier New"> NAME 'HLM_shp'</font>
<br><font size=2 face="Courier New"> TYPE POINT</font>
<br><font size=2 face="Courier New"> DATA 'hlm/hlm_omh'</font>
<br><font size=2 face="Courier New"> DUMP true</font>
<br><font size=2 face="Courier New"> METADATA</font>
<br><font size=2 face="Courier New"> 'wms_title' 'HLM_shp'</font>
<br><font size=2 face="Courier New"> 'wms_srs'
'EPSG:4326 EPSG:32198 EPSG:900913'</font>
<br><font size=2 face="Courier New"> END</font>
<br>
<br><font size=2 face="Courier New"> STATUS off</font>
<br><font size=2 face="Courier New"> OPACITY 100</font>
<br><font size=2 face="Courier New"> PROJECTION</font>
<br><font size=2 face="Courier New"> "init=epsg:4326"</font>
<br><font size=2 face="Courier New"> END</font>
<br>
<br><font size=2 face="Courier New"> CLASS </font>
<br><font size=2 face="Courier New"> STYLE</font>
<br><font size=2 face="Courier New"> COLOR 0 0 255</font>
<br><font size=2 face="Courier New"> SYMBOL 'CIRCLE'</font>
<br><font size=2 face="Courier New"> SIZE 8</font>
<br><font size=2 face="Courier New"> END</font>
<br><font size=2 face="Courier New"> END #class</font>
<br><font size=2 face="Courier New">END</font>
<br>
<br><font size=2 face="Courier New">LAYER</font>
<br><font size=2 face="Courier New"> NAME 'HLM_shp_wfs2'</font>
<br><font size=2 face="Courier New"> TYPE POINT</font>
<br><font size=2 face="Courier New"> DATA 'hlm/hlm_omh'</font>
<br><font size=2 face="Courier New"> DUMP true</font>
<br><font size=2 face="Courier New"> STATUS
ON</font>
<br><font size=2 face="Courier New"> METADATA</font>
<br><font size=2 face="Courier New"> 'wfs_title'
'HLM en wfs'</font>
<br><font size=2 face="Courier New"> 'gml_featureid'
'IDBATIMENT'</font>
<br><font size=2 face="Courier New"> 'gml_include_items'
'all'</font>
<br><font size=2 face="Courier New"> END</font>
<br><font size=2 face="Courier New"> </font>
<br><font size=2 face="Courier New"> PROJECTION</font>
<br><font size=2 face="Courier New"> "init=epsg:4326"</font>
<br><font size=2 face="Courier New"> END</font>
<br>
<br><font size=2 face="Courier New"> CLASS</font>
<br><font size=2 face="Courier New"> NAME
"hlm_wfs" </font>
<br><font size=2 face="Courier New"> STYLE</font>
<br><font size=2 face="Courier New"> COLOR 0 0 255</font>
<br><font size=2 face="Courier New"> SYMBOL 'CIRCLE'</font>
<br><font size=2 face="Courier New"> SIZE 8</font>
<br><font size=2 face="Courier New"> END</font>
<br><font size=2 face="Courier New">TEMPLATE "../template/wfs_hlm.html"</font>
<br><font size=2 face="Courier New"> END #class</font>
<br><font size=2 face="Courier New">END</font>
<br>
<br>
<br>
<br><font size=2 face="Courier New"> #Circle symbol</font>
<br><font size=2 face="Courier New"> SYMBOL</font>
<br><font size=2 face="Courier New"> NAME 'CIRCLE'</font>
<br><font size=2 face="Courier New"> TYPE ellipse</font>
<br><font size=2 face="Courier New"> FILLED
true</font>
<br><font size=2 face="Courier New"> POINTS</font>
<br><font size=2 face="Courier New">
1 1</font>
<br><font size=2 face="Courier New"> END</font>
<br><font size=2 face="Courier New"> END </font>
<br>
<br><font size=2 face="Courier New">END #map</font>
<br><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction des risques biologiques, environnementaux et occupationnels<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size=3>Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a>
<p><font size=3> </font>
<p>