Hi,
I would suggest to test test the WFS service first by using something that you can control. Myself I would do that by making WFS requests manually with text editor and sending them through browser. To begin with:
http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=GetCapabilities
http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType
http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=GetFeature&typename=namespace:your_type&maxfeatures=100
Is these request work you can be pretty sure that everything is OK with your Geoserver. You can continue by adding BBOX and try also version 1.1.0. Version makes a lot of difference because it is changing x- and y-axes.
Once you know that Geoserver works you can concentrate on the client side and make it to send reasonable requests.
-Jukka Rahkonen-
-----Alkuperäinen viesti-----
Lähettäjä: Piero Campa [mailto:piero.campa@anonymised.com]
Lähetetty: 5. maaliskuuta 2010 14:00
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] OpenLayers WFS GetFeature
returning nothing
Hi all,
I have the same problem: I'm getting no WFS features from
Geoserver (using
Openlayers utilities for javascript).
I'm sure the javascript code is right (I took it from an
OpenGeo example),
and it's not a matter of amount of information (it's all
about 13 points).
I'm stuck with this problem form 3 deadly days, and I was
wondering if you
Community have some suggestion about it...? P
Some detail:
- I want to see points (towns..) over a Goggle Map;
- if I ask for a png WMS map, then I can see the points over
the baselayer,
but if I ask for the same point "as feature" with WFS I see only the
GoogleMap;
- even if I retrieve the points via WMS, I cannot see the
attributes related
to them (I defined an 'on-click' event);
- Firebug doesn't show warnings;
- if I look into the variable wfslayer (via Firebug), I can
see it has no
feature ();
- in the logfile of Geoserver I can see that the http
response code is ok
(200) but 0 byte are returned, as a proof of the clear fact
that no feature
is returned.
God bless you in advance.
Piero
aaime wrote:
>
> Jon Britton ha scritto:
>> Hi,
>> Excuse my ignorance, but I've only just started to dabble with WFS.
>>
>> I'm trying to serve a shapefile through WFS using
OpenLayers, but nothing
>> is
>> ever returned. An example response is:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <wfs:FeatureCollection xmlns="http://www.opengis.net/wfs"
>> xmlns:wfs="http://www.opengis.net/wfs"
>> xmlns:fr="http://www.forestresearch.gov.uk/"
>> xmlns:gml="http://www.opengis.net/gml"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://www.forestresearch.gov.uk/
>>
http://localhost:8080/geoserver/wfs?service=WFS&version=1.
0.0&request=DescribeFeatureType&typeName=fr:up2000_w
>> http://www.opengis.net/wfs
>> http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd">
>> <gml:boundedBy><gml:null>unknown</gml:null></gml:boundedBy>
>> </wfs:FeatureCollection>
>>
>> I had an empty shapefile which I've been using to mess
around with WFS-T
>> which seems to display fine and my OpenLayers code for
that is identical.
>>
>> The shapefile im having the problem with is the woodland
inventory for
>> Wales
>> and is quite complicated and large. Would this be the
reason for the
>> problem?
>
> Hum, I would split the issue into two parts:
> * is a direct wfs request for your feature type working?
> * is the CPU spinning like crazy after your request?
>
> OL wfs drawing is very, very (did I say.. very?) slow, you won't be
> able to use it for anything besides a trivial amount of data.
> I never did it personally, but I'd suggest you use WMS for drawing,
> and wfs-t only for editing small amounts of data (load in OL only
> the few features that you want to edit, do it, save, make them
> disappear).
>
> Cheers
> Andrea
>
>
--------------------------------------------------------------
-----------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
View this message in context:
http://old.nabble.com/OpenLayers-WFS-GetFeature-returning-noth
ing-tp15409269p27793053.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
--------------------------------------------------------------
----------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users