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
Add Gml2 serializers to support WFS-T 1.0.0 #6523
Add Gml2 serializers to support WFS-T 1.0.0 #6523
Conversation
- Add writeFeatureElement (copied and adapted from ol.format.GML3) - Add writeGeometryElement (copied and adapted from ol.format.GML3) - Add related constants (GEOMETRY_SERIALIZERS_, GEOMETRY_NODE_FACTORY_) - Add empty serialization methods
Adapt the code from ol.format.GML3.
- Adapt the code from ol.format.GML3. - Create utility function to create coordinates nodes with proper attributes
Any interest in this? |
Can you explain the rationale? Are there WFS-s out there that don't support WFS 1.1? |
Sadly yes.
Since we don't want to use GeoServer in our infrastructure (huge Java service), we have to rely on TinyOWS or QGIS to support WFS-T in our solutions. Hence this feature proposal to add GML2 serializers and then use them to get full WFS-T 1.0.0 support in OpenLayers. |
ok thanks for explaining, then it makes sense IMHO. Your code looks good at first glance, I hope to find some time for a proper review soon. Thanks for your patience. |
Looking forward to that.
No problem. |
thank you for this solid contribution @Jenselme |
This PR adds
writeFeatureElement
and related serializers tool.format.GML2
. This will allow support for WFS-T version 1.0.0 (currently only 1.1.0 is supported witch GML3) I tested the serializers against a WFS 1.0.0 server (GeoServer) for these geometries:For these tests, in addition to these patches, I also applied a patch to use
ol.format.GML2.prototype.writeFeatureElement
inol.format.WFS.prototype.writeTransaction
. For those interested, the patch is here. I intend to open a PR for this as soon as this one is merged.