-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InfoClick (new version) Get infoclick working for ArcGIS Server, and (myCarta Server) #1266
Comments
Thanks for a nice issue description!
Regarding #1256: it's correct that this issue persists in |
There is a big problem with those ArcGIS layers: they do not indicate which of the requested layers the respond feature belongs to. See this example:
Requests goes out to two layers ( But there's no way (as far as I can tell) to see if the resulting feature comes from layer A or B: <?xml version="1.0" encoding="UTF-8"?>
<FeatureInfoResponse xmlns:esri_wms="http://www.esri.com/wms" xmlns="http://www.esri.com/wms">
<FIELDS OBJECTID="8536" VHID="64616" URL="https://biotopkartering.lansstyrelsen.se/frmVandringshinder.aspx?VandringshinderID=64616" VHnamn="Null" VHNkoord="6282090" VHEkoord="372588" VHtyp="damm" KombMedVag="Null" LokalBeskr="Fyllinge kvarn" VHlopnr="1" UndNamn="H15" InvDatum="2007-09-20" FallhTot="Null" FallhUtn="Null" Naturl_VH="Nej" DammLangd="Null" DammBredd="Null" Torrfara="Nej" TorrfaraL="Null" FlodeUppsk="12" VForKlass="M" UtskTrAnt="Null" TrumLangd="Null" TrumDiam="Null" TrumLutn="Null" TrumBmtrl="Null" TrumFallh="Null" TrumPolNed="Nej" TrumHast="Null" TrumDjUtl="Null" TrumFriAnd="Null" Fingrind="ja" TrumDjup="Null" ForMort="Definitivt" ForOring="Passerbart" ForAlyngel="Null" ForAl="Null" Skador="Nej" AnvIdag="Null" AndTidig="Kvarn" KulturHind="Ja" KulturByggn="Null" VagTillVH="Ja" Fiskvag="Ja" FiskvagID="Null" FiskvFunkt="fungerar" Atgarder="Null" Kommentar="Elproduktion/Skiss finns/inga, trappa finns redan och fungerar" InmDatum="2013-06-03 14:07:02" AndrDatum="2013-06-03 14:24:28" AndrBeskr="Ändrat vattendrag till Fylleån" Vdragnamn="Fylleån" HaroNr="100" EU_CD="Null" VattenplatsID="8267" NarmasteVattenforekomstEUID="SE628804-132692" LiggerIVattenforekomsten="Ja" OvrigtVattenEUID="Null" VersionVattenforekomst="SVAR_2012_2" Shape="Point"></FIELDS>
<FIELDS OBJECTID="8536" VHID="64616" URL="https://biotopkartering.lansstyrelsen.se/frmVandringshinder.aspx?VandringshinderID=64616" VHnamn="Null" VHNkoord="6282090" VHEkoord="372588" VHtyp="damm" KombMedVag="Null" LokalBeskr="Fyllinge kvarn" VHlopnr="1" UndNamn="H15" InvDatum="2007-09-20" FallhTot="Null" FallhUtn="Null" Naturl_VH="Nej" DammLangd="Null" DammBredd="Null" Torrfara="Nej" TorrfaraL="Null" FlodeUppsk="12" VForKlass="M" UtskTrAnt="Null" TrumLangd="Null" TrumDiam="Null" TrumLutn="Null" TrumBmtrl="Null" TrumFallh="Null" TrumPolNed="Nej" TrumHast="Null" TrumDjUtl="Null" TrumFriAnd="Null" Fingrind="ja" TrumDjup="Null" ForMort="Definitivt" ForOring="Passerbart" ForAlyngel="Null" ForAl="Null" Skador="Nej" AnvIdag="Null" AndTidig="Kvarn" KulturHind="Ja" KulturByggn="Null" VagTillVH="Ja" Fiskvag="Ja" FiskvagID="Null" FiskvFunkt="fungerar" Atgarder="Null" Kommentar="Elproduktion/Skiss finns/inga, trappa finns redan och fungerar" InmDatum="2013-06-03 14:07:02" AndrDatum="2013-06-03 14:24:28" AndrBeskr="Ändrat vattendrag till Fylleån" Vdragnamn="Fylleån" HaroNr="100" EU_CD="Null" VattenplatsID="8267" NarmasteVattenforekomstEUID="SE628804-132692" LiggerIVattenforekomsten="Ja" OvrigtVattenEUID="Null" VersionVattenforekomst="SVAR_2012_2" Shape="Point"></FIELDS>
</FeatureInfoResponse> (In addition, we seem to get a duplicate of the same feature… but that's another issue and nothing we can fix on our end.) And if we can't match a feature to a layer, there's no way to know which infoclick definition should be used. Any ideas on how we can tackle those responses, @eri-blan @linusfj @Hallbergs? |
Here is another result from Skogsstyrelsen:
|
Should've tagged this issue in this commit. Go check it out @eri-blan, @linusfj (I took care of the legacy Click.js implementation too). |
Superb! Thanks for a quick fix. I will continue to investigate ArcGIS Server GetFeatureInfo behaviour and see if I can provide some more information. I tested it with Länstyrelsen and Skogsstyrelsen WMS Services but will try other ones as well. |
Glad to hear. @eri-blan, regarding https://karta.orebro.se/mycartaserver/externkarta2.wms: I can't really test easily as the service provides geometries only outside our extent (and in another projection). If you control the service, can you put some test geometries around my area? |
@jacobwod, I added a test map for myCartaServer: https://karta.orebro.se/myCartaServer/testkarta.wms? I added some more supported coordinate systems, hope it works. |
@jacobwod We tried 3.11 with an arcgis WMS service but couldn´t get application/vnd.esri.wms_raw_xml to show up in the info format list, any ideas? The service includes this info format in GetCapabilities. |
Weird! Are you sure you've built upgraded Admin (cleaned your cache?). The format is among those supported: What happens next is that Admin parses the response, looks in So if any of the iterated formats matches with the response from Would be really interesting to see which value |
@jacobwod Not sure if I´m doing something wrong but all i see is
I´ve tried the release build and building from master myself. |
Describe the bug
Infoclick for some WMS-Servers does not work with the new InfoClick.
To Reproduce
I provide a few open WMS-services to test with:
ArcGIS Server
https://ext-geodata-nationella.lansstyrelsen.se/arcgis/services/LST/lst_wms_miljodata/MapServer/WMSServer?
application/geojson is advertised but does not seem to work. text/xml gives an xml response but is not shown in InfoClick.
It might be that it works depending on the ArcGIS Server-version.
Example response:
There has been an effort made to make ArcGIS Server GetFeatureInfo-respones to work with the old InfoClick, see #1256
myCarta Server
https://karta.orebro.se/mycartaserver/externkarta2.wms?
Does not seem to support application/json from the start. However application/vnd.geo+json ang gives a response result but does not show upp in InfoClick. Same with text/xml.
There is already an issue about this #1147
Example responses:
Carmenta Server
https://geo-netinfo.trafikverket.se/MapService/wms.axd/NetInfo_1_1?
Seems to work somewhat well, both application/json and text/xml.
Example responses:
Expected behavior
Information from GetFeatureInfo is shown in InfoClick (new version)
The text was updated successfully, but these errors were encountered: