Hello, developers.
 
I want to create a very simple Coverage based on GDAL(ReadOnly without cashing, 
etc).
I have no problems with GDAL in JAVA (with swig). Examples in 
gdal/swig/java/app are working OK.
I see at GeoTools/modules/plugin image, arcgrid, wms,arcsde and others, I also 
read OGC spec about Coverage.
I have not found the steps to create a custom Coverage(no documentation).
 
 Could anybody help me to start?
 I think my steps must be:
 1. Inherit class GdalImageFormatFactory implements GridFormatFactorySpi.
 2. Inherit class GdalImageFormat extends AbstractGridFormat implements Format.
 3. Inherit class GdalImageReader extends AbstractGridCoverage2DReader 
implements GridCoverageReader.
 I have problems with 3 step. I can't choose what method I must to implement.
 
 The interactions with GDal must be:
 GT> Coverage, give me an image for World BBOX(minx,miny,maxx,maxx) with 
resolution in pixels SIZE(width,height). This like WMS GetMap request.
 Coverage(Gdal)> Ok. I create GridCoverage from BufferedImage for you.
 
 Thus, I can create method in GdalImageReader:
   BufferedImage getImage(double minx,double miny,double maxx,double maxy,int 
width,int height)
   {
     // insensive GDAL usage.
   }
 But I don't understand how to use it from GridCoverageReader. Please, help me.
 
 I have found public GridCoverage read(GeneralParameterValue[] params)
                        throws IllegalArgumentException, IOException ;
 But how to get BBOX and SIZE values for this request? GeneralParameterValue[] 
params are no the reason(I think).
 
 Is it possible to inherit AbstractGridCoverage2DReader to 
AbstractSimpleGridCoverage2DReader which use my method getImage(..) ? I think 
it is easy and usable for start point.
 
Thank you.

P.S. 
 If I can implement GridCoverageReader in my way(see getImage), I also plan to 
create simple ArcGIS .MXD Coverage plugin.
 Thus you can create ArcGis MXD Document(add layers and its visualization) and 
use it in GeoServer.
 
Have a great day.
 Andrew.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to