|
From: Jesse E. <je...@re...> - 2004-07-13 21:25:12
|
Jody Garnett said the following on 07/13/2004 02:02 PM: >> To Andrea's questions: I'm speaking of the GeoTIFF revision 1.0 >> specification (Specification Revision 1.8.2 Last modified 10 November >> 1995) where the parameters are specified by tags. I'm not planning on >> implementing all the bells and whistles. In particular, no fancy-pants >> rubber sheeting or non-affine translations between raster space and >> model >> space. (I hope I'm using the terminology correctly.) I haven't thought >> much about how to manipulate tag data yet. Been looking primarily at >> Geotools code structure to figure out how this might fit in. >> >> > I guess you want to build against the 2.0.x stream but you might want to look at GridCoverageExchange before you do, at least to understand where geotools is going. The GridCoverageExchange interfaces are in the 2.1.x build (trunk) in the org.geotools.data.coverage.grid package (in the module/main directory). The GridFormatFactorySpi and GridFormatFinder classes look for registered format plugins and load them on command. The arcgrid plugin is the only compatible format at the moment. You might want to check it out, its in the plugin/arcgrid directory. For a plugin to be loaded and used by GridCoverageExchanges the plugin in must have a org.geotools.data.coverage.grid.GridFormatFactorySpi file in the META-INF/service directory. (See the arcgrid example) Also a number of interfaces must be implemented: org.geotools.data.coverage.grid.Format org.geotools.data.coverage.grid.GridCoverageReader org.geotools.data.coverage.grid.GridCoverageWriter org.geotools.data.coverage.grid.GridFormatSpi The org.geotools.data.coverage.grid package has a Abstract Format class that can help the implementation. Its a little out of date though, now that I think of it. It could probably be more useful than it is. Cheers, Jesse |