25 |
25 |
CoordSys cs = null;
|
26 |
26 |
data = new TreeMap();
|
27 |
27 |
|
28 |
|
cs = (new CSUTM(CSDatum.ed50, 30)).toGeo();
|
29 |
|
cs.setAbrev("ed50geo");
|
30 |
|
data.put(cs.getAbrev(), cs);
|
31 |
|
|
32 |
|
cs = new CSUTM(CSDatum.ed50, 30);
|
33 |
|
cs.setAbrev("23030");
|
34 |
|
data.put(cs.getAbrev(), cs);
|
35 |
|
data.put("gt2utm30", cs);
|
36 |
|
data.put("ed50utm30", cs);
|
37 |
|
|
38 |
|
cs = new CSUTM(CSDatum.ed50, 29);
|
39 |
|
cs.setAbrev("23029");
|
40 |
|
data.put(cs.getAbrev(), cs);
|
41 |
|
data.put("gt2utm29", cs);
|
42 |
|
data.put("ed50utm29", cs);
|
43 |
|
|
44 |
|
cs = new CSUTM(CSDatum.ed50, 31);
|
45 |
|
cs.setAbrev("23031");
|
46 |
|
data.put(cs.getAbrev(), cs);
|
47 |
|
data.put("gt2utm31", cs);
|
48 |
|
data.put("ed50utm31", cs);
|
49 |
|
|
50 |
28 |
cs = (new CSUTM(CSDatum.wgs84, 30)).toGeo();
|
51 |
|
cs.setAbrev("4326");
|
|
29 |
cs.setAbrev("EPSG:4326"); // WGS84 (World Geodesic Datum)
|
52 |
30 |
data.put(cs.getAbrev(), cs);
|
53 |
|
data.put("wgs84geo", cs);
|
54 |
31 |
|
55 |
|
cs = new CSUTM(CSDatum.wgs84, 28);
|
56 |
|
cs.setAbrev("2054");
|
|
32 |
cs = (new CSUTM(CSDatum.ed50, 30)).toGeo();
|
|
33 |
cs.setAbrev("EPSG:4230"); // Datum Europeu Internacional ED50
|
57 |
34 |
data.put(cs.getAbrev(), cs);
|
58 |
|
data.put("wgs84utm28", cs);
|
59 |
35 |
|
60 |
|
cs = new CSUTM(CSDatum.wgs84, 29);
|
61 |
|
cs.setAbrev("2056");
|
|
36 |
cs = (new CSUTM(CSDatum.d73, 30)).toGeo();
|
|
37 |
cs.setAbrev("EPSG:4274"); // Datum 73 de Lisboa
|
62 |
38 |
data.put(cs.getAbrev(), cs);
|
63 |
|
data.put("wgs84utm29", cs);
|
64 |
39 |
|
65 |
|
cs = new CSUTM(CSDatum.wgs84, 30);
|
66 |
|
cs.setAbrev("2058");
|
67 |
|
data.put(cs.getAbrev(), cs);
|
68 |
|
data.put("wgs84utm30", cs);
|
69 |
|
|
70 |
|
cs = new CSUTM(CSDatum.wgs84, 31);
|
71 |
|
cs.setAbrev("2060");
|
72 |
|
data.put(cs.getAbrev(), cs);
|
73 |
|
data.put("wgs84utm31", cs);
|
74 |
|
|
75 |
|
cs = new CSUTM(CSDatum.wgs84, 32);
|
76 |
|
cs.setAbrev("2062");
|
77 |
|
data.put(cs.getAbrev(), cs);
|
78 |
|
data.put("wgs84utm32", cs);
|
79 |
|
|
|
40 |
for (int i=1; i<=60; i++) {
|
|
41 |
String huso = Integer.toString(i);
|
|
42 |
if (i<10) huso = "0"+huso;
|
|
43 |
|
|
44 |
cs = new CSUTM(CSDatum.wgs84, i);
|
|
45 |
cs.setAbrev("EPSG:326"+huso);
|
|
46 |
data.put(cs.getAbrev(), cs);
|
|
47 |
|
|
48 |
cs = new CSUTM(CSDatum.ed50, i);
|
|
49 |
cs.setAbrev("EPSG:230"+huso);
|
|
50 |
data.put(cs.getAbrev(), cs);
|
|
51 |
}
|
80 |
52 |
cs = CSGaussPt.hgd73;
|
81 |
|
cs.setAbrev("GT2hgd73");
|
|
53 |
cs.setAbrev("SHG73"); // Projec??o Gauss do Datum 73 de Lisboa (no EPSG found)
|
82 |
54 |
data.put(cs.getAbrev(), cs);
|
83 |
55 |
|
84 |
56 |
cs = new CSLambertCC(CSDatum.nad27, -105D, 49D, 49D, 77D);
|
... | ... | |
88 |
60 |
|
89 |
61 |
/**
|
90 |
62 |
* Mete una nueva proyeccion en la Pool.
|
91 |
|
* @param name abreviatura de la proyecccion (i.e. ed50utm30)
|
|
63 |
* @param name abreviatura de la proyecccion (i.e. EPSG:23030)
|
92 |
64 |
* @param proj Proyeccion
|
93 |
65 |
*/
|
94 |
66 |
public static void add(String name, IProjection proj) {
|
... | ... | |
97 |
69 |
|
98 |
70 |
/**
|
99 |
71 |
* Devuelve una proyeccion a partir de una cadena.
|
100 |
|
* @param name abreviatura de la proyecccion (i.e. ed50utm30)
|
|
72 |
* @param name abreviatura de la proyecccion (i.e. EPSG:23030)
|
101 |
73 |
* @return Proyeccion si existe
|
102 |
74 |
*/
|
103 |
75 |
public static IProjection get(String name) {
|
... | ... | |
124 |
96 |
* @param name codigo de la proyecccion (i.e. 23030)
|
125 |
97 |
* @return Proyeccion si existe
|
126 |
98 |
*/
|
127 |
|
private static IProjection getByEpsg(String name) {
|
128 |
|
IProjection proj = null;
|
|
99 |
private static IProjection getByEpsg(String code) {
|
|
100 |
IProjection proj = get("EPSG:"+code);
|
129 |
101 |
return proj;
|
130 |
102 |
}
|
131 |
103 |
}
|