Statistics
| Revision:

root / org.gvsig.proj / branches / refactor2018 / org.gvsig.proj / org.gvsig.proj.lib / org.gvsig.proj.lib.api / src / main / java / org / gvsig / proj / CoordinateReferenceSystemManager.java @ 829

History | View | Annotate | Download (2.52 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2012 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.proj;
25

    
26
import java.text.ParseException;
27

    
28
import org.gvsig.proj.catalog.CRSCatalogManager;
29
import org.gvsig.proj.catalog.CRSDefinition;
30
import org.gvsig.proj.catalog.TransformationDefinition;
31
import org.gvsig.proj.catalog.exception.CoordinateReferenceSystemException;
32
import org.gvsig.proj.catalog.exception.UnsupportedCoordinateReferenceSystemException;
33
import org.gvsig.proj.catalog.exception.UnsupportedTransformationException;
34

    
35
/**
36
 * This class is responsible of the management of the CoordinateReferenceSystem
37
 * library's business logic.
38
 * It is the library's main entry point, and provides all the services to manage
39
 * {@link CoordinateReferenceSystem}s.
40
 * 
41
 * @author gvSIG team
42
 * @version $Id$
43
 */
44
public interface CoordinateReferenceSystemManager {
45
        /**
46
         * Returns a Coordinate Reference System.
47
         * 
48
         * @param definition
49
         * @throws ParseException 
50
         * @throws UnsupportedOperationException 
51
         * @throws CoordinateReferenceSystemException 
52
         */
53
        CoordinateReferenceSystem getCoordinateReferenceSystem(
54
                CRSDefinition definition)
55
                        throws UnsupportedCoordinateReferenceSystemException, ParseException;
56

    
57
        /**
58
         * Returns a Coordinate Transformation
59
         * 
60
         * @param definition
61
         * @throws ParseException 
62
         * @throws CoordinateReferenceSystemException 
63
         */
64
        CoordinateTransformation getCoordinateTransformation(
65
                        TransformationDefinition definition)
66
                                        throws UnsupportedTransformationException, ParseException;
67
        
68
    
69
    /**
70
     * Sets the catalog instance to use for retrieving definitions
71
     * 
72
     * @return
73
     */
74
    void setCatalogManager(CRSCatalogManager manager);
75
}