root / org.gvsig.proj / branches / refactor2018 / org.gvsig.proj / org.gvsig.proj.catalog / org.gvsig.proj.catalog.api / src / main / java / org / gvsig / proj / catalogue / crs / GeneralDerivedCRS.java @ 793
History | View | Annotate | Download (4.61 KB)
1 | 793 | cmartinez | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | *
|
||
4 | * Copyright (C) 2018 gvSIG Association.
|
||
5 | *
|
||
6 | * This file has been adapted from GeoAPI, see
|
||
7 | * the original copyright headers bellow.
|
||
8 | *
|
||
9 | * This program is free software; you can redistribute it and/or
|
||
10 | * modify it under the terms of the GNU General Public License
|
||
11 | * as published by the Free Software Foundation; either version 2
|
||
12 | * of the License, or (at your option) any later version.
|
||
13 | *
|
||
14 | * This program is distributed in the hope that it will be useful,
|
||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
17 | * GNU General Public License for more details.
|
||
18 | *
|
||
19 | * You should have received a copy of the GNU General Public License
|
||
20 | * along with this program; if not, write to the Free Software
|
||
21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||
22 | * MA 02110-1301, USA.
|
||
23 | *
|
||
24 | * For any additional information, do not hesitate to contact us
|
||
25 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
26 | *
|
||
27 | * ----------
|
||
28 | *
|
||
29 | * GeoAPI - Java interfaces for OGC/ISO standards
|
||
30 | * http://www.geoapi.org
|
||
31 | *
|
||
32 | * Copyright (C) 2004-2017 Open Geospatial Consortium, Inc.
|
||
33 | * All Rights Reserved. http://www.opengeospatial.org/ogc/legal
|
||
34 | *
|
||
35 | * Permission to use, copy, and modify this software and its documentation, with
|
||
36 | * or without modification, for any purpose and without fee or royalty is hereby
|
||
37 | * granted, provided that you include the following on ALL copies of the software
|
||
38 | * and documentation or portions thereof, including modifications, that you make:
|
||
39 | *
|
||
40 | * 1. The full text of this NOTICE in a location viewable to users of the
|
||
41 | * redistributed or derivative work.
|
||
42 | * 2. Notice of any changes or modifications to the OGC files, including the
|
||
43 | * date changes were made.
|
||
44 | *
|
||
45 | * THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE
|
||
46 | * NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
||
47 | * TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT
|
||
48 | * THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY
|
||
49 | * PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
|
||
50 | *
|
||
51 | * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
|
||
52 | * CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
|
||
53 | *
|
||
54 | * The name and trademarks of copyright holders may NOT be used in advertising or
|
||
55 | * publicity pertaining to the software without specific, written prior permission.
|
||
56 | * Title to copyright in this software and any associated documentation will at all
|
||
57 | * times remain with copyright holders.
|
||
58 | */
|
||
59 | package org.gvsig.proj.catalogue.crs; |
||
60 | |||
61 | import org.gvsig.proj.catalogue.operation.Conversion; |
||
62 | |||
63 | /**
|
||
64 | * A coordinate reference system that is defined by its coordinate
|
||
65 | * {@linkplain Conversion conversion} from another coordinate reference system.
|
||
66 | * Derived CRS are not directly associated to a {@linkplain org.opengis.referencing.datum.Datum datum}.
|
||
67 | *
|
||
68 | * <p>In principle, all sub-types of {@link CoordinateReferenceSystem} may take on the role of either source or
|
||
69 | * derived CRS with the exception of a {@link GeocentricCRS} and a {@link ProjectedCRS}. The latter is modelled
|
||
70 | * as an object class under its own name, rather than as a general derived CRS of type "projected".
|
||
71 | * This has been done to honour common practice, which acknowledges projected CRSs as one of the best known
|
||
72 | * types of coordinate reference systems.</p>
|
||
73 | *
|
||
74 | * Note: gvSIG derived these interfaces from GeoAPI in order to have a simpler API and also to
|
||
75 | * avoid namespace collisions (e.g. GeoAPI 3 vs GeoTools interfaces). There is no plans
|
||
76 | * to evolve these interfaces to adapt them to future GeoAPI versions.
|
||
77 | *
|
||
78 | * @author gvSIG Team
|
||
79 | * @author Martin Desruisseaux (IRD)
|
||
80 | * @version 3.0
|
||
81 | * @since 1.0
|
||
82 | */
|
||
83 | public interface GeneralDerivedCRS extends SingleCRS { |
||
84 | /**
|
||
85 | * Returns the base coordinate reference system.
|
||
86 | *
|
||
87 | * @return the base coordinate reference system.
|
||
88 | */
|
||
89 | SingleCRS getBaseCRS(); |
||
90 | |||
91 | /**
|
||
92 | * Returns the conversion from the {@linkplain #getBaseCRS() base CRS} to this CRS.
|
||
93 | *
|
||
94 | * @return the conversion from the base CRS.
|
||
95 | *
|
||
96 | * @departure rename
|
||
97 | * "<code>conversion</code>" may be confusing as a method name
|
||
98 | * since it does not indicate which CRS is the source or which is the target.
|
||
99 | * The OGC 01-009 specification used the <code>toBase()</code> method name.
|
||
100 | * By analogy with 01-009, GeoAPI defines a method name which contains the "<code>FromBase</code>" expression.
|
||
101 | */
|
||
102 | Conversion getConversionFromBase(); |
||
103 | |||
104 | } |