Revision 867 org.gvsig.geotools.proj/trunk/org.gvsig.geotools.proj/org.gvsig.geotools.proj.catalog.impl/src/main/java/org/gvsig/geotools/proj/catalog/utils/DistanceCalculator.java
DistanceCalculator.java | ||
---|---|---|
105 | 105 |
| IllegalArgumentException | IllegalStateException |
106 | 106 |
| IncommensurableException | TransformException |
107 | 107 |
| TransformationException e) { |
108 |
throw new DistanceCalculationException(IdentifiedObjectUtils.getIdentifier(crs), e);
|
|
108 |
throw new DistanceCalculationException(GtUtils.getIdentifier(crs), e);
|
|
109 | 109 |
} |
110 |
throw new DistanceCalculationException(IdentifiedObjectUtils.getIdentifier(crs));
|
|
110 |
throw new DistanceCalculationException(GtUtils.getIdentifier(crs));
|
|
111 | 111 |
} |
112 | 112 |
|
113 | 113 |
/** |
... | ... | |
152 | 152 |
try { |
153 | 153 |
return crs.getConversionFromBase().getMathTransform().inverse(); |
154 | 154 |
} catch (NoninvertibleTransformException e) { |
155 |
throw new TransformationException(IdentifiedObjectUtils.getIdentifier(crs), e);
|
|
155 |
throw new TransformationException(GtUtils.getIdentifier(crs), e);
|
|
156 | 156 |
} |
157 | 157 |
} |
158 | 158 |
if (baseCRS instanceof GeneralDerivedCRS && baseCRS!=crs) { |
... | ... | |
160 | 160 |
MathTransform baseTransform = crs.getConversionFromBase().getMathTransform().inverse(); |
161 | 161 |
ConcatenatedTransform.create(baseTransform, getConversionToGeo((GeneralDerivedCRS)baseCRS)); |
162 | 162 |
} catch (NoninvertibleTransformException e) { |
163 |
throw new TransformationException(IdentifiedObjectUtils.getIdentifier(crs), e);
|
|
163 |
throw new TransformationException(GtUtils.getIdentifier(crs), e);
|
|
164 | 164 |
} |
165 | 165 |
} |
166 |
throw new TransformationException(IdentifiedObjectUtils.getIdentifier(crs));
|
|
166 |
throw new TransformationException(GtUtils.getIdentifier(crs));
|
|
167 | 167 |
} |
168 | 168 |
|
169 | 169 |
public static GeographicCRS getBaseGeographicCRS(GeneralDerivedCRS crs) { |
Also available in: Unified diff