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
Support ArcGIS WMS GetFeatureInfo requests using GeoJSON format #5267
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
09907f8
to
a675f51
Compare
I create a new group named |
Thanks for making this test. I'm not sure I understand what the test is about nor what is not actually working. Would you please add more details to your explanation? What is the expected behaviour? Trying to query that group and I can see results. I can't find where there are features on the second layer thought. Thanks. |
The above link returns a 404 error. Would you please provide one that uses the desktop_alt application? (that one should work) |
Comment updated :-) |
Okay, I'll investigate why. |
Okay, it doesn't work indeed. We'll need to patch OpenLayers to make the format do the same thing as the WMS GetFeatureInfo one, however this property is vendor-param, i.e. @fredj I suggest that we implement new options in the OpenLayers "GeoJSON" format:
Please, let me know what you think about this. |
@adube could it be done by extending the GeoJSON class from OL ? |
Alright, I'll try that. |
9cc4736
to
47787d7
Compare
Fixed. I've noticed an other issue. I'll create a bug/task about it, as I could reproduce it on 'master' branch: results are shown twice, i.e. they have duplicates. |
f15821c
to
73516f7
Compare
73516f7
to
d693d51
Compare
Except the duplicated issue that's looks good to me (I can't reproduce it on MapServer layers). |
Can you rebase on master, I think that the Travis is solved here: 24b8625 |
This patch is already up-to-date onto master. |
d693d51
to
c9cc939
Compare
Trying "commit --amend" for the 3rd time. |
Travis is always failing... Please, let me know if you come up with a fix so that I can rebase onto it. Thanks. |
c9cc939
to
deff468
Compare
Same than before: Except the duplicated issue that's looks good to me (I can't reproduce it on MapServer layers). |
|
Effectively, it should be fixed but it can be in another PullRequest :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good, thanks
This patch introduces the support of WMS GetFeatureInfo requests made on WMS layers served by ArcGIS.
A GeoJSON format is used as INFO_FORMAT, since it seems to be the only one supported by ArcGIS. The format returns a
layerName
property for each feature, which identifies the layer it corresponds to. In order to read that information, a customngeo.format.ArcGISGeoJSON
format is created in this patch.How to test this patch
Known limitation
ArcGIS (at least with the layer used in the test above) does not return geometry. Therefore, it's hard to see where those features are as you need to remember where you clicked.
Known issue
While working on this patch, I found an issue: sometimes results are duplicated. This is not caused by this patch, therefore a separate PR should come soon to fix this.