Package org.apache.sis.internal.geoapi.temporal

Examples of org.apache.sis.internal.geoapi.temporal.Position


     * or just unspecified. This class assumes that a time of zero means "unspecified". This will be
     * revised after we implemented ISO 19108.</p>
     */
    static XMLGregorianCalendar toXML(final Instant instant) {
        if (instant != null) {
            final Position position = instant.getPosition();
            if (position != null) {
                final Context context = Context.current();
                try {
                    final XMLGregorianCalendar date = XmlUtilities.toXML(context, position.getDate());
                    if (date != null) {
                        XmlUtilities.trimTime(date, false);
                        return date;
                    }
                } catch (DatatypeConfigurationException e) {
View Full Code Here


     * or just unspecified. This class assumes that a time of zero means "unspecified". This will be
     * revised after we implemented ISO 19108.</p>
     */
    static XMLGregorianCalendar toXML(final Instant instant) {
        if (instant != null) {
            final Position position = instant.getPosition();
            if (position != null) {
                final Context context = Context.current();
                try {
                    final XMLGregorianCalendar date = XmlUtilities.toXML(context, position.getDate());
                    if (date != null) {
                        XmlUtilities.trimTime(date, false);
                        return date;
                    }
                } catch (DatatypeConfigurationException e) {
View Full Code Here

TOP

Related Classes of org.apache.sis.internal.geoapi.temporal.Position

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.