Hi,

The code returned in srsName is configurable within GeoServer. I don't have 
enough information to tell if your specific case is wrong. You should have a 
look in the documentation:
https://docs.geoserver.org/latest/en/user/services/wfs/webadmin.html#gml 
<https://docs.geoserver.org/latest/en/user/services/wfs/webadmin.html#gml>

I didn't find anything useful to explain numberReturned=0. I think it could be 
seen as a unknown, but in this situation I don't seen why it shouldn't be 1.

Best regards,

Roar Brænden


> 11. okt. 2021 kl. 16:21 skrev Marcin Grudzień <mgrudzi...@gmail.com>:
> 
> Hi Roar,
> 
> Here is the GetFeature request asking for one feature.
> http://localhost:8080/geoserver/us-govserv/ows?service=WFS&version=2.0.0&request=GetFeature&typeNames=us-govserv%3AGovernmentalService&count=1
>  
> <http://localhost:8080/geoserver/us-govserv/ows?service=WFS&version=2.0.0&request=GetFeature&typeNames=us-govserv%3AGovernmentalService&count=1>
> 
> And her is the response.
> 
> <wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs/2.0 
> <http://www.opengis.net/wfs/2.0>" 
> xmlns:us-govserv="http://inspire.ec.europa.eu/schemas/us-govserv/4.0 
> <http://inspire.ec.europa.eu/schemas/us-govserv/4.0>" 
> xmlns:gml="http://www.opengis.net/gml/3.2 <http://www.opengis.net/gml/3.2>" 
> xmlns:xs="http://www.w3.org/2001/XMLSchema 
> <http://www.w3.org/2001/XMLSchema>" 
> xmlns:base="http://inspire.ec.europa.eu/schemas/base/3.3 
> <http://inspire.ec.europa.eu/schemas/base/3.3>" 
> xmlns:xlink="http://www.w3.org/1999/xlink <http://www.w3.org/1999/xlink>" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
> <http://www.w3.org/2001/XMLSchema-instance>" 
> xsi:schemaLocation="http://www.opengis.net/wfs/2.0 
> <http://www.opengis.net/wfs/2.0> http://schemas.opengis.net/wfs/2.0/wfs.xsd 
> <http://schemas.opengis.net/wfs/2.0/wfs.xsd> 
> http://inspire.ec.europa.eu/schemas/us-govserv/4.0 
> <http://inspire.ec.europa.eu/schemas/us-govserv/4.0> 
> https://inspire.ec.europa.eu/schemas/us-govserv/4.0/GovernmentalServices.xsd 
> <https://inspire.ec.europa.eu/schemas/us-govserv/4.0/GovernmentalServices.xsd>
>  http://www.opengis.net/gml/3.2 <http://www.opengis.net/gml/3.2> 
> http://schemas.opengis.net/gml/3.2.1/gml.xsd 
> <http://schemas.opengis.net/gml/3.2.1/gml.xsd>" numberMatched="unknown" 
> numberReturned="0" timeStamp="2021-10-11T14:17:41.439Z">
> <wfs:member>
> <us-govserv:GovernmentalService gml:id="GovernmentalService.60204">
> <gml:identifier codeSpace="http://inspire.jrc.ec.europa.eu/ids 
> <http://inspire.jrc.ec.europa.eu/ids>">http://iip.gugik.gov.pl/so/US/GovernmentalService/PL.PZGiK.340.BDOT10k/2BE17937-61AE-2805-E053-CC2BA8C00483
>  
> <http://iip.gugik.gov.pl/so/US/GovernmentalService/PL.PZGiK.340.BDOT10k/2BE17937-61AE-2805-E053-CC2BA8C00483></gml:identifier>
> <us-govserv:beginLifespanVersion>2019-03-13T00:00:00</us-govserv:beginLifespanVersion>
> <us-govserv:inspireId>
> <base:Identifier>
> <base:localId>2BE17937-61AE-2805-E053-CC2BA8C00483</base:localId>
> <base:namespace>PL.PZGiK.340.BDOT10k</base:namespace>
> <base:versionId>2019-03-13T00:00:00</base:versionId>
> </base:Identifier>
> </us-govserv:inspireId>
> <us-govserv:pointOfContact xsi:nil="true" nilReason="inapplicable"/>
> <us-govserv:serviceLocation>
> <us-govserv:ServiceLocationType>
> <us-govserv:serviceLocationByGeometry>
> <gml:Surface srsName="urn:ogc:def:crs:EPSG::4258" srsDimension="2" 
> gml:id="GovernmentalService.1.geom">
> <gml:exterior>
> <gml:LinearRing>
> <gml:posList>51.7877882034977 18.5017198697435 51.78778312975884 
> 18.501753571567466 51.787757641490415 18.50174529588929 51.787741828146196 
> 18.50185525433221 51.787590938839436 18.501798906480005 51.78760491632221 
> 18.501701440758964 51.78757851885154 18.501690854762824 51.78759366111539 
> 18.501592361023192 51.78756672893427 18.501582941185113 51.787581831756675 
> 18.501475166277817 51.787719305932235 18.501528180301523 51.78771510825151 
> 18.501556361478713 51.78773797976996 18.50156263552915 51.787746714583804 
> 18.501501483562173 51.78778450934107 18.501251623045356 51.78784324938848 
> 18.50127490445298 51.78785484613871 18.50118877629267 51.78824355724281 
> 18.501334301552983 51.78822172559855 18.5014884158583 51.78819596627452 
> 18.501479853185366 51.78818933892028 18.501528945309218 51.788102591191475 
> 18.501497125515687 51.788109666985086 18.501447738484394 51.78785534843607 
> 18.501349604306387 51.787847812546175 18.501396530710725 51.787863940685135 
> 18.501403314124804 51.787856317911874 18.501450966615618 51.78784019039049 
> 18.501444328204567 51.78783248073829 18.50149270674942 51.78790950119669 
> 18.501521297973916 51.788014991355375 18.501561322619903 51.7880760684582 
> 18.501584288735227 51.78804241890583 18.501814961442484 51.7877882034977 
> 18.5017198697435</gml:posList>
> </gml:LinearRing>
> </gml:exterior>
> </gml:Surface>
> </us-govserv:serviceLocationByGeometry>
> </us-govserv:ServiceLocationType>
> </us-govserv:serviceLocation>
> <us-govserv:serviceType 
> xlink:href="http://inspire.ec.europa.eu/codelist/ServiceTypeValue/primaryEducation
>  <http://inspire.ec.europa.eu/codelist/ServiceTypeValue/primaryEducation>"/>
> </us-govserv:GovernmentalService>
> </wfs:member>
> </wfs:FeatureCollection>
> 
> Best regards,
> Marcin
> 
> On Mon, 11 Oct 2021 at 16:15, Roar Brænden <roar.brenden...@gmail.com 
> <mailto:roar.brenden...@gmail.com>> wrote:
> Hi,
> 
> You're url is referring to localhost, which means the rest of us can't get 
> the response.
> You should copy a little portion of it that shows the basics of your issue.
> 
> Best regards,
> Roar Brænden
> 
> 
>> 11. okt. 2021 kl. 14:14 skrev Marcin Grudzień <mgrudzi...@gmail.com 
>> <mailto:mgrudzi...@gmail.com>>:
>> 
>> Hi Everyone,
>> 
>> For the last few years, we have been providing WFSs for the purpose of 
>> INSPIRE using Geoserver + app-schema and INSPIRE extensions.
>> 
>> In the meantime, I have noticed that the features-templating extension can 
>> be adopted for publishing INSPIRE WFSs. Because we have some troubles with 
>> app-schema, I decided to give it a try and publish one of our INSPIRE 
>> datasets for Utility and governmental services theme using a combination of 
>> Geoserver + features-templating and INSPIRE extensions. I used Geoserver in 
>> version 2.20-RC for testing.
>> 
>> My goal was to set up WFS 2.0.0 service publishing data in GML format. 
>> Setting up the service went surprisingly well. However, I noticed two issues 
>> with GMLs generated with GetFeature request. The request that I have been 
>> using looks like this 
>> http://localhost:8080/geoserver/us-govserv/ows?service=WFS&version=2.0.0&request=GetFeature&typeNames=us-govserv:GovernmentalService&count=50
>>  
>> <http://localhost:8080/geoserver/us-govserv/ows?service=WFS&version=2.0.0&request=GetFeature&typeNames=us-govserv:GovernmentalService&count=50>
>> 
>> 1. Although the service returns features the response always contains the 
>> value of numberReturned attribute set to "0". 
>> 
>> 2. Although SRS style in WFS properties for GML 2, 3, and 3.2 is set to OGC 
>> HTTP URI the code of CRS in GetFeature responses is returned as OGC URN 
>> format (e.g. urn:ogc:def:crs:EPSG::4258 instead of 
>> http://www.opengis.net/def/crs/EPSG/0/4258 
>> <http://www.opengis.net/def/crs/EPSG/0/4258>). CRS code advertised in 
>> GetCapabilities response is correct.
>> 
>> Can these issues be somehow fixed?
>> 
>> I also noticed a problem with DescribeFeatureType response. The response 
>> returns a flat database schema. Is there any possibility to set it up to 
>> return INSPIRE complex schema or a reference to INSPIRE XSD application 
>> schema like app-schema extension?
>> 
>> Best regards,
>> Marcin
>> 
>> 
>> _______________________________________________
>> Geoserver-users mailing list
>> 
>> Please make sure you read the following two resources before posting to this 
>> list:
>> - Earning your support instead of buying it, but Ian Turton: 
>> http://www.ianturton.com/talks/foss4g.html#/ 
>> <http://www.ianturton.com/talks/foss4g.html#/>
>> - The GeoServer user list posting guidelines: 
>> http://geoserver.org/comm/userlist-guidelines.html 
>> <http://geoserver.org/comm/userlist-guidelines.html>
>> 
>> If you want to request a feature or an improvement, also see this: 
>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>  
>> <https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer>
>> 
>> 
>> Geoserver-users@lists.sourceforge.net 
>> <mailto:Geoserver-users@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users 
>> <https://lists.sourceforge.net/lists/listinfo/geoserver-users>
> 

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to