root / org.gvsig.geotools.proj / trunk / org.gvsig.geotools.proj / org.gvsig.geotools.proj.catalog.impl / src / test / java / org / gvsig / geotools / proj / catalog / test / GtCRSCatalogManagerIT.java @ 824
History | View | Annotate | Download (3.2 KB)
1 |
package org.gvsig.geotools.proj.catalog.test; |
---|---|
2 |
|
3 |
import java.text.ParseException; |
4 |
|
5 |
import org.gvsig.geotools.proj.catalog.GtCRSCatalogManager; |
6 |
import org.gvsig.proj.CoordinateReferenceSystem; |
7 |
import org.gvsig.proj.CoordinateReferenceSystemLibrary; |
8 |
import org.gvsig.proj.CoordinateReferenceSystemLocator; |
9 |
import org.gvsig.proj.CoordinateReferenceSystemManager; |
10 |
import org.gvsig.proj.CoordinateTransformation; |
11 |
import org.gvsig.proj.catalog.CRSCatalogManager; |
12 |
import org.gvsig.proj.catalog.CRSCatalogManagerIT; |
13 |
import org.gvsig.proj.catalog.CRSDefinition; |
14 |
import org.gvsig.proj.catalog.TextSerialization.Format; |
15 |
import org.gvsig.proj.catalog.TransformationDefinition; |
16 |
import org.gvsig.proj.catalog.exception.UnsupportedCoordinateReferenceSystemException; |
17 |
import org.gvsig.proj.catalog.exception.UnsupportedFormatException; |
18 |
import org.gvsig.proj.catalog.exception.UnsupportedTransformationException; |
19 |
|
20 |
public class GtCRSCatalogManagerIT extends CRSCatalogManagerIT { |
21 |
|
22 |
@Override
|
23 |
protected void doInitializeLibraries() { |
24 |
super.doInitializeLibraries();
|
25 |
// Since we also implement the CoordinateReferenceSystem API in this library, we have a dependency
|
26 |
// on that API so we need to register an implementation
|
27 |
CoordinateReferenceSystemLocator.registerManager(DummyCoordinateReferenceSystemManager.class); |
28 |
} |
29 |
|
30 |
@Override
|
31 |
protected CRSCatalogManager createProjectionManager() {
|
32 |
return new GtCRSCatalogManager(); |
33 |
} |
34 |
|
35 |
@Override
|
36 |
protected String getAuthorityName() { |
37 |
return "EPSG"; |
38 |
} |
39 |
|
40 |
@Override
|
41 |
protected String getCode() { |
42 |
return "EPSG:23030"; |
43 |
} |
44 |
|
45 |
@Override
|
46 |
protected String getSearchString() { |
47 |
return "WGS"; |
48 |
} |
49 |
|
50 |
public class DummyCoordinateReferenceSystemManager implements CoordinateReferenceSystemManager { |
51 |
|
52 |
@Override
|
53 |
public CoordinateReferenceSystem parseCoordinateReferenceSystem(String def) |
54 |
throws UnsupportedCoordinateReferenceSystemException, ParseException { |
55 |
// TODO Auto-generated method stub
|
56 |
return null; |
57 |
} |
58 |
|
59 |
@Override
|
60 |
public CoordinateReferenceSystem parseCoordinateReferenceSystem(String def, Format format) |
61 |
throws UnsupportedCoordinateReferenceSystemException, ParseException, UnsupportedFormatException { |
62 |
// TODO Auto-generated method stub
|
63 |
return null; |
64 |
} |
65 |
|
66 |
@Override
|
67 |
public CoordinateReferenceSystem getCoordinateReferenceSystem(CRSDefinition definition)
|
68 |
throws UnsupportedCoordinateReferenceSystemException {
|
69 |
// TODO Auto-generated method stub
|
70 |
return null; |
71 |
} |
72 |
|
73 |
@Override
|
74 |
public CoordinateTransformation parseCoordinateTransformation(String def) |
75 |
throws UnsupportedTransformationException, ParseException { |
76 |
// TODO Auto-generated method stub
|
77 |
return null; |
78 |
} |
79 |
|
80 |
@Override
|
81 |
public CoordinateTransformation parseCoordinateTransformation(String def, Format format) |
82 |
throws UnsupportedTransformationException, ParseException, UnsupportedFormatException { |
83 |
// TODO Auto-generated method stub
|
84 |
return null; |
85 |
} |
86 |
|
87 |
@Override
|
88 |
public CoordinateTransformation getCoordinateTransformation(TransformationDefinition definition)
|
89 |
throws UnsupportedTransformationException, ParseException { |
90 |
// TODO Auto-generated method stub
|
91 |
return null; |
92 |
} |
93 |
|
94 |
@Override
|
95 |
public void setCatalogManager(CRSCatalogManager manager) { |
96 |
// TODO Auto-generated method stub
|
97 |
|
98 |
} |
99 |
|
100 |
} |
101 |
|
102 |
} |