[mapserver-users] problem wfs

Jean-François Gigand jean-francois at gigand.fr
Fri Feb 25 17:07:29 EST 2011


Hi,

Do you have Firebug or any browser extension letting you see the WFS
HTTP request?

It would help to know the request and response.

JF


2011/2/25 Flor Marina Rocha <flormrocha at geobis.com>:
> I set up a WFS Server, accessing a PostGIS poligon table. I use OpenLayers
> to visualise the WFS layer, but But not shown on the map
>  I use MapServer V54.10.6 and Tomcat 6
>
>
> Any help is really appreciated.
>
> Thanks,
>
> Flor Marina Rocha
>
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>      wfs = new OpenLayers.Layer.Vector("prueba", {
>     strategies: [new OpenLayers.Strategy.BBOX()],
>         protocol: new OpenLayers.Protocol.WFS({
>          version: "1.0.0",
>          srsName: "EPSG:4326",
>             url:
> "http://localhost:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/geobis/htdocs/colombia/departamentos_colombiawfs.map&SERVICE=WFS",
>             featureType: "departamentos_wfs",
>             featureNS: "http://mapserver.gis.umn.edu/mapserver",
>             geometryName: "the_geom",
>             extractAttributes: true
>              })
>     });
>
>    map.addLayer(wfs);
> ______________________________________________________________________________________________________
> MAP
>    NAME "WFS_server"
>    EXTENT -81.735857 -4.223438 -66.851802 13.389054
>    SIZE 800 800
>    UNITS meters
>    SHAPEPATH "../mapaInternet/00000_Colombia/SH"
>    CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_depto_error.txt"
>    WEB
>  TEMPLATE  'geobis.html'
>     IMAGEPATH "/ms4w/tmp/"
>     IMAGEURL  "/tmp/"
>  METADATA
>   "wfs_title"           "WMS Server Departamentos"
>   "wfs_onlineresource"
> "http://localhost:8081/cgi-bin//mapserv.exe?map=/ms4w/apps/geobis/htdocs/colombia/departamentos_colombiawfs.map&SERVICE=WFS"
>     "wfs_srs" "epsg:4326"
>       "wfs_abstract" "my service wms"
>
>  END
>    END
>    PROJECTION
>     "init=epsg:4326"
>  END
>  OUTPUTFORMAT
>   NAME png32
>   DRIVER "GD/PNG"
>   MIMETYPE "image/png"
>   IMAGEMODE RGBA
>   EXTENSION "png"
> END
>
>    LAYER
>       NAME "departamentos_wfs"
>         METADATA
>          "wfs_title" "departamentos_wfs"
>          "gml_featureid" "gid"
>          "wfs_featureid" "gid"
>          "gml_include_items" "all"
>          "wfs_include_items" "all"
>           "wfs_maxfeatures" "1000"
>          "wfs_namespace_uri" "http://mapserver.gis.umn.edu/mapserver"
>          "wfs_namespace_prefix" "ms"
>       END
>       STATUS ON
>       TYPE POLYGON
>       CONNECTIONTYPE POSTGIS
>       CONNECTION "user=geobis password=geobis2010 host=192.168.1.39
> port=5432 dbname=geobis"
>       DATA "the_geom from cartografia.col_departamentos_pol using unique gid
> using srid=4326"
>
>    PROCESSING "CLOSE_CONNECTION=DEFER"
>       PROJECTION
>          "init=epsg:4326"
>       END
> DUMP TRUE
>       CLASS
>          STYLE
>             COLOR 128 128 128
>             OUTLINECOLOR 128 128 128
>             WIDTH 2
>          END
>          NAME "NAME"
>       END
>    END
>
>    END
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


More information about the mapserver-users mailing list