[OpenLayers-Users] WFS Not loading
Brian Stempin
brian.stempin at gmail.com
Fri Feb 12 10:46:12 EST 2010
You may also want to explicitly set your SRS on your WFS layer. Eg:
var geoserver = new OpenLayers.Layer.Vector( "GeoServer WFS:
Itasca Lakes", {
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
url: "http://172.16.172.129:8080/geoserver/wfs",
featureType: "prco303:itasca",
featureNS: "http://172.16.172.129",
srs: "EPSG:26915"
})
});
PS: You have a trailing comma after your featureNS in the code you posted.
HTH,
Brian
On Fri, Feb 12, 2010 at 10:15 AM, Christopher Schmidt <
crschmidt at metacarta.com> wrote:
> On Fri, Feb 12, 2010 at 02:58:29PM +0000, Lewis Oaten wrote:
> > Hi all,
> >
> > I am very sorry if this is a duplicate post but I believe my last message
> > didn't appear as I wasn't signed up to the mailing list.
> >
> > I would be very grateful if you could read through my message and pass on
> > your thoughts.
>
> http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost
>
> > Many thanks,
> >
> > Lewis Oaten
> > web: lewisoaten.com
> > twit: twitter.com/lewisoaten
> > key: pk.caecus.co.uk
> > cal: tgl.me/LewisOaten
> >
> > ---------- Forwarded message ----------
> > From: "Lewis Oaten" <sphyrz at gmail.com>
> > Date: 9 Feb 2010 17:09
> > Subject: WFS Not loading
> > To: <users at openlayers.org>
> >
> > Hi All,
> >
> > Excuse me if my etiquette isn't up-to-scratch, this is my first time
> > posting on this mailing list.
> >
> > I have been fighting with a bug for some time when working with
> > GeoServer, GeoExt and OpenLayers. When I try to load a WFS layer,
> > nothing happens. No connection attempt is made to the server and no
> > errors are displayed. If, however, I try to load the same data as WMS,
> > from the same server with similar parameters, the layer loads
> > correctly.
> >
> > Examples of my code are:
> >
> > var geoserverWMS = new OpenLayers.Layer.WMS(
> > "Geoserver WMS: Itasca Lakes",
> > "http://172.16.172.129:8080/geoserver/wms",
> > {layers: "prco303:itasca", transparent: "true"},
> > {isBaseLayer: false, projection: "EPSG:26915"}
> > );
> >
> > var geoserver = new OpenLayers.Layer.Vector( "GeoServer WFS:
> > Itasca Lakes", {
> > strategies: [new OpenLayers.Strategy.BBOX()],
> > protocol: new OpenLayers.Protocol.WFS({
> > url: "http://172.16.172.129:8080/geoserver/wfs",
> > featureType: "prco303:itasca",
> > featureNS: "http://172.16.172.129",
> > })
> > });
> >
> > I have whittled away at the parts of the system until I am attempting
> > to run the WFS example
> > (http://openlayers.org/dev/examples/wfs-states.html) on my own server
> > and am faced with the same problem.
> >
> > Unfortunately, I have run out of ideas to test next. I would be very
> > grateful if someone could give me some idea of what I am doing wrong
> > or at least a suggestion for how to continue debugging.
> >
> > Thanks in advanced for your help.
> >
> > Yours sincerely,
> >
> > Lewis Oaten
> > web: lewisoaten.com
> > twit: twitter.com/lewisoaten
> > pk: pk.caecus.co.uk
> > cal: tgl.me/LewisOaten
>
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
>
>
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100212/493a10b8/attachment.html
More information about the Users
mailing list