Hi Andreas,
sorry, of course its the same domain not only the same machine...
But Apache listens on Port 80, Geoserver is on Port 8090 (already behind
a proxy :8090/geoserver > /geoserver).
Now I tried it with OLs sample proxy.cgi script in apaches cgi-bin
folder and I see the OL page in the browser, so this works.
included the URL 'servername.de:8090' in the cgi script.
linked it in my code as
OpenLayers.ProxyHost= "cgi-bin/proxy.cgi?url=";
I also tried the ProxyHost with a leading '/' and the cgi-script URL in
some variations, but unfortunately, theres still no layer showing up...
thanks
Dan
Am 21.01.2011 11:50, schrieb Andreas Hocevar:
Hi,
the question is not whether GeoServer is running on the same machine, but
whether its services use the same domain and port. Is your script location also
http://myserver/? If not, then you need a proxy.
Regards,
Andreas.
On Jan 21, 2011, at 11:41 , Daniel Behr 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]>> 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]>
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users