Hi!
I want to know if it’s possible to make a wfs’s request on a shapefile in postgis with geoserver and to know if data must be prepared to the wfs.
Thanks!
Hi!
I want to know if it’s possible to make a wfs’s request on a shapefile in postgis with geoserver and to know if data must be prepared to the wfs.
Thanks!
Hi,
It is for sure possible to use shapefiles as input for Geoserver, and it is possible also to import the shapefile to PostGIS first and use the resulting database table as input for Geoserver. Both ways you can use the data through WFS. Creating WFS feature type happens almost automatically it you just follow the documentation and create DataStore first, then FeatureType.
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 14:48
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] WFS data problemeHi!
I want to know if it’s possible to make a wfs’s request on a shapefile in postgis with geoserver and to know if data must be prepared to the wfs.
Thanks!
Thanks for your answer,
But before the import in geoserver does shapefiles need to be particularly formated because I can access to my data in wms but not in wfs.
I access to “states” shapefile in wfs.
Jim.
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
It is for sure possible to use shapefiles as input for Geoserver, and it is possible also to import the shapefile to PostGIS first and use the resulting database table as input for Geoserver. Both ways you can use the data through WFS. Creating WFS feature type happens almost automatically it you just follow the documentation and create DataStore first, then FeatureType.
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 14:48
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] WFS data problemeHi!
I want to know if it’s possible to make a wfs’s request on a shapefile in postgis with geoserver and to know if data must be prepared to the wfs.
Thanks!
There should be no difference. How are you exactly trying to access your data in wfs? Do you see the feature type in WFS GetCapabilities document? If yes, what happens when you throw getFeature request?
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 15:20
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeThanks for your answer,
But before the import in geoserver does shapefiles need to be particularly formated because I can access to my data in wms but not in wfs.
I access to “states” shapefile in wfs.Jim.
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
It is for sure possible to use shapefiles as input for Geoserver, and it is possible also to import the shapefile to PostGIS first and use the resulting database table as input for Geoserver. Both ways you can use the data through WFS. Creating WFS feature type happens almost automatically it you just follow the documentation and create DataStore first, then FeatureType.
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 14:48
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] WFS data problemeHi!
I want to know if it’s possible to make a wfs’s request on a shapefile in postgis with geoserver and to know if data must be prepared to the wfs.
Thanks!
I have my data on the getCapabilities:
topp:france france_Type Generated from bdd − france bdd urn:x-ogc:def:crs:EPSG:27572 − -6.091001143333474 41.347434706580835 10.812650506643369 51.089559943887004and the result is
<wfs:FeatureCollection xsi:schemaLocation=“http://www.openplans.org/topp http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:france http://www.opengis.net/wfs http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd”>
−
gml:boundedBy
gml:nullunknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>
Why I don’t have the data? Sory if I’m not clear but I’m French and I start with this technology
Thanks for your help.
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
There should be no difference. How are you exactly trying to access your data in wfs? Do you see the feature type in WFS GetCapabilities document? If yes, what happens when you throw getFeature request?
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 15:20
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeThanks for your answer,
But before the import in geoserver does shapefiles need to be particularly formated because I can access to my data in wms but not in wfs.
I access to “states” shapefile in wfs.Jim.
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
It is for sure possible to use shapefiles as input for Geoserver, and it is possible also to import the shapefile to PostGIS first and use the resulting database table as input for Geoserver. Both ways you can use the data through WFS. Creating WFS feature type happens almost automatically it you just follow the documentation and create DataStore first, then FeatureType.
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 14:48
Vastaanottaja: geoserver-users@anonymised.comsourceforge.net
Aihe: [Geoserver-users] WFS data problemeHi!
I want to know if it’s possible to make a wfs’s request on a shapefile in postgis with geoserver and to know if data must be prepared to the wfs.
Thanks!
Hi,
I believe that everything is OK but Geoserver just does not find any data from the BBOX of the request.
I guess that problem is close to this point:
&SRS=EPSG=27572&
BBOX=-6.091001143333474,41.347434706580835,
10.812650506643369,51.089559943887004
SRS=EPSG=27572 is obviously wrong, EPSG:27572 should be better. Or just leave the SRS and BBOX out and ask for the whole feature type first, perhaps with maxFeatures parameter,
-Jukka-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@…84…]
Lähetetty: 3. huhtikuuta 2009 16:12
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeI have my data on the getCapabilities:
topp:france france_Type Generated from bdd − france bdd urn:x-ogc:def:crs:EPSG:27572 − -6.091001143333474 41.347434706580835 10.812650506643369 51.089559943887004and the result is
<wfs:FeatureCollection xsi:schemaLocation=“http://www.openplans.org/topp http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:france http://www.opengis.net/wfs http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd”>
−
gml:boundedBy
gml:nullunknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>Why I don’t have the data? Sory if I’m not clear but I’m French and I start with this technology
Thanks for your help.
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@…486…>
There should be no difference. How are you exactly trying to access your data in wfs? Do you see the feature type in WFS GetCapabilities document? If yes, what happens when you throw getFeature request?
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@…84…]
Lähetetty: 3. huhtikuuta 2009 15:20
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeThanks for your answer,
But before the import in geoserver does shapefiles need to be particularly formated because I can access to my data in wms but not in wfs.
I access to “states” shapefile in wfs.Jim.
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@…486…>
Hi,
It is for sure possible to use shapefiles as input for Geoserver, and it is possible also to import the shapefile to PostGIS first and use the resulting database table as input for Geoserver. Both ways you can use the data through WFS. Creating WFS feature type happens almost automatically it you just follow the documentation and create DataStore first, then FeatureType.
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@…84…]
Lähetetty: 3. huhtikuuta 2009 14:48
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] WFS data problemeHi!
I want to know if it’s possible to make a wfs’s request on a shapefile in postgis with geoserver and to know if data must be prepared to the wfs.
Thanks!
Thanks it’s ok
That work if I don’t specify the BBOX parameter.
But I use Openlayers to make a map with wfs layers and when it make requests he specify the BBOX.
this is my function:
var wfs = new OpenLayers.Layer.WFS(
“States WFS”,“http://localhost:8080/geoserver/wfs”,
{typename: ‘topp:france’},
{
layers: ‘france’,
featureNS: ‘http://www.openplans.org/topp’,
style:fStyle,
extractAttributes: true
},
{‘reproject’: true}
);
I don’t show data on my map. Firebug show me the request and BBOX is specify.
:s
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
I believe that everything is OK but Geoserver just does not find any data from the BBOX of the request.
I guess that problem is close to this point:&SRS=EPSG=27572&
BBOX=-6.091001143333474,41.347434706580835,
10.812650506643369,51.089559943887004SRS=EPSG=27572 is obviously wrong, EPSG:27572 should be better. Or just leave the SRS and BBOX out and ask for the whole feature type first, perhaps with maxFeatures parameter,
-Jukka-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 16:12
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeI have my data on the getCapabilities:
topp:france france_Type Generated from bdd − france bdd urn:x-ogc:def:crs:EPSG:27572 − -6.091001143333474 41.347434706580835 10.812650506643369 51.089559943887004and the result is
<wfs:FeatureCollection xsi:schemaLocation=“http://www.openplans.org/topp http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:france http://www.opengis.net/wfs http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd”>
−
gml:boundedBy
gml:nullunknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>Why I don’t have the data? Sory if I’m not clear but I’m French and I start with this technology
Thanks for your help.
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
There should be no difference. How are you exactly trying to access your data in wfs? Do you see the feature type in WFS GetCapabilities document? If yes, what happens when you throw getFeature request?
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 15:20
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeThanks for your answer,
But before the import in geoserver does shapefiles need to be particularly formated because I can access to my data in wms but not in wfs.
I access to “states” shapefile in wfs.Jim.
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
It is for sure possible to use shapefiles as input for Geoserver, and it is possible also to import the shapefile to PostGIS first and use the resulting database table as input for Geoserver. Both ways you can use the data through WFS. Creating WFS feature type happens almost automatically it you just follow the documentation and create DataStore first, then FeatureType.
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 14:48
Vastaanottaja: geoserver-users@anonymised.comsts.sourceforge.net
Aihe: [Geoserver-users] WFS data problemeHi!
I want to know if it’s possible to make a wfs’s request on a shapefile in postgis with geoserver and to know if data must be prepared to the wfs.
Thanks!
Hi,
Search from spatialreference.org
http://spatialreference.org/ref/epsg/27572/
returns among other things:
You should use the projected units (meters) in the request instead of lon/lat bounding box.
-Jukka-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@…84…]
Lähetetty: 3. huhtikuuta 2009 16:53
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeThanks it’s ok
That work if I don’t specify the BBOX parameter.
But I use Openlayers to make a map with wfs layers and when it make requests he specify the BBOX.
this is my function:
var wfs = new OpenLayers.Layer.WFS(
“States WFS”,“http://localhost:8080/geoserver/wfs”,
{typename: ‘topp:france’},
{
layers: ‘france’,
featureNS: ‘http://www.openplans.org/topp’,
style:fStyle,
extractAttributes: true},
{‘reproject’: true}
);I don’t show data on my map. Firebug show me the request and BBOX is specify.
:s
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@…486…>
Hi,
I believe that everything is OK but Geoserver just does not find any data from the BBOX of the request.
I guess that problem is close to this point:&SRS=EPSG=27572&
BBOX=-6.091001143333474,41.347434706580835,
10.812650506643369,51.089559943887004SRS=EPSG=27572 is obviously wrong, EPSG:27572 should be better. Or just leave the SRS and BBOX out and ask for the whole feature type first, perhaps with maxFeatures parameter,
-Jukka-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@…84…]
Lähetetty: 3. huhtikuuta 2009 16:12
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeI have my data on the getCapabilities:
topp:france france_Type Generated from bdd − france bdd urn:x-ogc:def:crs:EPSG:27572 − -6.091001143333474 41.347434706580835 10.812650506643369 51.089559943887004and the result is
<wfs:FeatureCollection xsi:schemaLocation=“http://www.openplans.org/topp http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:france http://www.opengis.net/wfs http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd”>
−
gml:boundedBy
gml:nullunknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>Why I don’t have the data? Sory if I’m not clear but I’m French and I start with this technology
Thanks for your help.
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@…486…>
There should be no difference. How are you exactly trying to access your data in wfs? Do you see the feature type in WFS GetCapabilities document? If yes, what happens when you throw getFeature request?
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@…84…]
Lähetetty: 3. huhtikuuta 2009 15:20
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeThanks for your answer,
But before the import in geoserver does shapefiles need to be particularly formated because I can access to my data in wms but not in wfs.
I access to “states” shapefile in wfs.Jim.
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@…486…>
Hi,
It is for sure possible to use shapefiles as input for Geoserver, and it is possible also to import the shapefile to PostGIS first and use the resulting database table as input for Geoserver. Both ways you can use the data through WFS. Creating WFS feature type happens almost automatically it you just follow the documentation and create DataStore first, then FeatureType.
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@…84…]
Lähetetty: 3. huhtikuuta 2009 14:48
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] WFS data problemeHi!
I want to know if it’s possible to make a wfs’s request on a shapefile in postgis with geoserver and to know if data must be prepared to the wfs.
Thanks!
Sorry I’m french and I don’t understand what you said :s
It’s the unit of my BBOX is wrong?
I must project my data in wgs84 to use wfs?
Openlayers generate the BBOX automatically, I don’t know if it’s possible to change this parameter.
Thanks
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
Search from spatialreference.org
http://spatialreference.org/ref/epsg/27572/
returns among other things:
- WGS84 Bounds: -5.2000, 42.2500, 8.2300, 51.1000
- Projected Bounds: -22841.3905, 1712212.6192, 1087335.9605, 2703971.1254
You should use the projected units (meters) in the request instead of lon/lat bounding box.
-Jukka-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 16:53
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeThanks it’s ok
That work if I don’t specify the BBOX parameter.
But I use Openlayers to make a map with wfs layers and when it make requests he specify the BBOX.
this is my function:
var wfs = new OpenLayers.Layer.WFS(
“States WFS”,“http://localhost:8080/geoserver/wfs”,
{typename: ‘topp:france’},
{
layers: ‘france’,
featureNS: ‘http://www.openplans.org/topp’,
style:fStyle,
extractAttributes: true},
{‘reproject’: true}
);I don’t show data on my map. Firebug show me the request and BBOX is specify.
:s
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
I believe that everything is OK but Geoserver just does not find any data from the BBOX of the request.
I guess that problem is close to this point:&SRS=EPSG=27572&
BBOX=-6.091001143333474,41.347434706580835,
10.812650506643369,51.089559943887004SRS=EPSG=27572 is obviously wrong, EPSG:27572 should be better. Or just leave the SRS and BBOX out and ask for the whole feature type first, perhaps with maxFeatures parameter,
-Jukka-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 16:12
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeI have my data on the getCapabilities:
topp:france france_Type Generated from bdd − france bdd urn:x-ogc:def:crs:EPSG:27572 − -6.091001143333474 41.347434706580835 10.812650506643369 51.089559943887004and the result is
<wfs:FeatureCollection xsi:schemaLocation=“http://www.openplans.org/topp http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:france http://www.opengis.net/wfs http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd”>
−
gml:boundedBy
gml:nullunknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>Why I don’t have the data? Sory if I’m not clear but I’m French and I start with this technology
Thanks for your help.
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
There should be no difference. How are you exactly trying to access your data in wfs? Do you see the feature type in WFS GetCapabilities document? If yes, what happens when you throw getFeature request?
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 15:20
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeThanks for your answer,
But before the import in geoserver does shapefiles need to be particularly formated because I can access to my data in wms but not in wfs.
I access to “states” shapefile in wfs.Jim.
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
It is for sure possible to use shapefiles as input for Geoserver, and it is possible also to import the shapefile to PostGIS first and use the resulting database table as input for Geoserver. Both ways you can use the data through WFS. Creating WFS feature type happens almost automatically it you just follow the documentation and create DataStore first, then FeatureType.
-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 14:48
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] WFS data problemeHi!
I want to know if it’s possible to make a wfs’s request on a shapefile in postgis with geoserver and to know if data must be prepared to the wfs.
Thanks!
Hi,
WFS SRS and bbox must be using the same projection and units. If output it asked to be in EPSG:4326 then bbox must use degrees in wgs84. If output is asked to be the French projection EPSG:27572 then bbox must be in meters, because it is the unit for 27572. In your case using SRS=EPSG:4326 may help. Unfortunately I do not know anything about Openlayers.
-Jukka-
Jimmy Aumard wrote:
Sorry I'm french and I don't understand what you said :s
It's the unit of my BBOX is wrong?
I must project my data in wgs84 to use wfs?
Openlayers generate the BBOX automatically, I don't know if it's possible to
change this parameter.
Thanks
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
Search from spatialreference.org
http://spatialreference.org/ref/epsg/27572/
returns among other things:
*WGS84 Bounds*: -5.2000, 42.2500, 8.2300, 51.1000
*Projected Bounds*: -22841.3905, 1712212.6192, 1087335.9605, 2703971.1254You should use the projected units (meters) in the request instead of
lon/lat bounding box.-Jukka-
------------------------------
*Lähettäjä:* Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
*Lähetetty:* 3. huhtikuuta 2009 16:53*Vastaanottaja:* Rahkonen Jukka
*Kopio:* geoserver-users@lists.sourceforge.net
*Aihe:* Re: [Geoserver-users] WFS data problemeThanks it's ok
That work if I don't specify the BBOX parameter.
But I use Openlayers to make a map with wfs layers and when it make
requests he specify the BBOX.this is my function:
var wfs = new OpenLayers.Layer.WFS(
"States WFS","http://localhost:8080/geoserver/wfs",
{typename: 'topp:france'},
{
layers: 'france',
featureNS: 'http://www.openplans.org/topp’,
style:fStyle,
extractAttributes: true},
{'reproject': true}
);I don't show data on my map. Firebug show me the request and BBOX is
specify.:s
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
I believe that everything is OK but Geoserver just does not find any data
from the BBOX of the request.
I guess that problem is close to this point:
*&SRS=EPSG=27572&*
*BBOX=-6.091001143333474,41.347434706580835,*
*10.812650506643369,51.089559943887004*
*SRS=EPSG=27572 *is obviously wrong, EPSG:27572 should be better. Or
just leave the SRS and BBOX out and ask for the whole feature type first,
perhaps with maxFeatures parameter,-Jukka-
------------------------------
*Lähettäjä:* Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
*Lähetetty:* 3. huhtikuuta 2009 16:12*Vastaanottaja:* Rahkonen Jukka
*Kopio:* geoserver-users@lists.sourceforge.net
*Aihe:* Re: [Geoserver-users] WFS data problemeI have my data on the getCapabilities:
<FeatureType>
<Name>topp:france</Name>
<Title>france_Type</Title>
<Abstract>Generated from bdd</Abstract>
-
<ows:Keywords>
<ows:Keyword>france</ows:Keyword>
<ows:Keyword>bdd</ows:Keyword>
</ows:Keywords>
<DefaultSRS>urn:x-ogc:def:crs:EPSG:27572</DefaultSRS>
-
<ows:WGS84BoundingBox>
<ows:LowerCorner>-6.091001143333474 41.347434706580835</ows:LowerCorner>
<ows:UpperCorner>10.812650506643369 51.089559943887004</ows:UpperCorner>
</ows:WGS84BoundingBox>
</FeatureType>and the result is
<wfs:FeatureCollection xsi:schemaLocation="http://www.openplans.org/topp
http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:france
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>Why I don't have the data? Sory if I'm not clear but I'm French and I
start with this technologyThanks for your help.
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
There should be no difference. How are you exactly trying to access
your data in wfs? Do you see the feature type in WFS GetCapabilities
document? If yes, what happens when you throw getFeature request?-Jukka Rahkonen-
------------------------------
*Lähettäjä:* Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
*Lähetetty:* 3. huhtikuuta 2009 15:20
*Vastaanottaja:* Rahkonen Jukka
*Kopio:* geoserver-users@lists.sourceforge.net
*Aihe:* Re: [Geoserver-users] WFS data problemeThanks for your answer,
But before the import in geoserver does shapefiles need to be
particularly formated because I can access to my data in wms but not in
wfs.
I access to "states" shapefile in wfs.Jim.
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
It is for sure possible to use shapefiles as input for Geoserver, and it
is possible also to import the shapefile to PostGIS first and use the
resulting database table as input for Geoserver. Both ways you can use the
data through WFS. Creating WFS feature type happens almost automatically it
you just follow the documentation and create DataStore first, then
FeatureType.-Jukka Rahkonen-
------------------------------
*Lähettäjä:* Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
*Lähetetty:* 3. huhtikuuta 2009 14:48
*Vastaanottaja:* geoserver-users@lists.sourceforge.net
*Aihe:* [Geoserver-users] WFS data problemeHi!
I want to know if it's possible to make a wfs's request on a shapefile
in postgis with geoserver and to know if data must be prepared to the wfs.Thanks!
Thanks! I have make test
this request: http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=47680.0,1620431.0,1197822.0,2677441.0
and this one it’s ok
and I try this one : http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=-5.498977524054812,41.347434706580835,10.812650506643369,51.089144192296196
But they don’t work :s
When I make the datastore geoserver translate 47680.0 to -5.498977524054812 when I push “generate” for BBOX
I don’t understand what is wrong because is geoserver who make translate, he make mistake?
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
WFS SRS and bbox must be using the same projection and units. If output it asked to be in EPSG:4326 then bbox must use degrees in wgs84. If output is asked to be the French projection EPSG:27572 then bbox must be in meters, because it is the unit for 27572. In your case using SRS=EPSG:4326 may help. Unfortunately I do not know anything about Openlayers.
-Jukka-
Jimmy Aumard wrote:
Sorry I’m french and I don’t understand what you said :s
It’s the unit of my BBOX is wrong?
I must project my data in wgs84 to use wfs?
Openlayers generate the BBOX automatically, I don’t know if it’s possible to
change this parameter.Thanks
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
Search from spatialreference.org
http://spatialreference.org/ref/epsg/27572/
returns among other things:
WGS84 Bounds: -5.2000, 42.2500, 8.2300, 51.1000
Projected Bounds: -22841.3905, 1712212.6192, 1087335.9605, 2703971.1254You should use the projected units (meters) in the request instead of
lon/lat bounding box.-Jukka-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 16:53Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeThanks it’s ok
That work if I don’t specify the BBOX parameter.
But I use Openlayers to make a map with wfs layers and when it make
requests he specify the BBOX.this is my function:
var wfs = new OpenLayers.Layer.WFS(
“States WFS”,“http://localhost:8080/geoserver/wfs”,
{typename: ‘topp:france’},
{
layers: ‘france’,
featureNS: ‘http://www.openplans.org/topp’,
style:fStyle,
extractAttributes: true},
{‘reproject’: true}
);I don’t show data on my map. Firebug show me the request and BBOX is
specify.:s
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
I believe that everything is OK but Geoserver just does not find any data
from the BBOX of the request.
I guess that problem is close to this point:
&SRS=EPSG=27572&
BBOX=-6.091001143333474,41.347434706580835,
10.812650506643369,51.089559943887004
*SRS=EPSG=27572 *is obviously wrong, EPSG:27572 should be better. Or
just leave the SRS and BBOX out and ask for the whole feature type first,
perhaps with maxFeatures parameter,-Jukka-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 16:12Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeI have my data on the getCapabilities:
topp:france france_Type Generated from bdd - france bdd urn:x-ogc:def:crs:EPSG:27572 - -6.091001143333474 41.347434706580835 10.812650506643369 51.089559943887004and the result is
<wfs:FeatureCollection xsi:schemaLocation=“http://www.openplans.org/topp
http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:france
http://www.opengis.net/wfs
http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd”>gml:boundedBy
gml:nullunknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>Why I don’t have the data? Sory if I’m not clear but I’m French and I
start with this technologyThanks for your help.
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
There should be no difference. How are you exactly trying to access
your data in wfs? Do you see the feature type in WFS GetCapabilities
document? If yes, what happens when you throw getFeature request?-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 15:20
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data problemeThanks for your answer,
But before the import in geoserver does shapefiles need to be
particularly formated because I can access to my data in wms but not in
wfs.
I access to “states” shapefile in wfs.Jim.
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
It is for sure possible to use shapefiles as input for Geoserver, and it
is possible also to import the shapefile to PostGIS first and use the
resulting database table as input for Geoserver. Both ways you can use the
data through WFS. Creating WFS feature type happens almost automatically it
you just follow the documentation and create DataStore first, then
FeatureType.-Jukka Rahkonen-
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: 3. huhtikuuta 2009 14:48
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] WFS data problemeHi!
I want to know if it’s possible to make a wfs’s request on a shapefile
in postgis with geoserver and to know if data must be prepared to the wfs.Thanks!
Hi,
WFS version 1.0.0 does not officially support reprojecting the data. However, Geoserver gives this possibiolity as a vendor option. It is documented here:
http://geoserver.org/display/GEOSDOC/WFS+vendor+parameters
It looks like the format to be used in request is like &srsName="EPSG:4326"
The way you have tried in your requests is wrong, Geoserver does not recognise it at all but just skips it. Therefore the first request works, because with it the bbox is in the native and advertised projection of your data.
You can configure Geoserver to send the data out by default in EPSG:4326 if you want, withour reprojecting the original data. Then the EPSG:4326 bounding box should work without srsname parameter.
-Jukka-
-----Alkuperäinen viesti-----
Lähettäjä: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Lähetetty: la 4.4.2009 21:48
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WFS data probleme
Thanks! I have make test
this request:
http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=47680.0,1620431.0,1197822.0,2677441.0
and this one it's ok
and I try this one :
http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=-5.498977524054812,41.347434706580835,10.812650506643369,51.089144192296196
But they don't work :s
When I make the datastore geoserver translate 47680.0 to -5.498977524054812
when I push "generate" for BBOX
I don't understand what is wrong because is geoserver who make translate, he
make mistake?
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
Hi,
WFS SRS and bbox must be using the same projection and units. If output it
asked to be in EPSG:4326 then bbox must use degrees in wgs84. If output is
asked to be the French projection EPSG:27572 then bbox must be in meters,
because it is the unit for 27572. In your case using SRS=EPSG:4326 may
help. Unfortunately I do not know anything about Openlayers.-Jukka-
Jimmy Aumard wrote:
Sorry I'm french and I don't understand what you said :s
It's the unit of my BBOX is wrong?
I must project my data in wgs84 to use wfs?
Openlayers generate the BBOX automatically, I don't know if it's possible
to
change this parameter.Thanks
Jim
2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
> Hi,
>
> Search from spatialreference.org
> http://spatialreference.org/ref/epsg/27572/
> returns among other things:
> *WGS84 Bounds*: -5.2000, 42.2500, 8.2300, 51.1000
> *Projected Bounds*: -22841.3905, 1712212.6192, 1087335.9605, 2703971.1254
>
> You should use the projected units (meters) in the request instead of
> lon/lat bounding box.
>
> -Jukka-
>
>
> ------------------------------
> *Lähettäjä:* Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
> *Lähetetty:* 3. huhtikuuta 2009 16:53
>
> *Vastaanottaja:* Rahkonen Jukka
> *Kopio:* geoserver-users@lists.sourceforge.net
> *Aihe:* Re: [Geoserver-users] WFS data probleme
>
> Thanks it's ok
>
> That work if I don't specify the BBOX parameter.
>
> But I use Openlayers to make a map with wfs layers and when it make
> requests he specify the BBOX.
>
> this is my function:
> var wfs = new OpenLayers.Layer.WFS(
> "States WFS","http://localhost:8080/geoserver/wfs",
> {typename: 'topp:france'},
> {
> layers: 'france',
> featureNS: 'http://www.openplans.org/topp’,
> style:fStyle,
> extractAttributes: true
>
> },
> {'reproject': true}
> );
>
> I don't show data on my map. Firebug show me the request and BBOX is
> specify.
>
> :s
>
> Jim
>
> 2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
>
>> Hi,
>>
>> I believe that everything is OK but Geoserver just does not find any
data
>> from the BBOX of the request.
>> I guess that problem is close to this point:
>> *&SRS=EPSG=27572&*
>> *BBOX=-6.091001143333474,41.347434706580835,*
>> *10.812650506643369,51.089559943887004*
>> *SRS=EPSG=27572 *is obviously wrong, EPSG:27572 should be better. Or
>> just leave the SRS and BBOX out and ask for the whole feature type
first,
>> perhaps with maxFeatures parameter,
>>
>> -Jukka-
>>
>> ------------------------------
>> *Lähettäjä:* Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
>> *Lähetetty:* 3. huhtikuuta 2009 16:12
>>
>> *Vastaanottaja:* Rahkonen Jukka
>> *Kopio:* geoserver-users@lists.sourceforge.net
>> *Aihe:* Re: [Geoserver-users] WFS data probleme
>>
>>
>> I have my data on the getCapabilities:
>>
>> <FeatureType>
>> <Name>topp:france</Name>
>> <Title>france_Type</Title>
>> <Abstract>Generated from bdd</Abstract>
>> -
>> <ows:Keywords>
>> <ows:Keyword>france</ows:Keyword>
>> <ows:Keyword>bdd</ows:Keyword>
>> </ows:Keywords>
>> <DefaultSRS>urn:x-ogc:def:crs:EPSG:27572</DefaultSRS>
>> -
>> <ows:WGS84BoundingBox>
>> <ows:LowerCorner>-6.091001143333474 41.347434706580835</ows:LowerCorner>
>> <ows:UpperCorner>10.812650506643369 51.089559943887004</ows:UpperCorner>
>> </ows:WGS84BoundingBox>
>> </FeatureType>
>>
>>
>>
>> My request is
>>
http://localhost:8080/geoserver/wfs?typename=france&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG=27572&BBOX=-6.091001143333474,41.347434706580835,10.812650506643369,51.089559943887004
>>
>> and the result is
>> <wfs:FeatureCollection xsi:schemaLocation="
http://www.openplans.org/topp
>>
http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:france
>> 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>
>>
>> Why I don't have the data? Sory if I'm not clear but I'm French and I
>> start with this technology
>>
>> Thanks for your help.
>>
>> Jim
>>
>> 2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
>>
>>> There should be no difference. How are you exactly trying to access
>>> your data in wfs? Do you see the feature type in WFS GetCapabilities
>>> document? If yes, what happens when you throw getFeature request?
>>>
>>> -Jukka Rahkonen-
>>>
>>> ------------------------------
>>> *Lähettäjä:* Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
>>> *Lähetetty:* 3. huhtikuuta 2009 15:20
>>> *Vastaanottaja:* Rahkonen Jukka
>>> *Kopio:* geoserver-users@lists.sourceforge.net
>>> *Aihe:* Re: [Geoserver-users] WFS data probleme
>>>
>>> Thanks for your answer,
>>>
>>> But before the import in geoserver does shapefiles need to be
>>> particularly formated because I can access to my data in wms but not
in
>>> wfs.
>>> I access to "states" shapefile in wfs.
>>>
>>> Jim.
>>>
>>>
>>>
>>> 2009/4/3 Rahkonen Jukka <Jukka.Rahkonen@anonymised.com>
>>>
>>>> Hi,
>>>>
>>>> It is for sure possible to use shapefiles as input for Geoserver, and
it
>>>> is possible also to import the shapefile to PostGIS first and use the
>>>> resulting database table as input for Geoserver. Both ways you can
use the
>>>> data through WFS. Creating WFS feature type happens almost
automatically it
>>>> you just follow the documentation and create DataStore first, then
>>>> FeatureType.
>>>>
>>>> -Jukka Rahkonen-
>>>>
>>>> ------------------------------
>>>> *Lähettäjä:* Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
>>>> *Lähetetty:* 3. huhtikuuta 2009 14:48
>>>> *Vastaanottaja:* geoserver-users@lists.sourceforge.net
>>>> *Aihe:* [Geoserver-users] WFS data probleme
>>>>
>>>> Hi!
>>>>
>>>> I want to know if it's possible to make a wfs's request on a shapefile
>>>> in postgis with geoserver and to know if data must be prepared to the
wfs.
>>>>
>>>> Thanks!
>>>>
>>>>
>>>
>>
>
Jimmy Aumard ha scritto:
Thanks! I have make test
this request: http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=47680.0,1620431.0,1197822.0,2677441.0
and this one it's okand I try this one : http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=-5.498977524054812,41.347434706580835,10.812650506643369,51.089144192296196
But they don't work :sWhen I make the datastore geoserver translate 47680.0 to -5.498977524054812 when I push "generate" for BBOX
I don't understand what is wrong because is geoserver who make translate, he make mistake?
Nope, your request is invalid in a couple of ways.
First, the bbox that GeoServer shows you in the configuration
page is always the lat/lon one, no matter what your native
SRS is, because OGC pretends we publish at least a lat/lon
bbox for each layer (thus that bbox _must_ be calculated).
The first error is that the two requests are using a parameter
that does not exist in WFS, &EPSG. WFS 1.0 has officially
no reprojection abilities, but GeoServer supports the
same parameter as WFS 1.1 as a vendor option.
The second error is that your second request, in case you
really need to use WGS84, does not specify it as the
SRS in the bbox.
Two valid requests are:
http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&BBOX=47680.0,1620431.0,1197822.0,2677441.0
(data in the native srs, bbox in the native srs)
http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&srsName=EPSG:4326&BBOX=-5.498977524054812,41.347434706580835,10.812650506643369,51.089144192296196,EPSG:4326
(asking the data to be reprojected in 4326, notice how I specified the spatial reference system for the bbox too).
Hope this helps
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Thanks for answers!
I have understand the different requests, this is a wfs request generate by openlayers:
they don’t work.
They work if the EPSG:4326 is specify in the BBOX
I don’t know if it’s possible to specify in openlayers to put this information but may be it’s possible to configure geoserver to work without this information?
Thanks for your help!
Jim
2009/4/4 Andrea Aime <aaime@anonymised.com>
Jimmy Aumard ha scritto:
Thanks! I have make test
this request: http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=47680.0,1620431.0,1197822.0,2677441.0 <http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=47680.0,1620431.0,1197822.0,2677441.0>
and this one it’s ok
and I try this one : http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=-5.498977524054812,41.347434706580835,10.812650506643369,51.089144192296196 <http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=-5.498977524054812,41.347434706580835,10.812650506643369,51.089144192296196>
But they don’t work :s
When I make the datastore geoserver translate 47680.0 to -5.498977524054812 when I push “generate” for BBOX
I don’t understand what is wrong because is geoserver who make translate, he make mistake?
Nope, your request is invalid in a couple of ways.
First, the bbox that GeoServer shows you in the configuration
page is always the lat/lon one, no matter what your native
SRS is, because OGC pretends we publish at least a lat/lon
bbox for each layer (thus that bbox must be calculated).The first error is that the two requests are using a parameter
that does not exist in WFS, &EPSG. WFS 1.0 has officially
no reprojection abilities, but GeoServer supports the
same parameter as WFS 1.1 as a vendor option.
The second error is that your second request, in case you
really need to use WGS84, does not specify it as the
SRS in the bbox.Two valid requests are:
http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&BBOX=47680.0,1620431.0,1197822.0,2677441.0
(data in the native srs, bbox in the native srs)http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&srsName=EPSG:4326&BBOX=-5.498977524054812,41.347434706580835,10.812650506643369,51.089144192296196,EPSG:4326
(asking the data to be reprojected in 4326, notice how I specified the spatial reference system for the bbox too).Hope this helps
Cheers
Andrea–
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Thanks for answers!
I have understand the different requests, this is a wfs request generate by openlayers:
they don’t work.
They work if the EPSG:4326 is specify in the BBOX
I don’t know if it’s possible to specify in openlayers to put this information but may be it’s possible to configure geoserver to work without this information?
Thanks for your help!
Jim
2009/4/4 Andrea Aime <aaime@anonymised.com>
Jimmy Aumard ha scritto:
Thanks! I have make test
this request: http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=47680.0,1620431.0,1197822.0,2677441.0 <http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=47680.0,1620431.0,1197822.0,2677441.0>
and this one it’s ok
and I try this one : http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=-5.498977524054812,41.347434706580835,10.812650506643369,51.089144192296196 <http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&EPSG=27572&BBOX=-5.498977524054812,41.347434706580835,10.812650506643369,51.089144192296196>
But they don’t work :s
When I make the datastore geoserver translate 47680.0 to -5.498977524054812 when I push “generate” for BBOX
I don’t understand what is wrong because is geoserver who make translate, he make mistake?
Nope, your request is invalid in a couple of ways.
First, the bbox that GeoServer shows you in the configuration
page is always the lat/lon one, no matter what your native
SRS is, because OGC pretends we publish at least a lat/lon
bbox for each layer (thus that bbox must be calculated).The first error is that the two requests are using a parameter
that does not exist in WFS, &EPSG. WFS 1.0 has officially
no reprojection abilities, but GeoServer supports the
same parameter as WFS 1.1 as a vendor option.
The second error is that your second request, in case you
really need to use WGS84, does not specify it as the
SRS in the bbox.Two valid requests are:
http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&BBOX=47680.0,1620431.0,1197822.0,2677441.0
(data in the native srs, bbox in the native srs)http://localhost:8080/geoserver/wfs?typename=dep_france_dom&VERSION=1.0.0&REQUEST=GetFeature&srsName=EPSG:4326&BBOX=-5.498977524054812,41.347434706580835,10.812650506643369,51.089144192296196,EPSG:4326
(asking the data to be reprojected in 4326, notice how I specified the spatial reference system for the bbox too).Hope this helps
Cheers
Andrea–
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.