[Geoserver-users] OpenLayers WFS GetFeature returning nothing

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&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:fr="http://www.forestresearch.gov.uk/&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.forestresearch.gov.uk/
http://localhost:8080/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;typeName=fr:up2000_w
http://www.opengis.net/wfs
http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
<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?

Thanks,
Jon
--
View this message in context: http://www.nabble.com/OpenLayers-WFS-GetFeature-returning-nothing-tp15409269p15409269.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

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&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:fr="http://www.forestresearch.gov.uk/&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.forestresearch.gov.uk/
http://localhost:8080/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;typeName=fr:up2000_w
http://www.opengis.net/wfs
http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
<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

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&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:fr="http://www.forestresearch.gov.uk/&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.forestresearch.gov.uk/
http://localhost:8080/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;typeName=fr:up2000_w
http://www.opengis.net/wfs
http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
<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-nothing-tp15409269p27793053.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

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&quot;
>> xmlns:wfs="http://www.opengis.net/wfs&quot;
>> xmlns:fr="http://www.forestresearch.gov.uk/&quot;
>> xmlns:gml="http://www.opengis.net/gml&quot;
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
>> xsi:schemaLocation="http://www.forestresearch.gov.uk/
>>
http://localhost:8080/geoserver/wfs?service=WFS&amp;version=1.
0.0&amp;request=DescribeFeatureType&amp;typeName=fr:up2000_w
>> http://www.opengis.net/wfs
>> http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
>> <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&#174; 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

Thank you Jukka.
Direct HTTP requests seem to work, both 1.0.0 and 1.1.0 versions of WFS.

I guess the next step would be to analyze the HTTP requests made by my
javascript... I'm trying to figure it out but I think I'm not finding a way.
Think I need help again, damn it. :frowning: Does somebody know how to do that?

Rahkonen Jukka wrote:

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&quot;
>> xmlns:wfs="http://www.opengis.net/wfs&quot;
>> xmlns:fr="http://www.forestresearch.gov.uk/&quot;
>> xmlns:gml="http://www.opengis.net/gml&quot;
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
>> xsi:schemaLocation="http://www.forestresearch.gov.uk/
>>
http://localhost:8080/geoserver/wfs?service=WFS&amp;version=1.
0.0&amp;request=DescribeFeatureType&amp;typeName=fr:up2000_w
>> http://www.opengis.net/wfs
>> http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
>> <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&#174; 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

------------------------------------------------------------------------------
Download Intel&#174; 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

--
View this message in context: http://old.nabble.com/OpenLayers-WFS-GetFeature-returning-nothing-tp15409269p27794482.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Fri, Mar 5, 2010 at 9:21 AM, Piero Campa <piero.campa@anonymised.com> wrote:

Thank you Jukka.
Direct HTTP requests seem to work, both 1.0.0 and 1.1.0 versions of WFS.

I guess the next step would be to analyze the HTTP requests made by my
javascript... I'm trying to figure it out but I think I'm not finding a way.
Think I need help again, damn it. :frowning: Does somebody know how to do that?

I suspect you need a proxy - is your html served from a different
machine than your WFS? if so look up proxies under openlayers.

Failing that look in firebug to see what the status code of your request is.

Ian

--
Ian Turton

Thank you Ian,
I think that everything is in localhost.

Lookout: I just saw with Firebug that I finally could see the HTTP request
made by my javascript and the related response !
But still NO points on my map. :drunk:

I mean, as soon as the new OpenLayers.Layer.Vector( "WFS", ...params... )
gets the right response from Geoserver, the next command is just the
map.addLayers(...). !

What the hell? :-/

Piero

Ian Turton wrote:

On Fri, Mar 5, 2010 at 9:21 AM, Piero Campa <piero.campa@anonymised.com> wrote:

Thank you Jukka.
Direct HTTP requests seem to work, both 1.0.0 and 1.1.0 versions of WFS.

I guess the next step would be to analyze the HTTP requests made by my
javascript... I'm trying to figure it out but I think I'm not finding a
way.
Think I need help again, damn it. :frowning: Does somebody know how to do that?

I suspect you need a proxy - is your html served from a different
machine than your WFS? if so look up proxies under openlayers.

Failing that look in firebug to see what the status code of your request
is.

Ian

--
Ian Turton

------------------------------------------------------------------------------
Download Intel&#174; 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

--
View this message in context: http://old.nabble.com/OpenLayers-WFS-GetFeature-returning-nothing-tp15409269p27796065.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Fri, Mar 5, 2010 at 11:25 AM, Piero Campa <piero.campa@anonymised.com> wrote:

Thank you Ian,
I think that everything is in localhost.

Lookout: I just saw with Firebug that I finally could see the HTTP request
made by my javascript and the related response !
But still NO points on my map. :drunk:

I mean, as soon as the new OpenLayers.Layer.Vector( "WFS", ...params... )
gets the right response from Geoserver, the next command is just the
map.addLayers(...). !

Sounds like it is an OpenLayers problem not a GeoServer problem.
You'll probably get a better answer on that list. Could be a
projection issue, i.e. your points are drawn but off the map.

Ian
--
Ian Turton

