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 @ 793

History | View | Annotate | Download (3.4 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 org.gvsig.proj.catalogue.CRSDefinition;
27
import org.gvsig.proj.catalogue.CoordinateOperationDefinition;
28
import org.gvsig.tools.dynobject.DynObject;
29

    
30
/**
31
 * This class is responsible of the management of the CoordinateReferenceSystem
32
 * library's business logic.
33
 * It is the library's main entry point, and provides all the services to manage
34
 * {@link CoordinateReferenceSystem}s.
35
 * 
36
 * @author gvSIG team
37
 * @version $Id$
38
 */
39
public interface CoordinateReferenceSystemManager {
40

    
41
        /**
42
         * Returns a Coordinate Reference System.
43
         * @param wkt
44
         *            a WKT definition or a CRS code using the 
45
         *            AUTHORITY:CODE format.
46
         */
47
        CoordinateReferenceSystem getCoordinateReferenceSystem(
48
                        String wkt)
49
                                        throws CoordinateReferenceSystemNotFoundException;
50

    
51
        /**
52
         * Returns a Coordinate Reference System.
53
         * 
54
         * @param authorityName
55
         *            name of the Authority who defines de Coordinate Reference
56
         *            System
57
         * @param code
58
         *            the code used by the Authority to identify the Coordinate
59
         *            Reference System
60
         * @return the projection
61
         * @throws CoordinateReferenceSystemNotFoundException
62
         *             if there is not any Coordinate Reference System available in
63
         *             the library with the given reference
64
         */
65
        CoordinateReferenceSystem getCoordinateReferenceSystem(
66
                        String authorityName, String code)
67
                                        throws CoordinateReferenceSystemNotFoundException;
68
                
69
        /**
70
         * Returns a Coordinate Reference System.
71
         * 
72
         * @param definition
73
         */
74
        CoordinateReferenceSystem getCoordinateReferenceSystem(
75
                CRSDefinition definition)
76
                        throws CoordinateReferenceSystemNotFoundException;
77

    
78
        /**
79
         * Returns a Coordinate Operation 
80
         * @param authorityName
81
         * @param code
82
         * @return
83
         * @throws CoordinateReferenceSystemNotFoundException
84
         */
85
        CoordinateOperation getCoordinateOperation(
86
                        String authorityName, String code)
87
                                        throws CoordinateOperationNotFoundException;
88
        
89
        /**
90
         * Returns a Coordinate Operation
91
         * 
92
         * @param definition
93
         */
94
        CoordinateOperation getCoordinateOperation(
95
                        CoordinateOperationDefinition definition)
96
                                        throws CoordinateOperationNotFoundException;
97
        
98
        
99
        /**
100
         * Creates the parameters needed to initialize the manager.
101
         * 
102
         * @return the initialization parameters
103
         */
104
        DynObject createParameters();
105

    
106
        /**
107
         * Initializes the manager with the given parameters.
108
         * 
109
         * @param parameters
110
         *            to initialize the manager
111
         */
112
        void initialize(DynObject parameters);
113
}