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 <pekka@…8756…>
Lähetetty: torstai 19. syyskuuta 2019 12.40
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahkonen@…6847…>
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://: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@…10117…] 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.sarkola@…8756… - GSM +358 40 725 2042
www.gispo.fi – www.paikkatieto.com
to 19. syysk. 2019 klo 11.59 Rahkonen Jukka (MML) (jukka.rahkonen@…6847…) 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 <pekka@…8756…>
Lähetetty: torstai 19. syyskuuta 2019 10.41
Vastaanottaja: GeoServer Mailing List List <geoserver-users@lists.sourceforge.net>
Aihe: [Geoserver-users] WFS with custom coordinate systemHi!
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.sarkola@…8756… - GSM +358 40 725 2042
www.gispo.fi – www.paikkatieto.com