From commits-return-3412-apmail-sis-commits-archive=sis.apache.org@sis.apache.org Sun Jan 5 20:44:50 2014 Return-Path: X-Original-To: apmail-sis-commits-archive@www.apache.org Delivered-To: apmail-sis-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DE4BB10789 for ; Sun, 5 Jan 2014 20:44:50 +0000 (UTC) Received: (qmail 6777 invoked by uid 500); 5 Jan 2014 20:44:50 -0000 Delivered-To: apmail-sis-commits-archive@sis.apache.org Received: (qmail 6754 invoked by uid 500); 5 Jan 2014 20:44:50 -0000 Mailing-List: contact commits-help@sis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sis-dev@sis.apache.org Delivered-To: mailing list commits@sis.apache.org Received: (qmail 6747 invoked by uid 500); 5 Jan 2014 20:44:50 -0000 Delivered-To: apmail-incubator-sis-commits@incubator.apache.org Received: (qmail 6744 invoked by uid 99); 5 Jan 2014 20:44:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jan 2014 20:44:50 +0000 Date: Sun, 5 Jan 2014 20:44:50 +0000 (UTC) From: "Martin Desruisseaux (JIRA)" To: sis-commits@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SIS-160) Need XSLT between GML 3.1 and 3.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Martin Desruisseaux created SIS-160: --------------------------------------- Summary: Need XSLT between GML 3.1 and 3.2 Key: SIS-160 URL: https://issues.apache.org/jira/browse/SIS-160 Project: Spatial Information Systems Issue Type: Improvement Components: Referencing Affects Versions: 0.4 Reporter: Martin Desruisseaux Priority: Minor Apache SIS supports natively only one GML version, typically the latest one (GML 3.2.1 as of Apache SIS 0.4). Reading a document from an older schema requires transforming the XML document before unmarshalling by SIS. Conversely, writing a document to an older schema requires transforming the XML document after marshalling by SIS. Transformations between GML 3.2 and 3.2.1 is easy: only the name space URL changed. Such URL substitutions are done with our package-privated {{org.apache.sis.xml.FilteredStreamReader}} and {{FilteredStreamWriter}} classes. This is a lighter approach than using XSLT. However transformations between GML 3.1.1 and GML 3.2.1 is more complex. Example: {code:xml|title=GML 3.1.1} Mean Sea Level Approximates geoid. Averaged over a 19-year period. World. -180 -90 +180 +90 Hydrography. geoidal {code} {code:xml|title=GML 3.2.1} urn:ogc:def:datum:EPSG::5100 Mean Sea Level Approximates geoid. World. -180 +180 -90 +90 Hydrography. Averaged over a 19-year period. {code} {{>}} has been renamed as {{}}, {{}} as {{}}, {{}} as {{}} with a very different content. {{}} does not exist in GML 3.1.1 but is mandatory in GML 3.2.1. Conversely, {{}} defined in GML 3.1.1 has been removed in GML 3.2.1. Those changes are too complex for our above-cited {{org.apache.sis.xml}} classes - we will need real [XSLT (Extensible Stylesheet Language Transformations)|http://en.wikipedia.org/wiki/XSLT]. XSLT 1.0 is supported in JDK6. So the work needed for this task is to write the XSLT document, or to find existing XSLT that we can distribute under Apache 2 license. This work well as long as the Apache SIS native GML version contains all the information to write in the target GML versions. An exception to this condition is the above-cited {{}}, which have been removed from GML 3.2.1 and is uneasy to infer from other property values. This special case needs support straight in the {{org.apache.sis.referencing.datum.DefaultVerticalDatum}} class (already implemented in SIS 0.4). h3. Metadata Transformations from ISO 19139:2003 to ISO 19115-3:2013 will be a similar challenge. But in this case, XSLT are made by ESRI. We need to check if the license is compatible, and to verify if we need to write ourselves the XSLT for the reverse transformation (newer to older). -- This message was sent by Atlassian JIRA (v6.1.5#6160)