<br><font size=2 face="sans-serif">Thanks Maxime,</font>
<br><font size=2 face="sans-serif">Of course it was a part of the problem
in openlayers. I fixed that but it still doesn't load in OL, gvSig and
gaia</font>
<br>
<br><font size=2 face="sans-serif">My guess is it is a permission issue.
Any suggestions on some tests I could do or maybe there is a log I can
create?</font>
<br>
<br><font size=2 face="sans-serif">Steve</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>&nbsp; </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Maxime Phaneuf &lt;maxime.phaneuf@usherbrooke.ca&gt;@openlayers.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : users-bounces@openlayers.org</font>
<p><font size=1 face="sans-serif">05/06/2009 09:46 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">users@openlayers.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [OpenLayers-Users] Problem to load
a WFS</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2><br>
Hi Steve<br>
<br>
Your mapfile name is paccsante2.map, but in your WFS constructor you're<br>
calling paccsante.map2.<br>
<br>
As far as I can see, that must be your problem.<br>
<br>
Maxime<br>
<br>
<br>
Steve.Toutant wrote:<br>
&gt; <br>
&gt; Hi,<br>
&gt; I set a WFS server that I'm pretty sure works correctly since I get
a xml <br>
&gt; file when submitting this to the browser (Unfortunatly you don't have
<br>
&gt; access to this domain and I don't have any public domain.)<br>
&gt; http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante2.map&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=HLM_shp_wfs2<br>
&gt; <br>
&gt; But I can not load the data from the WFS in open layers or any other
<br>
&gt; client such as gaia and gvSig. I can see though a WMS from the same
<br>
&gt; mapfile. Here is my openlayers function and below the mapfile.<br>
&gt; I don't get any error message and I can't find a log describing the
<br>
&gt; problem. <br>
&gt; <br>
&gt; Thanks for your help,<br>
&gt; Steve<br>
&gt; <br>
&gt; /*OpenLayers*/<br>
&gt; function init(){<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var options
= {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; projection:
new OpenLayers.Projection(&quot;EPSG:900913&quot;),<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displayProjection:
new OpenLayers.Projection(&quot;EPSG:4326&quot;), <br>
&gt; //Pour afficher les coord lat long<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; units: &quot;m&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; numZoomLevels:
10,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; maxResolution: &quot;auto&quot;, <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxExtent:
new OpenLayers.Bounds(-9239517, 5465442, <br>
&gt; -5565974, 9349764)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br>
&gt; <br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map = new OpenLayers.Map(
'map', options );<br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; /*base map*/<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; google = new OpenLayers.Layer.Google( &quot;Google <br>
&gt; Hybrid&quot;, { type: G_HYBRID_MAP, 'sphericalMercator': true} );<br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; /*Overlays*/<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; monWFS = new OpenLayers.Layer.WFS( <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;HLM en wfs&quot;, <br>
&gt; &quot;http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante.map2&amp;&quot;,
<br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {typename: 'HLM_shp_wfs2'}, <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { extractAttributes: true}<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; );<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hlm = new OpenLayers.Layer.WMS(
&quot;HLM&quot;, <br>
&gt; &nbsp;<br>
&gt; &quot;http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante2.map&amp;&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {layers:
'HLM_shp', transparent: <br>
&gt; &quot;true&quot;, format:&quot;image/gif&quot;},{isBaseLayer: false,
visibility: <br>
&gt; false,singleTile:true}<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br>
&gt; <br>
&gt; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.addLayers([google, hlm,
monWFS]);<br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; map.zoomToMaxExtent();<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.addControl( new OpenLayers.Control.LayerSwitcher()
);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; map.addControl( new OpenLayers.Control.MousePosition()
);<br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; <br>
&gt; /*map file*/<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; MAP<br>
&gt; &nbsp; NAME paccsante2<br>
&gt; &nbsp; UNITS kilometers<br>
&gt; &nbsp; SHAPEPATH &nbsp; &nbsp; '\ms4w\paccSante\data\'<br>
&gt; &nbsp; EXTENT -9239517 5465442 -5565974 9349764<br>
&gt; <br>
&gt; &nbsp; DEBUG 5 <br>
&gt; &nbsp; CONFIG MS_ERRORFILE &quot;/ms4w/logs/mapserver.log&quot;<br>
&gt; <br>
&gt; &nbsp; RESOLUTION 72<br>
&gt; &nbsp; PROJECTION<br>
&gt; &nbsp; &nbsp; &quot;init=epsg:900913&quot; #si overlay avec google<br>
&gt; &nbsp; END<br>
&gt; <br>
&gt; &nbsp; IMAGETYPE gif<br>
&gt; <br>
&gt; <br>
&gt; OUTPUTFORMAT<br>
&gt; &nbsp; NAME gif<br>
&gt; &nbsp; DRIVER &quot;GD/GIF&quot;<br>
&gt; &nbsp; MIMETYPE &quot;image/gif&quot;<br>
&gt; &nbsp; IMAGEMODE PC256<br>
&gt; &nbsp; EXTENSION &quot;gif&quot;<br>
&gt; &nbsp; TRANSPARENT ON<br>
&gt; <br>
&gt; END<br>
&gt; <br>
&gt; &nbsp; WEB<br>
&gt; &nbsp;IMAGEPATH &quot;D:\ms4w\tmp\ms_tmp\&quot;<br>
&gt; &nbsp; &nbsp; IMAGEURL &nbsp;&quot;/ms_tmp/&quot;<br>
&gt; &nbsp;<br>
&gt; &nbsp; &nbsp; # WMS WFS server settings<br>
&gt; &nbsp; &nbsp; METADATA<br>
&gt; &nbsp; &nbsp; &nbsp; 'wms_title' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
'PACC Santé'<br>
&gt; &nbsp; &nbsp; &nbsp; 'wms_onlineresource' <br>
&gt; 'http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante.map&amp;'<br>
&gt; &nbsp; &nbsp; &nbsp; 'wms_srs' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; 'EPSG:4326 EPSG:32198 EPSG:900913'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 'wms_feature_info_mime_type' &quot;text/html&quot;
<br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 'wfs_title' 'wfs_paccsante'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 'wfs_onlineresource' <br>
&gt; 'http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante.map2&amp;'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 'wfs_srs' 'EPSG:900913'<br>
&gt; &nbsp; &nbsp; END<br>
&gt; <br>
&gt; &nbsp; END #web<br>
&gt; <br>
&gt; LAYER<br>
&gt; &nbsp; &nbsp; NAME 'HLM_shp'<br>
&gt; &nbsp; &nbsp; TYPE POINT<br>
&gt; &nbsp; &nbsp; DATA 'hlm/hlm_omh'<br>
&gt; &nbsp; &nbsp; DUMP true<br>
&gt; &nbsp; &nbsp; METADATA<br>
&gt; &nbsp; &nbsp; &nbsp; 'wms_title' 'HLM_shp'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 'wms_srs' &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; 'EPSG:4326 EPSG:32198 EPSG:900913'<br>
&gt; &nbsp; &nbsp; END<br>
&gt; <br>
&gt; &nbsp; &nbsp; STATUS off<br>
&gt; &nbsp; &nbsp; OPACITY 100<br>
&gt; &nbsp; PROJECTION<br>
&gt; &nbsp; &nbsp; &quot;init=epsg:4326&quot;<br>
&gt; &nbsp; END<br>
&gt; <br>
&gt; &nbsp; CLASS <br>
&gt; &nbsp; &nbsp; STYLE<br>
&gt; &nbsp; &nbsp; &nbsp; COLOR 0 0 255<br>
&gt; &nbsp; &nbsp; &nbsp; SYMBOL 'CIRCLE'<br>
&gt; &nbsp; &nbsp; &nbsp; SIZE 8<br>
&gt; &nbsp; &nbsp; END<br>
&gt; &nbsp; END #class<br>
&gt; END<br>
&gt; <br>
&gt; LAYER<br>
&gt; &nbsp; &nbsp; NAME 'HLM_shp_wfs2'<br>
&gt; &nbsp; &nbsp; TYPE POINT<br>
&gt; &nbsp; &nbsp; DATA 'hlm/hlm_omh'<br>
&gt; &nbsp; &nbsp; DUMP true<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; STATUS ON<br>
&gt; &nbsp; &nbsp; METADATA<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 'wfs_title' 'HLM en wfs'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 'gml_featureid' 'IDBATIMENT'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 'gml_include_items' 'all'<br>
&gt; &nbsp; &nbsp; END<br>
&gt; &nbsp;<br>
&gt; &nbsp; PROJECTION<br>
&gt; &nbsp; &nbsp; &quot;init=epsg:4326&quot;<br>
&gt; &nbsp; END<br>
&gt; <br>
&gt; &nbsp; CLASS<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; NAME &quot;hlm_wfs&quot; <br>
&gt; &nbsp; &nbsp; STYLE<br>
&gt; &nbsp; &nbsp; &nbsp; COLOR 0 0 255<br>
&gt; &nbsp; &nbsp; &nbsp; SYMBOL 'CIRCLE'<br>
&gt; &nbsp; &nbsp; &nbsp; SIZE 8<br>
&gt; &nbsp; &nbsp; END<br>
&gt; TEMPLATE &quot;../template/wfs_hlm.html&quot;<br>
&gt; &nbsp; END #class<br>
&gt; END<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; #Circle symbol<br>
&gt; &nbsp; &nbsp; &nbsp; SYMBOL<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; NAME 'CIRCLE'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; TYPE ellipse<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; FILLED true<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; POINTS<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 1<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; END<br>
&gt; &nbsp; &nbsp; &nbsp; END <br>
&gt; <br>
&gt; END #map<br>
&gt; <br>
&gt; Steve Toutant, M. Sc.<br>
&gt; Analyste en géomatique<br>
&gt; Secteur environnement<br>
&gt; Direction des risques biologiques, environnementaux et occupationnels<br>
&gt; Institut national de santé publique du Québec<br>
&gt; 945, avenue Wolfe<br>
&gt; Québec, Qc G1V 5B3 <br>
&gt; Tél.: (418) 650-5115 #5281<br>
&gt; Fax.: (418) 654-3144<br>
&gt; steve.toutant@inspq.qc.ca<br>
&gt; http://www.inspq.qc.ca<br>
&gt; &nbsp;<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; Users@openlayers.org<br>
&gt; http://openlayers.org/mailman/listinfo/users<br>
&gt; <br>
&gt; <br>
<br>
-- <br>
View this message in context: http://n2.nabble.com/Editing-Layers-tp3028763p3030379.html<br>
Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
Users@openlayers.org<br>
http://openlayers.org/mailman/listinfo/users<br>
</font></tt>
<br>
<br>
<br>