Last change
on this file since 8332 was 6883, checked in by Don-vip, 10 years ago |
fix some Sonar issues
|
-
Property svn:eol-style
set to
native
|
File size:
872 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 | public abstract class AbstractDatum implements Datum {
|
---|
7 |
|
---|
8 | protected String name;
|
---|
9 | protected String proj4Id;
|
---|
10 | protected Ellipsoid ellps;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Constructs a new {@code AbstractDatum}.
|
---|
14 | * @param name The name
|
---|
15 | * @param proj4Id The Proj4 identifier
|
---|
16 | * @param ellps The ellipsoid
|
---|
17 | */
|
---|
18 | public AbstractDatum(String name, String proj4Id, Ellipsoid ellps) {
|
---|
19 | this.name = name;
|
---|
20 | this.proj4Id = proj4Id;
|
---|
21 | this.ellps = ellps;
|
---|
22 | }
|
---|
23 |
|
---|
24 | @Override
|
---|
25 | public String getName() {
|
---|
26 | return name;
|
---|
27 | }
|
---|
28 |
|
---|
29 | @Override
|
---|
30 | public String getProj4Id() {
|
---|
31 | return proj4Id;
|
---|
32 | }
|
---|
33 |
|
---|
34 | @Override
|
---|
35 | public Ellipsoid getEllipsoid() {
|
---|
36 | return ellps;
|
---|
37 | }
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.