1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.model.location;
|
11
|
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.common.VersionableEntity;
|
14
|
import org.apache.log4j.Logger;
|
15
|
import eu.etaxonomy.cdm.model.Description;
|
16
|
import java.util.*;
|
17
|
import javax.persistence.*;
|
18
|
|
19
|
/**
|
20
|
* @author m.doering
|
21
|
* @version 1.0
|
22
|
* @created 08-Nov-2007 13:06:44
|
23
|
*/
|
24
|
@Entity
|
25
|
public class Point extends VersionableEntity {
|
26
|
static Logger logger = Logger.getLogger(Point.class);
|
27
|
private float longitude;
|
28
|
private float latitude;
|
29
|
//in Meters
|
30
|
private int errorRadius;
|
31
|
private ReferenceSystem referenceSystem;
|
32
|
public ReferenceSystem getReferenceSystem(){
|
33
|
return this.referenceSystem;
|
34
|
}
|
35
|
|
36
|
/**
|
37
|
*
|
38
|
* @param referenceSystem referenceSystem
|
39
|
*/
|
40
|
public void setReferenceSystem(ReferenceSystem referenceSystem){
|
41
|
this.referenceSystem = referenceSystem;
|
42
|
}
|
43
|
|
44
|
public float getLongitude(){
|
45
|
return this.longitude;
|
46
|
}
|
47
|
|
48
|
/**
|
49
|
*
|
50
|
* @param longitude longitude
|
51
|
*/
|
52
|
public void setLongitude(float longitude){
|
53
|
this.longitude = longitude;
|
54
|
}
|
55
|
|
56
|
public float getLatitude(){
|
57
|
return this.latitude;
|
58
|
}
|
59
|
|
60
|
/**
|
61
|
*
|
62
|
* @param latitude latitude
|
63
|
*/
|
64
|
public void setLatitude(float latitude){
|
65
|
this.latitude = latitude;
|
66
|
}
|
67
|
|
68
|
public int getErrorRadius(){
|
69
|
return this.errorRadius;
|
70
|
}
|
71
|
|
72
|
/**
|
73
|
*
|
74
|
* @param errorRadius errorRadius
|
75
|
*/
|
76
|
public void setErrorRadius(int errorRadius){
|
77
|
this.errorRadius = errorRadius;
|
78
|
}
|
79
|
|
80
|
}
|