ClassCastException in Crop.doOperation()
----------------------------------------
Key: GEOT-3434
URL: http://jira.codehaus.org/browse/GEOT-3434
Project: GeoTools
Issue Type: Bug
Components: core coverage
Affects Versions: 2.7-RC1
Environment: CentOS 5.5, JDK 1.6 64-bit
Reporter: Felix LJ Mayer
I am getting the exception below because Crop.doOperation() does and explicit
cast to GeneralEnvelope. However, Operations.crop() specifies an
org.opengis.geometry.Envelope in the parameter list. I guess Crop.doOperation()
should be fixed.
Caused by: java.lang.ClassCastException: org.geotools.geometry.Envelope2D
cannot be cast to org.geotools.geometry.GeneralEnvelope
at
org.geotools.coverage.processing.operation.Crop.doOperation(Crop.java:275)
at
org.geotools.coverage.processing.CoverageProcessor.doOperation(CoverageProcessor.java:540)
at
org.geotools.coverage.processing.CoverageProcessor.doOperation(CoverageProcessor.java:562)
at
org.geotools.coverage.processing.Operations.doOperation(Operations.java:735)
at org.geotools.coverage.processing.Operations.crop(Operations.java:487)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel