[OpenLayers-Users] JSON format does not work in Protocol.WFS

paweluz paweluz at o2.pl
Wed Apr 14 03:39:58 EDT 2010


I worked! The right way to do this is this way:

        protocol: new OpenLayers.Protocol.WFS({
            version: "1.1.0",
            url: "http://localhost/geoserver2_0_1/wfs",
            featureNS :  "http://www.openplans.org/topp",
            featureType: "bazadanych",
            geometryName: "the_geom",
	    outputFormat: "json",
            readFormat: new OpenLayers.Format.GeoJSON() ,
            schema:
"http://localhost/geoserver2_0_1/wfs/DescribeFeatureType?version=1.1.0&typename=topp:bazadanych",
	    featurePrefix: "topp"
        })

It did not work at the beginning because  I used wrong version of OL
library... Sorry, it was my mistake... Thank a lot for your help!!!

Regards, 
Poul
-- 
View this message in context: http://n2.nabble.com/JSON-format-does-not-work-in-Protocol-WFS-tp4894449p4900283.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list