[
https://issues.apache.org/jira/browse/SIS-192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Desruisseaux updated SIS-192:
------------------------------------
Attachment: GML_version.patch
To fix this issue on Apache SIS 0.5 release:
* Download http://www.apache.org/dyn/closer.cgi/sis/0.5/apache-sis-0.5-src.zip
* Unzip in any folder
* Open a terminal in the {{sis-0.5}} folder
* Apply the patch attached to this task, for example {{patch -p0 <
GML_version.patch}}
* Run {{mvn install}}
> Suppression of "3.2" in "http://www.opengis.net/gml/3.2" does not work
> ----------------------------------------------------------------------
>
> Key: SIS-192
> URL: https://issues.apache.org/jira/browse/SIS-192
> Project: Spatial Information Systems
> Issue Type: Bug
> Components: Metadata
> Affects Versions: 0.4, 0.5
> Reporter: Martin Desruisseaux
> Assignee: Martin Desruisseaux
> Fix For: 0.6
>
> Attachments: GML_version.patch
>
>
> Representation of a temporal primitive in a metadata objects uses GML.
> However the namespace of those objects depends on the GML version:
> * Before GML 3.2.1, it was http://www.opengis.net/gml
> * Starting with GML 3.2.1, it is http://www.opengis.net/gml/3.2
> Apache SIS defaults to the latest supported version of each standard. However
> it does not work with other software which expect GML 3.2. The namespace was
> supposed to be controllable as below:
> {code:java}
> Result out = ...; // Where to write the XML (Writer, OutputStream, etc.).
> Map<String,Object> properties = new HashMap<>();
> properties.put(XML.GML_VERSION, "3.2");
> XML.marshal(metadata, out, properties);
> {code}
> However the above does not change the namespace as expected.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)