Revision 795
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.catalog/org.gvsig.proj.catalog.api/src/main/java/org/gvsig/proj/catalogue/AxisDirection.java | ||
---|---|---|
1 |
/** |
|
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; |
|
60 |
|
|
61 |
public enum AxisDirection { |
|
62 |
/** |
|
63 |
* Unknown or unspecified axis orientation. |
|
64 |
*/ |
|
65 |
OTHER, |
|
66 |
/** |
|
67 |
* Axis positive direction is north. In a geographic or projected CRS, |
|
68 |
* north is defined through the geodetic datum. In an engineering CRS, |
|
69 |
* north may be defined with respect to an engineering object rather |
|
70 |
* than a geographical direction. |
|
71 |
*/ |
|
72 |
NORTH, |
|
73 |
|
|
74 |
/** |
|
75 |
* Axis positive direction is approximately north-north-east. |
|
76 |
*/ |
|
77 |
NORTH_NORTH_EAST, |
|
78 |
|
|
79 |
/** |
|
80 |
* Axis positive direction is approximately north-east. |
|
81 |
*/ |
|
82 |
NORTH_EAST, |
|
83 |
|
|
84 |
/** |
|
85 |
* Axis positive direction is approximately east-north-east. |
|
86 |
*/ |
|
87 |
EAST_NORTH_EAST, |
|
88 |
|
|
89 |
/** |
|
90 |
* Axis positive direction is pi/2 radians clockwise from north. |
|
91 |
* This is usually used for Grid X coordinates and Longitude. |
|
92 |
*/ |
|
93 |
EAST, |
|
94 |
|
|
95 |
/** |
|
96 |
* Axis positive direction is approximately east-south-east. |
|
97 |
*/ |
|
98 |
EAST_SOUTH_EAST, |
|
99 |
|
|
100 |
/** |
|
101 |
* Axis positive direction is approximately south-east. |
|
102 |
*/ |
|
103 |
SOUTH_EAST, |
|
104 |
|
|
105 |
/** |
|
106 |
* Axis positive direction is approximately south-south-east. |
|
107 |
*/ |
|
108 |
SOUTH_SOUTH_EAST, |
|
109 |
|
|
110 |
/** |
|
111 |
* Axis positive direction is pi radians clockwise from north. |
|
112 |
*/ |
|
113 |
SOUTH, |
|
114 |
|
|
115 |
/** |
|
116 |
* Axis positive direction is approximately south-south-west. |
|
117 |
*/ |
|
118 |
SOUTH_SOUTH_WEST, |
|
119 |
|
|
120 |
/** |
|
121 |
* Axis positive direction is approximately south-west. |
|
122 |
*/ |
|
123 |
SOUTH_WEST, |
|
124 |
|
|
125 |
/** |
|
126 |
* Axis positive direction is approximately west-south-west. |
|
127 |
*/ |
|
128 |
WEST_SOUTH_WEST, |
|
129 |
|
|
130 |
/** |
|
131 |
* Axis positive direction is 3pi/2 radians clockwise from north. |
|
132 |
* This is usually used for Grid X coordinates and Longitude. |
|
133 |
*/ |
|
134 |
WEST, |
|
135 |
|
|
136 |
/** |
|
137 |
* Axis positive direction is approximately west-north-west. |
|
138 |
*/ |
|
139 |
WEST_NORTH_WEST, |
|
140 |
|
|
141 |
/** |
|
142 |
* Axis positive direction is approximately north-west. |
|
143 |
*/ |
|
144 |
NORTH_WEST, |
|
145 |
|
|
146 |
/** |
|
147 |
* Axis positive direction is approximately north-north-west. |
|
148 |
*/ |
|
149 |
NORTH_NORTH_WEST, |
|
150 |
|
|
151 |
/** |
|
152 |
* Axis positive direction is up relative to gravity. |
|
153 |
* This is used for {@linkplain VerticalCS vertical} coordinate systems. |
|
154 |
*/ |
|
155 |
UP, |
|
156 |
|
|
157 |
/** |
|
158 |
* Axis positive direction is down relative to gravity. |
|
159 |
* This is used for {@linkplain VerticalCS vertical} coordinate systems. |
|
160 |
*/ |
|
161 |
DOWN, |
|
162 |
|
|
163 |
/** |
|
164 |
* Axis positive direction is in the equatorial plane from the centre of the |
|
165 |
* modelled earth towards the intersection of the equator with the prime meridian. |
|
166 |
*/ |
|
167 |
GEOCENTRIC_X, |
|
168 |
|
|
169 |
/** |
|
170 |
* Axis positive direction is in the equatorial plane from the centre of the |
|
171 |
* modelled earth towards the intersection of the equator and the meridian pi/2 |
|
172 |
* radians eastwards from the prime meridian. |
|
173 |
*/ |
|
174 |
GEOCENTRIC_Y, |
|
175 |
|
|
176 |
/** |
|
177 |
* Axis positive direction is from the centre of the modelled earth parallel to |
|
178 |
* its rotation axis and towards its north pole. |
|
179 |
*/ |
|
180 |
GEOCENTRIC_Z, |
|
181 |
|
|
182 |
/** |
|
183 |
* Axis positive direction is towards the future. |
|
184 |
* This is used for {@linkplain TimeCS time} coordinate systems. |
|
185 |
*/ |
|
186 |
FUTURE, |
|
187 |
|
|
188 |
/** |
|
189 |
* Axis positive direction is towards the past. |
|
190 |
* This is used for {@linkplain TimeCS time} coordinate systems. |
|
191 |
*/ |
|
192 |
PAST, |
|
193 |
|
|
194 |
/** |
|
195 |
* Axis positive direction is towards higher pixel column. |
|
196 |
* |
|
197 |
*/ |
|
198 |
COLUMN_POSITIVE, |
|
199 |
|
|
200 |
/** |
|
201 |
* Axis positive direction is towards lower pixel column. |
|
202 |
*/ |
|
203 |
COLUMN_NEGATIVE, |
|
204 |
|
|
205 |
/** |
|
206 |
* Axis positive direction is towards higher pixel row. |
|
207 |
*/ |
|
208 |
ROW_POSITIVE, |
|
209 |
|
|
210 |
/** |
|
211 |
* Axis positive direction is towards lower pixel row. |
|
212 |
*/ |
|
213 |
ROW_NEGATIVE, |
|
214 |
|
|
215 |
/** |
|
216 |
* Axis positive direction is right in display. |
|
217 |
*/ |
|
218 |
DISPLAY_RIGHT, |
|
219 |
|
|
220 |
/** |
|
221 |
* Axis positive direction is left in display. |
|
222 |
*/ |
|
223 |
DISPLAY_LEFT, |
|
224 |
|
|
225 |
/** |
|
226 |
* Axis positive direction is towards top of approximately vertical display surface. |
|
227 |
*/ |
|
228 |
DISPLAY_UP, |
|
229 |
|
|
230 |
/** |
|
231 |
* Axis positive direction is towards bottom of approximately vertical display surface. |
|
232 |
*/ |
|
233 |
DISPLAY_DOWN; |
|
234 |
|
|
235 |
} |
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.catalog/org.gvsig.proj.catalog.api/src/main/java/org/gvsig/proj/catalogue/CRSDefinition.java | ||
---|---|---|
26 | 26 |
import java.util.List; |
27 | 27 |
import java.util.Set; |
28 | 28 |
|
29 |
import org.gvsig.proj.catalogue.cs.CoordinateSystemAxis; |
|
30 | 29 |
import org.gvsig.proj.catalogue.datum.Datum; |
31 | 30 |
import org.gvsig.proj.catalogue.ref.Extent; |
32 | 31 |
|
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.catalog/org.gvsig.proj.catalog.api/src/main/java/org/gvsig/proj/catalogue/CoordinateSystemAxis.java | ||
---|---|---|
1 |
/** |
|
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; |
|
60 |
|
|
61 |
import javax.measure.unit.Unit; |
|
62 |
|
|
63 |
/** |
|
64 |
* Definition of a coordinate system axis |
|
65 |
* |
|
66 |
* @author Martin Desruisseaux (IRD) |
|
67 |
* @author Cesar Martinez Izquierdo |
|
68 |
* |
|
69 |
*/ |
|
70 |
public interface CoordinateSystemAxis { |
|
71 |
/** |
|
72 |
* The name of this coordinate system axis. |
|
73 |
* |
|
74 |
* @return the name |
|
75 |
*/ |
|
76 |
String getName(); |
|
77 |
|
|
78 |
/** |
|
79 |
* The abbreviation used for this coordinate system axis. |
|
80 |
* |
|
81 |
* @return the abbreviation |
|
82 |
*/ |
|
83 |
String getAbbreviation(); |
|
84 |
|
|
85 |
/** |
|
86 |
* Returns the direction of this coordinate system axis. In the case of Cartesian projected |
|
87 |
* coordinates, this is the direction of this coordinate system axis locally. |
|
88 |
* Examples: |
|
89 |
* {@linkplain AxisDirection#NORTH north} or {@linkplain AxisDirection#SOUTH south}, |
|
90 |
* {@linkplain AxisDirection#EAST east} or {@linkplain AxisDirection#WEST west}, |
|
91 |
* {@linkplain AxisDirection#UP up} or {@linkplain AxisDirection#DOWN down}. |
|
92 |
* |
|
93 |
* <p>Within any set of coordinate system axes, only one of each pair of terms can be used. |
|
94 |
* For earth-fixed coordinate reference systems, this direction is often approximate |
|
95 |
* and intended to provide a human interpretable meaning to the axis. |
|
96 |
* When a geodetic datum is used, the precise directions of the axes may therefore |
|
97 |
* vary slightly from this approximate direction.</p> |
|
98 |
* |
|
99 |
* <p>Note that an {@link org.opengis.referencing.crs.EngineeringCRS} often requires |
|
100 |
* specific descriptions of the directions of its coordinate system axes.</p> |
|
101 |
* |
|
102 |
* @return the coordinate system axis direction. |
|
103 |
*/ |
|
104 |
AxisDirection getDirection(); |
|
105 |
|
|
106 |
/** |
|
107 |
* Returns the unit of measure used for this coordinate system axis. |
|
108 |
* The value of a ordinate in a coordinate tuple shall be recorded using this unit of measure, |
|
109 |
* whenever those coordinates use a coordinate reference system that uses a coordinate system |
|
110 |
* that uses this axis. |
|
111 |
* |
|
112 |
* @return the coordinate system axis unit. |
|
113 |
*/ |
|
114 |
Unit<?> getUnit(); |
|
115 |
} |
Also available in: Unified diff