[OpenLayers-Users] WFS
Roald de Wit
roald.dewit at lisasoft.com
Wed Nov 11 19:07:34 EST 2009
Hi,
On 12/11/09 07:19, pericoltoxic wrote:
> Thank for your answer, but i have a problem with the example.
> I changed this code:
>
> var layer = new OpenLayers.Layer.Vector("WFS", {
> strategies: [new OpenLayers.Strategy.BBOX()],
> protocol: new OpenLayers.Protocol.WFS({
> url: "http://demo.opengeo.org/geoserver/wfs",
> featureType: "tasmania_roads",
> featureNS: "http://www.openplans.org/topp"
> })
> });
>
> with my code:
>
> var layer = new OpenLayers.Layer.Vector("WFS", {
> strategies: [new OpenLayers.Strategy.BBOX()],
> protocol: new OpenLayers.Protocol.WFS({
> url: "http://localhost:8080/geoserver/wfs",
> featureType: "tasmania_roads",
> featureNS: "http://www.openplans.org/topp"
> })
> });
>
> I read tasmania_roads from my GeoServer( localhost:8080 ), but the
> tasmania_roads not appear. Where is the mistake?
>
What if you add 'localhost:8080' to the list of allowedHosts in your
proxy.cgi?
Regards, Roald
--
Roald de Wit
Software Engineer
roald.dewit at lisasoft.com
Commercial Support for Open Source GIS Software
http://lisasoft.com/LISAsoft/SupportedProducts/
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.
More information about the Users
mailing list