/*
 * JScience - Java(TM) Tools and Libraries for the Advancement of Sciences.
 * Copyright (C) 2006 - JScience (http://jscience.org/)
 * All rights reserved.
 * 
 * Permission to use, copy, modify, and distribute this software is
 * freely granted, provided that this notice is preserved.
 */

/*
 * This class has been adapted from JScience to use 
 * JSR-363 and newer versions of opengis by Daryn 
 * Butler, Engineering Technician at the United States
 * Department of Agriculture, 2019
 */

package usda.weru.gis.latlong;

import usda.weru.gis.latlong.Coordinates;

/**
 * This interface represents a converter between {@link 
 * org.jscience.geography.coordinates.Coordinates coordinates}.
 * 
 * @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
 * @version 3.0, February 13, 2006
 */
public interface CoordinatesConverter<S extends Coordinates<?>, T extends Coordinates<?>> {

    /**
     * Converts the specified coordinates.
     * 
     * @param source the source coordinates.
     * @return the corresponding target coordinates.
     * @throws ConversionException if this conversion cannot be performed.
     */
    T convert(S source);

}
