yep, thanks. have to dig deeper into firebug as I already had, I guess.

Just thought that someone might come up with an easy solution which I simply wasnt aware of.

Dan


Am 21.01.2011 15:32, schrieb Wally Atkins:
I would suggest using FireFox along with FireBug, if you haven't
already, and tracing the network calls that occurs between your browser
and GeoServer.

As you mentioned, everything appears to be happy between Oracle and
GeoServer when delivering WMS to the browser but something becomes
'unhappy' when attempting to deliver WFS. Hopefully something in the
network traffic will point you in the right direction.

Wally

On Fri, Jan 21, 2011 at 5:41 AM, Daniel Behr <[email protected]
<mailto:[email protected]>> wrote:

    thanks Wally, but GeoServer is running on the same machine, if I got
    this right, there is no need for a proxy then.

    Any other ideas why my vectorlayer does not display?

    thanks in advance
    Dan


    Am 20.01.2011 16:56, schrieb Wally Atkins:

        proxy:
        http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost

        On Thu, Jan 20, 2011 at 10:14 AM, Daniel Behr
        <[email protected] <mailto:[email protected]>
        <mailto:[email protected] <mailto:[email protected]>>> wrote:

            Hello List,
            I'm trying to get a Layer.Vector into OpenLayers 2.10 but it
        wont work.

            The Data comes from Oracle > Geoserver 1.7.6 and if I call it as
            Layer.WMS [1] it works as expected.

            no matter what changes i make to the Layer.Vector call [2], the
            layer never shows up in the map. (not even in the wrong
        place, but
            reprojecting is not an issue...)

            I thought the code from OL example at:

        http://openlayers.org/dev/examples/wfs-protocol.html

            would do it, but no.
            I also tried to add a format like this

            format: new OpenLayers.Format.WFS

            but I get an error in firebug that the this.layer is not
        defined.

            Anyone has a clue what I am missing here? I guess its something
            about events or features, but I really dont understand why
        the OL
            example works then...

            thanks
            Dan

            [1]
            pLayer = new OpenLayers.Layer.WMS(
        "Platforms", "http://myserver/geoserver/wms";, {
                    layers: 'pform:PLATFORM',
                    styles: 'polygon',
                    srs: 'EPSG:900913',
                    format: 'image/png',
                    transparent: 'true'
                    },
                    {singleTile: true}
               );

            [2]
            pLayer = new OpenLayers.Layer.Vector("Platforms", {
                    strategies: [new OpenLayers.Strategy.BBOX()],
                    protocol: new OpenLayers.Protocol.WFS({
                            url: "http://myserver/geoserver/wfs";,
                            featureType: "PLATFORM",
                            featureNS:
        "http://myserver/namespace/gml/pform";,
                            geometryName: 'GEOM'
                            })
                    });

            _______________________________________________
            Users mailing list
        [email protected] <mailto:[email protected]>
        <mailto:[email protected] <mailto:[email protected]>>
        http://lists.osgeo.org/mailman/listinfo/openlayers-users


    _______________________________________________
    Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to