I have been thinking about this: GoggleMaps are in the Mercator projection
while my points are in WGS84 (but I think I managed the projection
problem...).

I've been looking at the whole world map without seeing points, but I didn't
think about points OFF the map...

Anyway, think I'll move to the OpenLayers forum.
Thanks to all of you, if any more idea comes out about this problem I'll
appreciate of course.

Piero

Ian Turton wrote:

On Fri, Mar 5, 2010 at 11:25 AM, Piero Campa <piero.campa@anonymised.com>
wrote:

Thank you Ian,
I think that everything is in localhost.

Lookout: I just saw with Firebug that I finally could see the HTTP
request
made by my javascript and the related response !
But still NO points on my map. :drunk:

I mean, as soon as the new OpenLayers.Layer.Vector( "WFS", ...params... )
gets the right response from Geoserver, the next command is just the
map.addLayers(...). !

Sounds like it is an OpenLayers problem not a GeoServer problem.
You'll probably get a better answer on that list. Could be a
projection issue, i.e. your points are drawn but off the map.

Ian
--
Ian Turton

------------------------------------------------------------------------------
Download Intel&#174; 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

--
View this message in context: http://old.nabble.com/OpenLayers-WFS-GetFeature-returning-nothing-tp15409269p27796501.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

I think I solved the problem, and it should be about a '/' at the and of the
URI of the feature namespace that I put in the OpenLayers query.

Bye. !

Piero Campa wrote:

I have been thinking about this: GoggleMaps are in the Mercator projection
while my points are in WGS84 (but I think I managed the projection
problem...).

I've been looking at the whole world map without seeing points, but I
didn't think about points OFF the map...

Anyway, think I'll move to the OpenLayers forum.
Thanks to all of you, if any more idea comes out about this problem I'll
appreciate of course.

Piero

Ian Turton wrote:

On Fri, Mar 5, 2010 at 11:25 AM, Piero Campa <piero.campa@anonymised.com>
wrote:

Thank you Ian,
I think that everything is in localhost.

Lookout: I just saw with Firebug that I finally could see the HTTP
request
made by my javascript and the related response !
But still NO points on my map. :drunk:

I mean, as soon as the new OpenLayers.Layer.Vector( "WFS", ...params...
)
gets the right response from Geoserver, the next command is just the
map.addLayers(...). !

Sounds like it is an OpenLayers problem not a GeoServer problem.
You'll probably get a better answer on that list. Could be a
projection issue, i.e. your points are drawn but off the map.

Ian
--
Ian Turton

------------------------------------------------------------------------------
Download Intel&#174; 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

--
View this message in context: http://old.nabble.com/OpenLayers-WFS-GetFeature-returning-nothing-tp15409269p27797547.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi again to all of you,
I realized it was not just a matter of that '/' in the feaureNS URI: WFS
features doesn't appear also if I open the HTML page directly from the
filesystem, that is if I open file:///<GEOSERVER
DIR>/webapps/geoserver/<MyExample>.html instead of
http://localhost:8080/geoserver/&lt;MyExample&gt;\.html\.

If someone can guess the cause of this behaviour, it would be great.
:handshake:

Good work to all of you. !

Piero

Piero Campa wrote:

I think I solved the problem, and it should be about a '/' at the and of
the URI of the feature namespace that I put in the OpenLayers query.

Bye. !

Piero Campa wrote:

I have been thinking about this: GoggleMaps are in the Mercator
projection while my points are in WGS84 (but I think I managed the
projection problem...).

I've been looking at the whole world map without seeing points, but I
didn't think about points OFF the map...

Anyway, think I'll move to the OpenLayers forum.
Thanks to all of you, if any more idea comes out about this problem I'll
appreciate of course.

Piero

Ian Turton wrote:

On Fri, Mar 5, 2010 at 11:25 AM, Piero Campa <piero.campa@anonymised.com>
wrote:

Thank you Ian,
I think that everything is in localhost.

Lookout: I just saw with Firebug that I finally could see the HTTP
request
made by my javascript and the related response !
But still NO points on my map. :drunk:

I mean, as soon as the new OpenLayers.Layer.Vector( "WFS", ...params...
)
gets the right response from Geoserver, the next command is just the
map.addLayers(...). !

Sounds like it is an OpenLayers problem not a GeoServer problem.
You'll probably get a better answer on that list. Could be a
projection issue, i.e. your points are drawn but off the map.

Ian
--
Ian Turton

------------------------------------------------------------------------------
Download Intel&#174; 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

--
View this message in context: http://old.nabble.com/OpenLayers-WFS-GetFeature-returning-nothing-tp15409269p27818881.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Piero Campa ha scritto:

Hi again to all of you,
I realized it was not just a matter of that '/' in the feaureNS URI: WFS
features doesn't appear also if I open the HTML page directly from the
filesystem, that is if I open file:///<GEOSERVER
DIR>/webapps/geoserver/<MyExample>.html instead of
http://localhost:8080/geoserver/&lt;MyExample&gt;\.html\.

If someone can guess the cause of this behaviour, it would be great.
:handshake:

"Same origin" policy to avoid cross site scripting I guess?
http://docs.openlayers.org/library/request.html

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.