This change has been forced by a GeoAPI change, and the patch applied here is the most straightforward one.
Nevertheless Apache SIS does this work slightly differently (checking for the Parameterized
interface
instead, and using an other method call than toString(null)
).
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r7842:7843 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/operation/transform/ConcatenatedTransform.java
Revision 7842 | Revision 7843 |
---|---|
if (transform instanceof AbstractMathTransform) {
ParameterValueGroup params = ((AbstractMathTransform) transform).getParameterValues();
if (params != null) {
String name = params.getDescriptor().getName(null);
if (name!=null && (name=name.trim()).length()!=0) {
return name;
} |
if (transform instanceof AbstractMathTransform) {
ParameterValueGroup params = ((AbstractMathTransform) transform).getParameterValues();
if (params != null) {
String name = params.getDescriptor().getName().toString(null);
if (name!=null && (name=name.trim()).length()!=0) {
return name;
} |