-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
WFS Server featureid parameter doesn't like typename containing a dot. #4925
Comments
👍 I'm facing the same issue. |
And it ain't cool for Inspire harmonized layer names... |
Are the dots legal in a layer/type name? I assume yes, and if so it should be a relatively easy fix around line 2326 in mapwfs.c. We'd need to change that conditional to be nTokens1 >= 2 and then change the next bit of code to be more generic to push the last token onto the aFIDValues array and the proceeding tokens (joined on a .) onto the aFIDLayers array. --Steve |
In a MapServer point of view I don't know, but it is mandatory in some context like INSPIRE in Europe. See http://boundlessgeo.com/2012/04/inspire-harmonized-layer-names-in-geoserver/ for example. |
It's legal to have dots. |
I’ll try and post a patch later today. --Steve From: Tom Kralidis [mailto:notifications@github.com] It's legal to have dots. — |
I posted a patch against the 6.4 branch here: http://maps1.dnr.state.mn.us/test/mapserver/4925.patch. It's untested but it's a pretty straight forward fix.I see that Even also has included a fix in a recent commit that's probably more efficient. Can someone test? |
Test with Mapserver 7.0 with Spatialite data source. Success with request: |
when playing with this kind of request :
https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&REQUEST=GetFeature&typename=fpc_fond_plan_communaut.fpcbaticonstruction&VERSION=2.0.0&featureid=fpc_fond_plan_communaut.fpcbaticonstruction.1
if your typename contains a dot, it doesn't work. You have this message : msWFSGetFeature(): WFS server error. Invalid FeatureId in GetFeature. Expecting layername.value : fpc_fond_plan_communaut.fpcbaticonstruction.1
Best regards
The text was updated successfully, but these errors were encountered: