root / trunk / libraries / libJCRS / src / com / iver / cit / gvsig / fmap / crs / CRSFactory.java @ 7574
History | View | Annotate | Download (695 Bytes)
1 |
package com.iver.cit.gvsig.fmap.crs; |
---|---|
2 |
|
3 |
import org.cresques.cts.IProjection; |
4 |
import org.cresques.cts.ProjectionPool; |
5 |
import org.gvsig.crs.CrsException; |
6 |
import org.gvsig.crs.CrsFactory; |
7 |
|
8 |
/**
|
9 |
* Fabrica de CRS.
|
10 |
* Centraliza las peticiones de creaci?n de objetos CRS de todo fmap.
|
11 |
* @author luisw
|
12 |
*
|
13 |
*/
|
14 |
public class CRSFactory { |
15 |
public static IProjection getCRS(String code) { |
16 |
//return ProjectionPool.get(code);
|
17 |
//System.out.println("CRSFactory.getCRS("+code+");");
|
18 |
IProjection crs = null;
|
19 |
//crs = ProjectionPool.get(code);
|
20 |
try {
|
21 |
crs = (new CrsFactory()).getCRS(code);
|
22 |
} catch (CrsException e) {
|
23 |
// TODO Auto-generated catch block
|
24 |
e.printStackTrace(); |
25 |
} |
26 |
return crs;
|
27 |
} |
28 |
} |