Revision 12119 branches/F2/libraries/libJCRS/src-test/es/idr/test/ValidateEsriCRSs.java
ValidateEsriCRSs.java | ||
---|---|---|
12 | 12 |
import org.geotools.referencing.crs.DefaultGeographicCRS; |
13 | 13 |
import org.geotools.referencing.crs.DefaultProjectedCRS; |
14 | 14 |
import org.geotools.referencing.datum.DefaultGeodeticDatum; |
15 |
import org.idr.geotools.referencing.factory.epsg.HSQLDataSource;
|
|
15 |
import org.geotools.referencing.factory.epsg.HSQLDataSource; |
|
16 | 16 |
import org.opengis.referencing.FactoryException; |
17 | 17 |
import org.opengis.referencing.NoSuchAuthorityCodeException; |
18 | 18 |
import org.opengis.referencing.crs.CoordinateReferenceSystem; |
... | ... | |
59 | 59 |
//String strEpsgCode="ESRI:"+cod; |
60 | 60 |
CoordinateReferenceSystem source; |
61 | 61 |
|
62 |
try { |
|
62 |
/*try {
|
|
63 | 63 |
source = CRS.parseWKT(wkt); |
64 | 64 |
validos.add(String.valueOf(cod)); |
65 | 65 |
if (source instanceof DefaultProjectedCRS) { |
... | ... | |
70 | 70 |
Unit u = ((DefaultGeodeticDatum) sour.getDatum()).getPrimeMeridian().getAngularUnit(); |
71 | 71 |
units.add(u.toString()); |
72 | 72 |
|
73 |
/*for (int j = 0; j< units.size(); j++) {
|
|
73 |
for (int j = 0; j< units.size(); j++) { |
|
74 | 74 |
if (units.get(j).equals(u.toString())){ |
75 | 75 |
esta = true; |
76 | 76 |
break; |
... | ... | |
79 | 79 |
if (!esta){ |
80 | 80 |
units.add(u.toString()); |
81 | 81 |
esta = false; |
82 |
}*/
|
|
82 |
} |
|
83 | 83 |
for (int i=0; i< sour.getConversionFromBase().getParameterValues().values().size();i++) { |
84 | 84 |
str = sour.getConversionFromBase().getParameterValues().values().get(i).toString(); |
85 | 85 |
u = sour.getConversionFromBase().getParameterValues().parameter(str.split("=")[0]).getUnit(); |
... | ... | |
102 | 102 |
res.add(String.valueOf(cod)+" --> "+e); |
103 | 103 |
// TODO Auto-generated catch block |
104 | 104 |
//e.printStackTrace(); |
105 |
} |
|
105 |
}*/
|
|
106 | 106 |
} |
107 | 107 |
/*for (int i = 0; i< res.size(); i++) { |
108 | 108 |
System.out.println(res.get(i)); |
Also available in: Unified diff