Hi Marcin, Here some feedbacks about your questions:
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). CRS code advertised in > GetCapabilities response is correct. Unfortunately this is a bug. I've opened a Jira ticket https://osgeo-org.atlassian.net/browse/GEOS-10272. The issue will likely be fixed in an upcoming GeoServer bug sprint. 1. Although the service returns features the response always contains the > value of numberReturned attribute set to "0". 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? Regarding these two problems, for the moment there is no way to have the numberReturned having the proper value in a GML response and to return a schema different from the one built from the datasource schema in a DescribeFeatureType request. Currently the options to have these functionalities are either: - contribute the code yourself and prepare a GitHub Pull Request following these guidelines: https://github.com/geoserver/geoserver/blob/main/CONTRIBUTING.md - contact a commercial GeoServer support provider ( http://geoserver.org/support/), and have them do it for you. Regards, Marco Volpini == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us for more information. == Marco Volpini Software Engineer GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 https://www.geosolutionsgroup.com/ http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail. On Tue, Oct 12, 2021 at 9:50 AM Roar Brænden <roar.brenden...@gmail.com> wrote: > 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 > > 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 > > And her is the response. > > <wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs/2.0" > xmlns:us-govserv="http://inspire.ec.europa.eu/schemas/us-govserv/4.0" > xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xs=" > http://www.w3.org/2001/XMLSchema" xmlns:base=" > http://inspire.ec.europa.eu/schemas/base/3.3" xmlns:xlink=" > http://www.w3.org/1999/xlink" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd > http://inspire.ec.europa.eu/schemas/us-govserv/4.0 > https://inspire.ec.europa.eu/schemas/us-govserv/4.0/GovernmentalServices.xsd > http://www.opengis.net/gml/3.2 > 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://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"/> > </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> > 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>: >> >> 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 >> >> 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). 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#/ >> - 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 >> >> >> > _______________________________________________ > 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 >
_______________________________________________ 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