From user-return-26643-apmail-commons-user-archive=commons.apache.org@commons.apache.org Fri Sep 2 15:55:18 2011 Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E224A798A for ; Fri, 2 Sep 2011 15:55:17 +0000 (UTC) Received: (qmail 23124 invoked by uid 500); 2 Sep 2011 15:55:16 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 22769 invoked by uid 500); 2 Sep 2011 15:55:15 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 22753 invoked by uid 99); 2 Sep 2011 15:55:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 15:55:14 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.65.144.75] (HELO p02c11o142.mxlogic.net) (208.65.144.75) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 15:55:07 +0000 Received: from unknown [198.6.208.103] (EHLO mail.sonalysts.com) by p02c11o142.mxlogic.net(mxl_mta-6.11.0-3) with ESMTP id 64cf06e4.0.57137.00-378.141963.p02c11o142.mxlogic.net (envelope-from ); Fri, 02 Sep 2011 09:54:46 -0600 (MDT) X-MXL-Hash: 4e60fc46162d3ce1-1d17173f65fb5572e227d6164d36f73c4f12820b From: "Gary Lucas" To: Subject: [Sanselan] question about writing metadata to TIFF output Date: Fri, 2 Sep 2011 11:54:44 -0400 Message-ID: <7abedcb8-5c20-4803-abbd-0672cf4ed254@sonalysts.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01CC6967.1BC31720" X-WatchGuard-IPS: message checked X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2010122901)] X-MAIL-FROM: X-SOURCE-IP: [198.6.208.103] X-AnalysisOut: [v=1.0 c=1 a=Z5Ic79PpwiIA:10 a=fb5Wf9lGZMQA:10 a=BLceEmwcHo] X-AnalysisOut: [wA:10 a=DjCRwU6BKXWGRozuCGhgpw==:17 a=LsUIRAQdy4pxGFbuxmsA] X-AnalysisOut: [:9 a=khvrRndNQVZf4k2k_GUA:7 a=CjuIK1q_8ugA:10 a=FnBuZgBf4q] X-AnalysisOut: [MA:10 a=XfxW4OzeA8gA:10 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 ] X-AnalysisOut: [a=UTsrJP-sDtBI7IB9AmQA:9 a=9RwMRSdTFrYNT4dVLC8A:7 a=gKO2Hq] X-AnalysisOut: [4RSVkA:10 a=hTZeC7Yk6K0A:10] ------=_NextPart_000_0005_01CC6967.1BC31720 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am trying to figure out how to write metadata to TIFF files. I've = been going over the Sanselan documentation and can't quite find what I = need. I've also attempted a couple of web searches, but have struck = out. Does anyone have any code snippets or examples on how to do this? = Can anyone point me to examples on the web? =20 In particular, I am trying to write tags for GeoTIFF style files. Some = of these are given as arrays of doubles, some are simple integral = values, some are strings. I'm having trouble figuring out how the = TiffInfo, TiffField, etc. tags are concatenated together to create a = specification. Also, I'm a bit vague on how does one set up a dictionary = and how that interacts with the tags. =20 I've already used Sanselan for reading TIFF files and, just in case = anyone's wondering, it works like a champ. My only difficulty is that = some of the documentation is a bit sketchy. If I ever master the API to = a sufficient degree, I think I might try fleshing out the javadoc a bit = and submitting it to the project. =20 Thanks in advance for your help.=20 =20 Gary =20 =20 Computer Programming is the Art of the Possible Gary W. Lucas Sonalysts, Inc. 215 Parkway North Waterford, CT 06385 (860) 326-3682 41-22-12.35 N / 72-10-07.54 W (USNG/MGRS: 18T YL 36787 83711) ------=_NextPart_000_0005_01CC6967.1BC31720--