-
-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editor / Polygon / Fix validation error on srsName and id attributes. (…
…#4791) * Editor / Polygon / Fix validation error on srsName and id attributes. When adding bounding polygon, issues are reported on validation. ![image](https://user-images.githubusercontent.com/1701393/85522811-6d6adb80-b606-11ea-8c02-726e4d61f55e.png) Since OL6 update, an srsName is added to LinearRing in GML3.2.0. ![image](https://user-images.githubusercontent.com/1701393/85522835-722f8f80-b606-11ea-87c6-a8056e1ae5b9.png) GML2 OL format was not. See https://github.com/openlayers/openlayers/blame/v6.3.1/src/ol/format/GML2.js#L228 . GML3 does https://github.com/openlayers/openlayers/blob/v6.3.1/src/ol/format/GML3.js#L503 From the XSD, this attribute should probably not be added https://schemas.wmo.int/wmdr/1.0RC6/documentation/schemadoc/schemas/geometryBasic2d_xsd/elements/LinearRing.html. Workaround that issue by updating `LinearRing` in `update-fixed-info.xsl`. * Editor / Polygon / Fix validation error on srsName and id attributes / Preserve existing. * Editor / Polygon / Fix validation error on srsName and id attributes / Avoid xmlns attribute. * Editor / Polygon / Fix validation error on srsName and id attributes. Avoid empty xmlns by cleaning gml namespaces of all elements. * Editor / Polygon / Fix validation error on srsName and id attributes. * Editor / Polygon / Fix validation error on srsName and id attributes / Avoid xmlns='' attribute and keep GML namesapce declaration at the root document level only. Thanks josegar74 for helping on that. * Editor / Polygon / Fix validation error on srsName and id attributes.
- Loading branch information
1 parent
ffa577f
commit a83b132
Showing
3 changed files
with
85 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters