1

Using Java, I want to add geo tags to existing TIFF file and make it into a GeoTIFF file. Otherwise, for buffered image is it possible to add geotags to make a GeoTIFF file.

nmtoken
13.6k5 gold badges39 silver badges91 bronze badges
asked Apr 10, 2012 at 11:31

1 Answer 1

2
answered Apr 10, 2012 at 12:18
1
  • I have tried the following code:IIOMetadata streamMetadata = reader.getStreamMetadata(); writer.prepareWriteSequence(streamMetadata); for (int i = 0; i < pages; i++) { bimage = (BufferedImage) bufferedImageList.get(i); td = TIFFDirectory.createFromMetadata((IIOMetadata)imageMetaDataList.get(i));td.addTIFFField(tf); iiomage=new IIOImage(bimage, null, td.getAsMetadata()); writer.writeToSequence(iiomage, getParam()); } But tag names are not coming as i gave in TiffField?Do you have any idea regarding this?Is any other way exists,if yes please give code snippet Commented Apr 13, 2012 at 3:55

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.