Hi,
I am using java JAI to combine bands of different geotiff images having the
same geographic area.
I am saving the result as a tiff file and loose all the geographic
information:
For example:
public void add(File fileA, File fileB, File outputFile) throws
Exception {
PlanarImage imageA = JAI.create("fileload",
fileA.getCanonicalPath());
PlanarImage imageB = JAI.create("fileload",
fileB.getCanonicalPath());
ParameterBlock pb = new ParameterBlock();
pb.setSource(imageA, 0);
pb.setSource(imageB, 1);
PlanarImage result = JAI.create("add", pb, null);
JAI.create("filestore", result, outputFile.getCanonicalPath(),
"tiff");
}
Can I use geotools to do the same thing and write the result as geotiff?
If so can someone point me to documentation on how to do this?
Best regards,
Miguel
--
Miguel Figueiredo
Software Developer
http://jaragua.hopto.org <http://jaragua.dyndns.org>
"I'm a pretty lazy person and am prepared to work quite hard in order to
avoid work."
-- Martin Fowler
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users