Hi, Having both &TYPENAMES= and &TYPENAME= is sort of an error. In theory and according to the WFS standard &TYPENAME= should just be skipped because it does not exist in WFS 2.0 but GeoServer is lenient and accepts also TYPENAME because that’s how it was in WFS 1.0.0 and 1.1.0.
I know that your real problem is somewhere else but because you are investigating anyway try to find out also why &TYPENAME= jumps in and how to get rid of it. -Jukka- Lähettäjä: Pekka Sarkola <pe...@gispo.fi> Lähetetty: torstai 19. syyskuuta 2019 12.40 Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahko...@maanmittauslaitos.fi> Aihe: Re: [Geoserver-users] WFS with custom coordinate system Hi! This is intresting, result from QGIS log files (I remove hostname for courtesy reasons): 2019-09-19T12:20:15 CRITICAL Layer rwanda:rwanda16k_test : Download of features for layer rwanda:rwanda16k_test failed or partially failed: Download of features failed: Error transferring http://<hostname>:8080/geoserver/rwanda/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=rwanda:rwanda16k_test&TYPENAME=rwanda:rwanda16k_test&STARTINDEX=0&COUNT=1000000&BBOX=271192.72577525884844363,4697632.82336578797549009,745612.83750711858738214,4916032.82336579542607069<http://%3chostname%3e:8080/geoserver/rwanda/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=rwanda:rwanda16k_test&TYPENAME=rwanda:rwanda16k_test&STARTINDEX=0&COUNT=1000000&BBOX=271192.72577525884844363,4697632.82336578797549009,745612.83750711858738214,4916032.82336579542607069>, - server replied: Bad Request. You may attempt reloading the layer with F5 And Geoserver log says: 2019-09-19 09:20:15,025 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Matched Path: /rwanda/wfs, QueryString: SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=rwanda:rwanda16k_test&TYPENAME=rwanda:rwanda16k_test&STARTINDEX=0&COUNT=1000000&BBOX=271192.72577525884844363,4697632.82336578797549009,745612.83750711858738214,4916032.82336579542607069, with /** 2019-09-19 09:20:15,029 TRACE [ows.OWSHandlerMapping] - Mapped to HandlerExecutionChain with [org.geoserver.ows.Dispatcher@5d4b7525] and 3 interceptors 2019-09-19 09:20:15,030 INFO [geoserver.wfs] - Request: getServiceInfo 2019-09-19 09:20:15,030 ERROR [geoserver.ows] - org.opengis.referencing.NoSuchAuthorityCodeException: No authority was defined for code "". Did you forget "AUTHORITY:NUMBER"? at org.geotools.referencing.factory.ManyAuthoritiesFactory.noSuchAuthority(ManyAuthoritiesFactory.java:478) at org.geotools.referencing.factory.ManyAuthoritiesFactory.getAuthorityFactory(ManyAuthoritiesFactory.java:457) ... However, if I submit that URL (which QGIS is saying will replay bad request) to browser: I got valid response. So I have to figure out what is real URL QGIS sending... Rgs, Pekka Pekka Sarkola Gispo Oy pekka.sark...@gispo.fi<mailto:pekka.sark...@gispo.fi> - GSM +358 40 725 2042 www.gispo.fi<http://www.gispo.fi/> – www.paikkatieto.com<http://www.paikkatieto.com/> to 19. syysk. 2019 klo 11.59 Rahkonen Jukka (MML) (jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>) kirjoitti: Hi, Have you checked from the Geoserver logs or from the QGIS side how the request that QGIS sends looks like? -Jukka- Lähettäjä: Pekka Sarkola <pe...@gispo.fi<mailto:pe...@gispo.fi>> Lähetetty: torstai 19. syyskuuta 2019 10.41 Vastaanottaja: GeoServer Mailing List List <geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>> Aihe: [Geoserver-users] WFS with custom coordinate system Hi! I have defined custom coordinate system to Geoserver (v2.15.1) and now I just get errors from WFS requests. Error logs says: 2019-09-19 07:05:53,764 ERROR [geoserver.ows] - org.opengis.referencing.NoSuchAuthorityCodeException: No authority was defined for code "". Did you forget "AUTHORITY:NUMBER"? My definiton in epsg.properties is including authority information and custom crs is perfectly showing in SRS list. Also, if I made WFS requests in other CRS (like EPSG:4326 or 3857) it works. I test WFS service with QGIS In documention says: "..GeoServer allows reprojection to any supported SRS in its internal database". Does this mean that reprojection is not possible to custom coordinate systems? Rgs, Pekka Pekka Sarkola Gispo Oy pekka.sark...@gispo.fi<mailto:pekka.sark...@gispo.fi> - GSM +358 40 725 2042 www.gispo.fi<http://www.gispo.fi/> – www.paikkatieto.com<http://www.paikkatieto.com/>
_______________________________________________ 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