Revision 22123 branches/Mobile_Compatible_Hito_1/libFMap_mapcontext/src/org/gvsig/fmap/crs/CRSFactory.java
CRSFactory.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.crs; |
2 | 2 |
|
3 |
import org.cresques.cts.ICRSFactory; |
|
4 |
import org.cresques.cts.IProjection; |
|
5 |
import org.cresques.cts.ProjectionPool; |
|
3 |
import org.gvsig.projection.cts.IProjection; |
|
4 |
import org.gvsig.projection.exceptions.ProjectionCreationException; |
|
6 | 5 |
|
7 | 6 |
/** |
8 | 7 |
* Fabrica de CRS. |
... | ... | |
11 | 10 |
* |
12 | 11 |
*/ |
13 | 12 |
public class CRSFactory { |
14 |
public static ICRSFactory cp = new ProjectionPool();
|
|
13 |
public static org.gvsig.projection.cts.CRSFactory cp = CRSFactory();
|
|
15 | 14 |
|
15 |
public static org.gvsig.projection.cts.CRSFactory CRSFactory(){ |
|
16 |
/******************************************************************** |
|
17 |
* HERE IS THE CONSTRUCTOR TO COORDINATE REFERENCE SYSTEM FACTORIES |
|
18 |
* - "Dummy" : Test Factory which can't do reprojections |
|
19 |
* - "JCRS" : JCRS (Log4 based Projection Factory) |
|
20 |
* -"Cresques" : Proyecciones basadas en el Uso de Geoapi y Geotools |
|
21 |
********************************************************************/ |
|
22 |
cp = org.gvsig.projection.register.ProjectionRegister.getProjectionFactory("Dummy"); |
|
23 |
return cp; |
|
24 |
} |
|
16 | 25 |
public static IProjection getCRS(String code) { |
17 |
return cp.get(code); |
|
26 |
return cp.getProjection(code);
|
|
18 | 27 |
} |
19 | 28 |
} |
Also available in: Unified diff