<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> </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Maxime Phaneuf <maxime.phaneuf@usherbrooke.ca>@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>
> <br>
> Hi,<br>
> I set a WFS server that I'm pretty sure works correctly since I get
a xml <br>
> file when submitting this to the browser (Unfortunatly you don't have
<br>
> 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<br>
> <br>
> But I can not load the data from the WFS in open layers or any other
<br>
> client such as gaia and gvSig. I can see though a WMS from the same
<br>
> mapfile. Here is my openlayers function and below the mapfile.<br>
> I don't get any error message and I can't find a log describing the
<br>
> problem. <br>
> <br>
> Thanks for your help,<br>
> Steve<br>
> <br>
> /*OpenLayers*/<br>
> function init(){<br>
> var options
= {<br>
> projection:
new OpenLayers.Projection("EPSG:900913"),<br>
> displayProjection:
new OpenLayers.Projection("EPSG:4326"), <br>
> //Pour afficher les coord lat long<br>
> units: "m",<br>
> numZoomLevels:
10,<br>
> maxResolution: "auto", <br>
> maxExtent:
new OpenLayers.Bounds(-9239517, 5465442, <br>
> -5565974, 9349764)<br>
> };<br>
> <br>
> <br>
> map = new OpenLayers.Map(
'map', options );<br>
> <br>
>
/*base map*/<br>
>
google = new OpenLayers.Layer.Google( "Google <br>
> Hybrid", { type: G_HYBRID_MAP, 'sphericalMercator': true} );<br>
> <br>
>
/*Overlays*/<br>
>
monWFS = new OpenLayers.Layer.WFS( <br>
>
"HLM en wfs", <br>
> "http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante.map2&",
<br>
> <br>
>
{typename: 'HLM_shp_wfs2'}, <br>
>
{ extractAttributes: true}<br>
>
);<br>
> hlm = new OpenLayers.Layer.WMS(
"HLM", <br>
> <br>
> "http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante2.map&",<br>
>
{layers:
'HLM_shp', transparent: <br>
> "true", format:"image/gif"},{isBaseLayer: false,
visibility: <br>
> false,singleTile:true}<br>
>
);<br>
> <br>
> <br>
> map.addLayers([google, hlm,
monWFS]);<br>
> <br>
> map.zoomToMaxExtent();<br>
> map.addControl( new OpenLayers.Control.LayerSwitcher()
);<br>
> map.addControl( new OpenLayers.Control.MousePosition()
);<br>
> <br>
> }<br>
> <br>
> /*map file*/<br>
> <br>
> <br>
> <br>
> MAP<br>
> NAME paccsante2<br>
> UNITS kilometers<br>
> SHAPEPATH '\ms4w\paccSante\data\'<br>
> EXTENT -9239517 5465442 -5565974 9349764<br>
> <br>
> DEBUG 5 <br>
> CONFIG MS_ERRORFILE "/ms4w/logs/mapserver.log"<br>
> <br>
> RESOLUTION 72<br>
> PROJECTION<br>
> "init=epsg:900913" #si overlay avec google<br>
> END<br>
> <br>
> IMAGETYPE gif<br>
> <br>
> <br>
> OUTPUTFORMAT<br>
> NAME gif<br>
> DRIVER "GD/GIF"<br>
> MIMETYPE "image/gif"<br>
> IMAGEMODE PC256<br>
> EXTENSION "gif"<br>
> TRANSPARENT ON<br>
> <br>
> END<br>
> <br>
> WEB<br>
> IMAGEPATH "D:\ms4w\tmp\ms_tmp\"<br>
> IMAGEURL "/ms_tmp/"<br>
> <br>
> # WMS WFS server settings<br>
> METADATA<br>
> 'wms_title'
'PACC Santé'<br>
> 'wms_onlineresource' <br>
> 'http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante.map&'<br>
> 'wms_srs'
'EPSG:4326 EPSG:32198 EPSG:900913'<br>
> 'wms_feature_info_mime_type' "text/html"
<br>
> <br>
> 'wfs_title' 'wfs_paccsante'<br>
> 'wfs_onlineresource' <br>
> 'http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante.map2&'<br>
> 'wfs_srs' 'EPSG:900913'<br>
> END<br>
> <br>
> END #web<br>
> <br>
> LAYER<br>
> NAME 'HLM_shp'<br>
> TYPE POINT<br>
> DATA 'hlm/hlm_omh'<br>
> DUMP true<br>
> METADATA<br>
> 'wms_title' 'HLM_shp'<br>
> 'wms_srs'
'EPSG:4326 EPSG:32198 EPSG:900913'<br>
> END<br>
> <br>
> STATUS off<br>
> OPACITY 100<br>
> PROJECTION<br>
> "init=epsg:4326"<br>
> END<br>
> <br>
> CLASS <br>
> STYLE<br>
> COLOR 0 0 255<br>
> SYMBOL 'CIRCLE'<br>
> SIZE 8<br>
> END<br>
> END #class<br>
> END<br>
> <br>
> LAYER<br>
> NAME 'HLM_shp_wfs2'<br>
> TYPE POINT<br>
> DATA 'hlm/hlm_omh'<br>
> DUMP true<br>
> STATUS ON<br>
> METADATA<br>
> 'wfs_title' 'HLM en wfs'<br>
> 'gml_featureid' 'IDBATIMENT'<br>
> 'gml_include_items' 'all'<br>
> END<br>
> <br>
> PROJECTION<br>
> "init=epsg:4326"<br>
> END<br>
> <br>
> CLASS<br>
> NAME "hlm_wfs" <br>
> STYLE<br>
> COLOR 0 0 255<br>
> SYMBOL 'CIRCLE'<br>
> SIZE 8<br>
> END<br>
> TEMPLATE "../template/wfs_hlm.html"<br>
> END #class<br>
> END<br>
> <br>
> <br>
> <br>
> #Circle symbol<br>
> SYMBOL<br>
> NAME 'CIRCLE'<br>
> TYPE ellipse<br>
> FILLED true<br>
> POINTS<br>
> 1 1<br>
> END<br>
> END <br>
> <br>
> END #map<br>
> <br>
> Steve Toutant, M. Sc.<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 <br>
> Tél.: (418) 650-5115 #5281<br>
> Fax.: (418) 654-3144<br>
> steve.toutant@inspq.qc.ca<br>
> http://www.inspq.qc.ca<br>
> <br>
> <br>
> _______________________________________________<br>
> Users mailing list<br>
> Users@openlayers.org<br>
> http://openlayers.org/mailman/listinfo/users<br>
> <br>
> <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>