[OpenLayers-Users] Working with Openlayers.Layer.Vector and WFS

Eduardo José Ramos eduardo.j.ramos at novabase.pt
Fri Jul 16 12:00:11 EDT 2010


Hi

I've updated my reques as you sugested. Now I'm having this error:

this.writers[prefix][local] is undefined
[Break on this error] var child=this.writers[prefix][local]....f(parent){parent.appendChild(child);} 
Openlayers.js (line 790)

At least is better than no error and no response :)

Thanks

Edu

-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On Behalf Of Gilberto Ramos
Sent: sexta-feira, 16 de Julho de 2010 16:06
To: users at openlayers.org
Subject: Re: [OpenLayers-Users] Working with Openlayers.Layer.Vector and WFS


What server are you using?


    var layer = new OpenLayers.Layer.Vector("Guybrush Threepwood", {
        strategies: [new OpenLayers.Strategy.BBOX()],
        projection: new OpenLayers.Projection("EPSG:4326"),
        protocol: new OpenLayers.Protocol.WFS({
            version: "1.1.0",
            srsName: "EPSG:4326",
            url: "http://localhost:2006/GetFeature.ashx",
            featureType: "MonkeyIsland",
            schema:
"http://localhost:2006/GetFeature.ashx?service=MXP-WFS&request=GetSchema&schema=miwfs:MonkeyIsland",
            featureNS: "http://www.opengis.net/wfs",
            featurePrefix: "miwfs"
        })
    });


Replace the schema value for the correct Schema URL of your feature.. I'm
not sure at all about how you get the schema in your server as I'm use to
GeoServer only..! 

For example I'd have something like this as the schema:
http://localhost:2006/geoserver/wfs?service=wfs&version=1.1.0&request=DescribeFeatureType&typename=miwfs:MonkeyIsland

Hope helps you,

Gilberto Ramos

-----
"For God so loved the world, that he gave his only begotten Son, that
whosoever believeth in him should not perish, but have everlasting life.
For God sent not his Son into the world to condemn the world; but that the
world through him might be saved.
He that believeth on him is not condemned: but he that believeth not is
condemned already, because he hath not believed in the name of the only
begotten Son of God." John 3:16-18
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Working-with-Openlayers-Layer-Vector-and-WFS-tp5301971p5302348.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users





More information about the Users mailing list