Last change
on this file since 13601 was 12453, checked in by bastiK, 7 years ago |
see #14794 - remaining javadoc for the josm/data/ packages
|
-
Property svn:eol-style
set to
native
|
File size:
983 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.projection.datum;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.projection.Ellipsoid;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Abstract base class for {@link Datum} implementations.
|
---|
8 | *
|
---|
9 | * Adds common fields and access methods.
|
---|
10 | */
|
---|
11 | public abstract class AbstractDatum implements Datum {
|
---|
12 |
|
---|
13 | protected String name;
|
---|
14 | protected String proj4Id;
|
---|
15 | protected Ellipsoid ellps;
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Constructs a new {@code AbstractDatum}.
|
---|
19 | * @param name The name
|
---|
20 | * @param proj4Id The Proj4 identifier
|
---|
21 | * @param ellps The ellipsoid
|
---|
22 | */
|
---|
23 | public AbstractDatum(String name, String proj4Id, Ellipsoid ellps) {
|
---|
24 | this.name = name;
|
---|
25 | this.proj4Id = proj4Id;
|
---|
26 | this.ellps = ellps;
|
---|
27 | }
|
---|
28 |
|
---|
29 | @Override
|
---|
30 | public String getName() {
|
---|
31 | return name;
|
---|
32 | }
|
---|
33 |
|
---|
34 | @Override
|
---|
35 | public String getProj4Id() {
|
---|
36 | return proj4Id;
|
---|
37 | }
|
---|
38 |
|
---|
39 | @Override
|
---|
40 | public Ellipsoid getEllipsoid() {
|
---|
41 | return ellps;
|
---|
42 | }
|
---|
43 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.