svn-gvsig-desktop / branches / F2 / libraries / libJCRS / src-test / es / idr / test / TestGeotools21.java @ 12802
History | View | Annotate | Download (736 Bytes)
1 |
package es.idr.test; |
---|---|
2 |
|
3 |
import org.geotools.referencing.CRS; |
4 |
import org.opengis.referencing.FactoryException; |
5 |
import org.opengis.referencing.NoSuchAuthorityCodeException; |
6 |
import org.opengis.referencing.crs.CoordinateReferenceSystem; |
7 |
|
8 |
public class TestGeotools21 { |
9 |
|
10 |
|
11 |
/**
|
12 |
* @param args
|
13 |
*/
|
14 |
public static void main(String[] args) { |
15 |
try {
|
16 |
String strEpsgCode="EPSG:27572"; |
17 |
CoordinateReferenceSystem source; |
18 |
source = CRS.decode(strEpsgCode); |
19 |
System.out.println(source.toWKT());
|
20 |
|
21 |
} catch (NoSuchAuthorityCodeException e) {
|
22 |
// TODO Auto-generated catch block
|
23 |
e.printStackTrace(); |
24 |
} catch (FactoryException e) {
|
25 |
// TODO Auto-generated catch block
|
26 |
e.printStackTrace(); |
27 |
} |
28 |
} |
29 |
|
30 |
} |