Return-Path: X-Original-To: apmail-sis-user-archive@www.apache.org Delivered-To: apmail-sis-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16ECB10A4E for ; Fri, 13 Feb 2015 10:32:56 +0000 (UTC) Received: (qmail 32895 invoked by uid 500); 13 Feb 2015 10:32:55 -0000 Delivered-To: apmail-sis-user-archive@sis.apache.org Received: (qmail 32865 invoked by uid 500); 13 Feb 2015 10:32:55 -0000 Mailing-List: contact user-help@sis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@sis.apache.org Delivered-To: mailing list user@sis.apache.org Received: (qmail 32855 invoked by uid 99); 13 Feb 2015 10:32:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 10:32:55 +0000 X-ASF-Spam-Status: No, hits=3.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_BRBL_LASTEXT,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of martin.desruisseaux@geomatys.fr designates 188.165.246.31 as permitted sender) Received: from [188.165.246.31] (HELO cosmos2.geomatys.com) (188.165.246.31) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 10:32:50 +0000 Received: from kuroshio.local (118-42-190-109.dsl.ovh.fr [109.190.42.118]) by cosmos2.geomatys.com (Postfix) with ESMTP id 7BEFF18C1C for ; Fri, 13 Feb 2015 11:31:59 +0100 (CET) Message-ID: <54DDD29D.5000105@geomatys.fr> Date: Fri, 13 Feb 2015 11:31:57 +0100 From: Martin Desruisseaux Organization: Geomatys User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: user@sis.apache.org Subject: Re: Question about TimePeriod & auto-generated id References: <54DCFC21.1050900@gmail.com> <54DD0379.4080103@geomatys.fr> <54DD2025.80602@gmail.com> <54DD2893.5000808@geomatys.fr> <54DD3918.4080101@gmail.com> <54DD3D7E.5060908@geomatys.fr> <54DD43B2.1080502@gmail.com> In-Reply-To: <54DD43B2.1080502@gmail.com> Content-Type: multipart/mixed; boundary="------------060306080006070701060403" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------060306080006070701060403 Content-Type: multipart/alternative; boundary="------------060604040009030308050602" --------------060604040009030308050602 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hello Emmanuel Le 13/02/15 01:22, Emmanuel Blondel a écrit : > Indeed, this is what i was trying.. with 3.2 and 3.2.0, it still gives > http://www.opengis.net/gml/3.2 It is probably a bug. Could you try to download the source code, apply the patch attached to this email and try again please? * Download link: http://www.apache.org/dyn/closer.cgi/sis/0.5/apache-sis-0.5-src.zip * Something like the following commands in a Unix shell should work: unzip apache-sis-0.5-src.zip cd sis-0.5 patch -p0 < ../GML_version.patch mvn install > For 3.1 / 3.1.1, i get a JAXBException. Can you post the stack trace? Even if "3.1" is not the desired value here, I would like to see if it is easily fixable. Martin --------------060604040009030308050602 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hello Emmanuel

Le 13/02/15 01:22, Emmanuel Blondel a écrit :
Indeed, this is what i was trying.. with 3.2 and 3.2.0, it still gives http://www.opengis.net/gml/3.2

It is probably a bug. Could you try to download the source code, apply the patch attached to this email and try again please?

unzip apache-sis-0.5-src.zip
cd sis-0.5
patch -p0 < ../GML_version.patch
mvn install


For 3.1 / 3.1.1, i get a JAXBException.

Can you post the stack trace? Even if "3.1" is not the desired value here, I would like to see if it is easily fixable.

    Martin


--------------060604040009030308050602-- --------------060306080006070701060403 Content-Type: text/x-patch; name="GML_version.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="GML_version.patch" Index: core/sis-utility/src/main/java/org/apache/sis/xml/Pooled.java =================================================================== --- core/sis-utility/src/main/java/org/apache/sis/xml/Pooled.java (révision 1658908) +++ core/sis-utility/src/main/java/org/apache/sis/xml/Pooled.java (copie de travail) @@ -260,7 +260,7 @@ case 0: { // Apply namespace replacements only for older versions than the one supported natively by SIS. if (versionGML != null) { - if (versionGML.compareTo(LegacyNamespaces.VERSION_3_2_1, 2) < 0) { + if (versionGML.compareTo(LegacyNamespaces.VERSION_3_2_1) < 0) { return FilterVersion.GML31; } } --------------060306080006070701060403--