Tim de Boer a écrit :
> I was getting the following exception running some coordinate stuff:
> 
> Exception in thread "main"
> org.opengis.referencing.operation.OperationNotFoundException:
> Concatenated operation not supported.
>
> [...snip...]
> 
> So I replaced the offedning code...
> 
> [...snip...]
> throw new OperationNotFoundException("Concatenated operation not supported.");
> [...snip...]
> 
> with...
>
> [...snip...]
> step = DefaultOperation.create(Collections.singletonMap("name",
>     step.getName()), sourceStepCRS, targetStepCRS, mt,
>     new DefaultOperationMethod(mt), null);
> [...snip...]
> 
> Seems to work ok but would just like some warning on any issues I might
> encounter down the track with this code...


Seems to make sense. Could you try the following and tell us if it seems to work
okay please?

final MathTransform stepMT = step.getMathTransform();
step = DefaultOperation.create(AbstractIdentifiedObject.getProperties(step),
        step.getSourceCRS(), step.getTargetCRS(), stepMT,
        new DefaultOperationMethod(stepMT), step.getClass());

It it seems to work okay, I would commit this code to Geotools SVN.

        Thanks

                Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to