Hi,<br><br>First of all, thanks so much for your answer.<br>I already tried before the setting you are proposing me.. anyway I tried now again just in case but no luck...<br>Any ideas?<br><br>Regards,<br><br><div class="gmail_quote">
2011/5/12 Alexandre Dubé [via OSGeo.org] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=6356458&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


        Hi,
<br><br>   In your gml, you can see :
<br>     xmlns:ms=&quot;<a href="http://mapserver.gis.umn.edu/mapserver%22" rel="nofollow" link="external" target="_blank">http://mapserver.gis.umn.edu/mapserver&quot;</a><br><br>   so try to set :
<br><br>    var molleres = new OpenLayers.Layer.Vector(&quot;molleres&quot;, {
<br>         strategies: [new OpenLayers.Strategy.BBOX()],
<br>         protocol: new OpenLayers.Protocol.WFS({
<br>             url:
<br>&quot;<a href="http://molleres/cgi-bin/mapserv?map=/var/www/molleres/application/maps/molleres.map%22" rel="nofollow" link="external" target="_blank">http://molleres/cgi-bin/mapserv?map=/var/www/molleres/application/maps/molleres.map&quot;</a>,
<br>             featureType: &quot;molleres&quot;,
<br>             featureNS: &quot;<a href="http://mapserver.gis.umn.edu/mapserver%22" rel="nofollow" link="external" target="_blank">http://mapserver.gis.umn.edu/mapserver&quot;</a><br>         }),
<br>         renderers: renderer
<br>     });
<br><br><br>   Does that help ?
<br><br>Regards,
<br><br>Alexandre
<br><br>On 11-05-12 12:13 PM, tmartinh wrote:
<div><div class='shrinkable-quote'><br>&gt; Hi all,
<br>&gt;
<br>&gt; I have been struggling to make the following setup work.
<br>&gt;
<br>&gt; Mapserver 5.6.6 + Postgis + Openlayers and trying to display a WFS layer
<br>&gt; with no success. Nothing gets rendered on the screen.
<br>&gt;
<br>&gt; Here is my configs:
<br>&gt;
<br>&gt; Mapfile
<br>&gt;
<br>&gt; MAP
<br>&gt;    NAME INSPECCIONS_REDUIT # Nom del mapa
<br>&gt;    STATUS ON
<br>&gt;    SIZE 600 600
<br>&gt;    EXTENT 521500 15000 556500 40000 # Extent del mapa
<br>&gt;    UNITS METERS
<br>&gt;    SHAPEPATH &quot;data&quot; # Carpeta o hi ha les dades SIG
<br>&gt;    IMAGECOLOR 255 255 255
<br>&gt;    IMAGETYPE PNG
<br>&gt;
<br>&gt;
<br>&gt;         OUTPUTFORMAT # Format de sortida de la imatge
<br>&gt;                    NAME png
<br>&gt;           DRIVER &quot;GD/PNG&quot;
<br>&gt;           MIMETYPE &quot;image/png&quot;
<br>&gt;           IMAGEMODE RGB #PC256
<br>&gt;           EXTENSION &quot;png&quot;
<br>&gt;           FORMATOPTION &quot;INTERLACE=OFF&quot;
<br>&gt;         END
<br>&gt;
<br>&gt;
<br>&gt;    # Projecci� corresponent a Andorra dsegons el codi EPSG: 27573
<br>&gt;
<br>&gt;     PROJECTION
<br>&gt;       &quot;init=epsg:27573&quot;
<br>&gt;     END
<br>&gt;
<br>&gt;    #
<br>&gt;    # Definici� de les dades WMS
<br>&gt;    #
<br>&gt;      WEB
<br>&gt;         IMAGEPATH &quot;/var/www/molleres/public/img/map/&quot;
<br>&gt;            IMAGEURL &quot;/img/map/&quot;
<br>&gt;
<br>&gt;      METADATA
<br>&gt;          &quot;wfs_title&quot;                  &quot;WFS Demo Server for MapServer&quot; ##
<br>&gt; REQUIRED
<br>&gt;          &quot;wfs_onlineresource&quot;
<br>&gt; &quot;<a href="http://molleres/cgi-bin/mapserv?map=/var/www/molleres/application/maps/molleres.map%22" rel="nofollow" link="external" target="_blank">http://molleres/cgi-bin/mapserv?map=/var/www/molleres/application/maps/molleres.map&quot;</a></div>
&gt; ## Recommended
<div class='shrinkable-quote'><br>&gt;          &quot;wfs_srs&quot;                    &quot;EPSG:27573&quot; ## Recommended
<br>&gt;          &quot;wfs_abstract&quot;               &quot;This text describes my WFS service.&quot;
<br>&gt; ## Recommended
<br>&gt;      END
<br>&gt;
<br>&gt;    END
<br>&gt;
<br>&gt;    SYMBOL
<br>&gt;      NAME &#39;circle&#39;
<br>&gt;      TYPE ELLIPSE
<br>&gt;      POINTS 1 1 END
<br>&gt;      FILLED TRUE
<br>&gt;    END
<br>&gt;
<br>&gt;    SYMBOL
<br>&gt;      NAME &#39;rectangle&#39;
<br>&gt;      TYPE HATCH
<br>&gt;      POINTS 1 1 END
<br>&gt;      FILLED TRUE
<br>&gt;    END
<br>&gt;
<br>&gt;    SYMBOL
<br>&gt;    NAME &#39;rectangle-train&#39;
<br>&gt;    TYPE VECTOR
<br>&gt;    POINTS
<br>&gt;      0 0
<br>&gt;      0 0.6
<br>&gt;      1 0.6
<br>&gt;      1 0
<br>&gt;      0 0
<br>&gt;    END
<br>&gt;    FILLED TRUE
<br>&gt;    STYLE
<br>&gt;      8 12 8 12
<br>&gt;    END
<br>&gt; END
<br>&gt;
<br>&gt; # LEGEND object
<br>&gt; LEGEND
<br>&gt;    STATUS ON
<br>&gt;    KEYSIZE 18 12
<br>&gt;    # LABEL object
<br>&gt;    LABEL
<br>&gt;      TYPE BITMAP
<br>&gt;      SIZE MEDIUM
<br>&gt;      COLOR 0 0 89
<br>&gt;    END
<br>&gt;    #TEMPLATE &quot;templates/legend.html&quot;  ### HTML template file
<br>&gt; END
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt; ##################
<br>&gt; # molleres
<br>&gt; ##################
<br>&gt; LAYER
<br>&gt;    NAME &quot;molleres&quot;
<br>&gt;    METADATA
<br>&gt;      &quot;wfs_title&quot;             &quot;Molleres&quot; ##REQUIRED
<br>&gt;      &quot;wfs_srs&quot;               &quot;EPSG:27573&quot; ## REQUIRED
<br>&gt;      &quot;gml_include_items&quot;     &quot;all&quot; ## Optional (serves all attributes for
<br>&gt; layer)
<br>&gt;      &quot;gml_featureid&quot;         &quot;gid&quot; ## REQUIRED
<br>&gt;    END
<br>&gt;    TYPE POLYGON
<br>&gt;    STATUS ON
<br>&gt;    CONNECTIONTYPE POSTGIS
<br>&gt;    CONNECTION &#39;user=postgres password=*** dbname=molleres host=172.16.3.240
<br>&gt; port=5432&#39;
<br>&gt;    DATA &quot;the_geom from gis_schema.molleres_geom using SRID=27573 using unique
<br>&gt; gid&quot;
<br>&gt;    PROJECTION
<br>&gt;      &quot;init=epsg:27573&quot;
<br>&gt;    END
<br>&gt;    DUMP TRUE             ## REQUIRED
<br>&gt;    CLASS
<br>&gt;        STYLE
<br>&gt;          COLOR 255 128 0
<br>&gt;          SYMBOL &#39;rectangle-train&#39;
<br>&gt;          SIZE 10
<br>&gt;        END
<br>&gt;    END
<br>&gt; END #layer
<br>&gt;
<br>&gt;
<br>&gt; END # Map File
<br>&gt;
<br>&gt; Openlayers
<br>&gt;
<br>&gt; var molleres = new OpenLayers.Layer.Vector(&quot;molleres&quot;, {
<br>&gt;          strategies: [new OpenLayers.Strategy.BBOX()],
<br>&gt;          protocol: new OpenLayers.Protocol.WFS({
<br>&gt;              url:
<br>&gt; &quot;<a href="http://molleres/cgi-bin/mapserv?map=/var/www/molleres/application/maps/molleres.map%22" rel="nofollow" link="external" target="_blank">http://molleres/cgi-bin/mapserv?map=/var/www/molleres/application/maps/molleres.map&quot;</a>,
<br>&gt;              featureType: &quot;molleres&quot;,
<br>&gt;              featureNS: &quot;<a href="http://molleres%22" rel="nofollow" link="external" target="_blank">http://molleres&quot;</a><br>&gt;          }),
<br>&gt;          renderers: renderer
<br>&gt;      });
<br>&gt;
<br>&gt; Please note that this is an internal development server reason why URL is
<br>&gt; not compliant with W3C standards. (no .com or whatever)
<br>&gt;
<br>&gt; I have tried with several different options in my mapfile and openlayers but
<br>&gt; no success.
<br>&gt;
<br>&gt; Also find attached my server answer I got from firebug which looks fine.. I
<br>&gt; guess.
<br>&gt;
<br>&gt; &lt;?xml version=&#39;1.0&#39; encoding=&quot;ISO-8859-1&quot; ?&gt;
<br>&gt; &lt;wfs:FeatureCollection
<br>&gt;     xmlns:ms=&quot;<a href="http://mapserver.gis.umn.edu/mapserver%22" rel="nofollow" link="external" target="_blank">http://mapserver.gis.umn.edu/mapserver&quot;</a><br>&gt;     xmlns:wfs=&quot;<a href="http://www.opengis.net/wfs%22" rel="nofollow" link="external" target="_blank">http://www.opengis.net/wfs&quot;</a></div>
&gt;     xmlns:gml=&quot;<a href="http://www.opengis.net/gml%22" rel="nofollow" link="external" target="_blank">http://www.opengis.net/gml&quot;</a><br>&gt;     xmlns:ogc=&quot;<a href="http://www.opengis.net/ogc%22" rel="nofollow" link="external" target="_blank">http://www.opengis.net/ogc&quot;</a><br>
&gt;     xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance%22" rel="nofollow" link="external" target="_blank">http://www.w3.org/2001/XMLSchema-instance&quot;</a><br>&gt;     xsi:schemaLocation=&quot;<a href="http://www.opengis.net/wfs" rel="nofollow" link="external" target="_blank">http://www.opengis.net/wfs</a><br>
&gt; <a href="http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd" rel="nofollow" link="external" target="_blank">http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd</a><br>&gt;                         <a href="http://mapserver.gis.umn.edu/mapserver" rel="nofollow" link="external" target="_blank">http://mapserver.gis.umn.edu/mapserver</a><br>
&gt; <a href="http://molleres/cgi-bin/mapserv?map=/var/www/molleres/application/maps/molleres.map&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=feature:molleres&amp;OUTPUTFORMAT=XMLSCHEMA%22%3E" rel="nofollow" link="external" target="_blank">http://molleres/cgi-bin/mapserv?map=/var/www/molleres/application/maps/molleres.map&amp;amp;SERVICE=WFS&amp;amp;VERSION=1.0.0&amp;amp;REQUEST=DescribeFeatureType&amp;amp;TYPENAME=feature:molleres&amp;amp;OUTPUTFORMAT=XMLSCHEMA&quot;&gt;</a><br>
&gt;        &lt;gml:boundedBy&gt;
<div class='shrinkable-quote'><br>&gt;                &lt;gml:Box srsName=&quot;EPSG:27573&quot;&gt;
<br>&gt;                        &lt;gml:coordinates&gt;524801.051446,17249.106218
<br>&gt; 554734.725738,39483.294751&lt;/gml:coordinates&gt;
<br>&gt;                &lt;/gml:Box&gt;
<br>&gt;        &lt;/gml:boundedBy&gt;
<br>&gt;      &lt;gml:featureMember&gt;
<br>&gt;        &lt;ms:molleres fid=&quot;molleres.1&quot;&gt;
<br>&gt;          &lt;gml:boundedBy&gt;
<br>&gt;                  &lt;gml:Box srsName=&quot;EPSG:27573&quot;&gt;
<br>&gt;                          &lt;gml:coordinates&gt;540182.891043,20436.589901
<br>&gt; 540206.224092,20489.562228&lt;/gml:coordinates&gt;
<br>&gt;                  &lt;/gml:Box&gt;
<br>&gt;          &lt;/gml:boundedBy&gt;
<br>&gt;          &lt;ms:msGeometry&gt;
<br>&gt;          &lt;gml:Polygon srsName=&quot;EPSG:27573&quot;&gt;
<br>&gt;            &lt;gml:outerBoundaryIs&gt;
<br>&gt;              &lt;gml:LinearRing&gt;
<br>&gt;                &lt;gml:coordinates&gt;540193.191218,20489.562228
<br>&gt; 540206.224092,20483.991726 540203.386289,20475.688524
<br>&gt; 540197.815786,20467.280218 540195.083086,20457.925977
<br>&gt; 540192.245283,20450.463606 540187.620715,20445.839037
<br>&gt; 540187.620715,20439.322600 540183.836977,20436.589901
<br>&gt; 540182.891043,20444.893103 540183.836977,20456.980043
<br>&gt; 540187.620715,20471.904786 540191.299349,20480.313092
<br>&gt; 540193.191218,20489.562228 540193.191218,20489.562228&lt;/gml:coordinates&gt;
<br>&gt;              &lt;/gml:LinearRing&gt;
<br>&gt;            &lt;/gml:outerBoundaryIs&gt;
<br>&gt;          &lt;/gml:Polygon&gt;
<br>&gt; ...
<br>&gt;
<br>&gt; Any help is really appreciated. I really don&#39;t know where to go further now.
<br>&gt;
<br>&gt; Best regards
<br>&gt;
<br>&gt; --
<br>&gt; View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/WFS-layer-from-Mapserver-not-displaying-tp6356333p6356333.html" rel="nofollow" link="external" target="_blank">http://osgeo-org.1803224.n2.nabble.com/WFS-layer-from-Mapserver-not-displaying-tp6356333p6356333.html</a></div>
&gt; Sent from the OpenLayers Users mailing list archive at Nabble.com.
<br>&gt; _______________________________________________
<br>&gt; Users mailing list
<br>&gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=6356398&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></div><br><br>-- 
<br>Alexandre Dubé
<br>Mapgears
<br><a href="http://www.mapgears.com" target="_blank" rel="nofollow" link="external">www.mapgears.com</a>
<br><br>_______________________________________________
<br>Users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=6356398&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
        
        <br>
        <br>
        <hr color="#cccccc" noshade size="1">
        <div style="color: rgb(68, 68, 68); font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight: bold;">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1803224.n2.nabble.com/WFS-layer-from-Mapserver-not-displaying-tp6356333p6356398.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1803224.n2.nabble.com/WFS-layer-from-Mapserver-not-displaying-tp6356333p6356398.html</a>
        </div>
        <div style="color: rgb(102, 102, 102); font: 11px tahoma,geneva,helvetica,arial,sans-serif; margin-top: 0.4em;">
                
                To unsubscribe from WFS layer from Mapserver not displaying, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></blockquote></div><br>

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/WFS-layer-from-Mapserver-not-displaying-tp6356333p6356458.html">Re: WFS layer from Mapserver not displaying</a><br/>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/OpenLayers-Users-f1822463.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>