Revision 8788
trunk/libraries/libJCRS/src/org/gvsig/crs/ogr/GetTransepsg.java | ||
---|---|---|
56 | 56 |
String type = result3.getString("unit_of_meas_type"); |
57 | 57 |
factor_b = result3.getDouble("factor_b"); |
58 | 58 |
factor_c = result3.getDouble("factor_c"); |
59 |
|
|
60 |
if (factor_b != 0 && factor_c != 0 && !type.equals("angle")){ |
|
61 |
param_val = (param_val * factor_b) / factor_c; |
|
59 |
|
|
60 |
if (uom_code == 9202){} |
|
61 |
else { |
|
62 |
if (factor_b != 0 && factor_c != 0 && !type.equals("angle")){ |
|
63 |
param_val = (param_val * factor_b) / factor_c; |
|
64 |
if (type.equals("scale")) |
|
65 |
param_val = (param_val -1) * 1000000; |
|
66 |
} |
|
67 |
else if(factor_b != 0 && factor_c != 0 && type.equals("angle")){ |
|
68 |
param_val = ((param_val * factor_b) / factor_c) * (180.0 / Math.PI); |
|
69 |
param_val = param_val * 3600; |
|
70 |
}else if (uom_code == 9110){ |
|
71 |
param_val = especialDegree(param_val); |
|
72 |
param_val = Math.toDegrees(param_val); |
|
73 |
param_val = param_val * 3600; |
|
74 |
}else { |
|
75 |
System.out.println("C?digo de medida no v?lido..."); |
|
76 |
} |
|
62 | 77 |
} |
63 |
else if(factor_b != 0 && factor_c != 0 && type.equals("angle")){ |
|
64 |
param_val = ((param_val * factor_b) / factor_c) * (180.0 / Math.PI);; |
|
65 |
}else if (uom_code == 9110){ |
|
66 |
param_val = especialDegree(param_val); |
|
67 |
param_val = Math.toDegrees(param_val); |
|
68 |
}else { |
|
69 |
System.out.println("C?digo de medida no v?lido..."); |
|
70 |
} |
|
71 | 78 |
param_value_double[i] = param_val; |
72 | 79 |
i++; |
73 | 80 |
} |
74 | 81 |
} |
75 | 82 |
|
76 | 83 |
if (inverseTransformation) { |
77 |
for (int j = 0; j < param_value_double.length-1; j++){
|
|
84 |
for (int j = 0; j < param_value_double.length; j++){ |
|
78 | 85 |
param_value_double[j] = param_value_double[j] * -1.0; |
79 | 86 |
} |
80 | 87 |
} |
Also available in: Unified diff