Sorry, this message isn't obiously intended for this maillist ;-)
Please, ignore this!
Sorry!
On Tuesday 27 October 2009 05:55:12 pm Iratxe Lejarreta wrote:
> Hi,
>
> I'm using OpenLayers with MapServer and Postgis.
> I want to draw saved features in a vector layer for modify.
>
> This is my code but I can't see anything in my map:
>
> var vectors = new OpenLayers.Layer.Vector("WFS", {
> strategies: [new OpenLayers.Strategy.BBOX()],
> protocol: new OpenLayers.Protocol.WFS({
> version: "1.0.0",
> url: "http://host:port/cgi-bin/mywfs",
> featureType: "test",
> srsName: "EPSG:4326",
> featureNS : "http://host:port",
> geometryName: "geom",
> schema: "http://host:port/cgi-
> bin/mywfs?service=WFS&version=1.0.0&request=DescribeFeatureType&TypeName=te
>st" })
> });
>
> And this is my layer definition in the MapServer's map file:
>
> LAYER
> NAME test
> METADATA
> "wfs_title" "test"
> "gml_featureid" "id"
> "gml_include_items" "all"
> END
> TYPE POINT
> STATUS ON
> CONNECTIONTYPE postgis
> CONNECTION "host=localhost port=5432 dbname=mydb user=postgres
> password=*****"
> DATA "geom from test"
> DUMP TRUE
> PROJECTION
> "init=epsg:4326"
> END
> CLASS
> NAME "test"
> STYLE
> COLOR 200 255 0
> OUTLINECOLOR 120 120 120
> END
> END
> END
>
> Thanks!
--
Iratxe Lejarreta
www.axios.es
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel