Hi Baskar Quoting Baskar <[email protected]>:
> > Hi christian, > > Before I start my work. Please clarify below things. > > 1. It not possible to put all the code into single class as you did. Minimum > of two classes required to do so. So Can I create one more class apart from > new implematation class? You can use as many classes you like, but one of them has to implement the JDBCAccess interface. This implementation class must be threadsafe !!!!!! > > 2. As of now you didn’t use threads but I’ve to use threads in order to > process Georaster, otherwise plug-in may take more time for processing. Is > it okay for you? The georaster implementation does the fetching in a single thread, but this is not the normal case. Look at JDBCAccessBase method startTileDecoders. The tiles were fetched form the db, for each tile an image decoder thread is started and the results are put in the tile queue. Pushing your first tile queue element starts the work of the image composer thread. > > 3. You have used “sdo_geor.exportTo” function to get raster image from the > database. Since this function permits user to specify the format of the > image, so you directly creating buffered image using resultant byte array > from the function where as in our case I am going to use > “sdo_geor.getRasterSubSet” function to create mosaic image. I tried to > convert resultant byte array from this function in to buffered image as you > did. But I am unable to create the image. So this shows lot of code to be > appearing in the class for image creation. Is it okay for you? If not please > suggest any other idea if you have with you to create image? > I used Oracle 10.2. sdo_geor.getRasterSubSet does not give you many format options. NONE, you have to build from scratch DEFLATE, unzip and build from scratch JPEG-B does not work resulting in an exception JPEG-F does not work, image was decoded but the image has only on thin vertical line This was the reason for my switch to sdo_geor.exportTo, which does pretty much the same offering more image formats. The tif format worked, I tried png and png did not work. Anyways, I would delegate the creation of the buffered image to java jai and awt, otherwise you have a lot of work. > > Please let me know if you are okay with above points. If not, please suggest > any other way so that I will code in that manner. > > Regards, > Baskar > > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Proposed-Mosaicing-GeoRaster-Module-tp4942991p5030131.html > Sent from the geotools-devel mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
