Revision 8703 trunk/libraries/libJCRS/src/org/gvsig/crs/gui/panels/TransformationEpsgPanel.java
TransformationEpsgPanel.java | ||
---|---|---|
406 | 406 |
callTransformation(crs_source_code); |
407 | 407 |
|
408 | 408 |
int new_target = crs_target; |
409 |
crs_target = code; |
|
409 |
int base_target = code; |
|
410 |
String sentence = "SELECT source_geogcrs_code, coord_ref_sys_kind " + |
|
411 |
"FROM epsg_coordinatereferencesystem " + |
|
412 |
"WHERE coord_ref_sys_code = "+ code; |
|
413 |
ResultSet result = Query.select(sentence,connect.getConnection()); |
|
414 |
try { |
|
415 |
result.next(); |
|
416 |
String kind = result.getString("coord_ref_sys_kind"); |
|
417 |
if (kind.equals("projected")) |
|
418 |
base_target = result.getInt("source_geogcrs_code"); |
|
419 |
} catch (SQLException e1) { |
|
420 |
e1.printStackTrace(); |
|
421 |
} |
|
422 |
crs_target = base_target; |
|
423 |
|
|
410 | 424 |
crs_source_code = new_target; |
411 | 425 |
callInverseTransformation(crs_source_code); |
412 | 426 |
int real_source = crs_target; |
Also available in: Unified diff