Remove deprecations from FormatFinder workflow
----------------------------------------------
Key: GEOT-2755
URL: http://jira.codehaus.org/browse/GEOT-2755
Project: GeoTools
Issue Type: Improvement
Components: core coverage
Affects Versions: 2.6-RC1
Reporter: Jody Garnett
Assignee: Simone Giannecchini
Fix For: 2.6-RC1
Hi Simone - as part of putting together the ImageLab I would like to show how
to render an GridCoverageReader. The problem is that GridCoverageReader is
deprecated. It looks like I can start with GridFormatFinder and have it return
AbstractGridFormat as shown here
{code}
public final class GridFormatFinder {
....
public static synchronized AbstractGridFormat findFormat(Object o);
}
{code}
I can then chase this change through the rest of the API as in the attached
patch. In the individual formats I am explicitly type narrowing to the actual
instance they create. I am doing this so you will have less of a change if we
carve our our own non deprecated Format interfaces.
I would really like you to review this api change as it will make a large
difference to the ImageLab code example. I cannot show deprecated code; and the
alternative of asking people to do if/then/else logic to determine if their
file is a GeoTiff or World+Image seems in poor taste.
--
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
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel