[JAI] GeoTIFF typedefs (constants) question
I have another question on this topic. Is it really necessary that all the
unsigned short constants for GeoKeys and their various codes have constant
type definitions such as here?
Or would mappings such as those provided by getGeoKey() in
and getCodeName() and getCodeNumber() in
be sufficient? While providing the constants would more closely parallel what
was done with TIFFTagSet
and its subclasses, having all those typedefs seems a little like overkill.
Also, it would probably be better to define these things using enums but that
would require Java 5.
If the constant definitions are really required in the interface classes, then
it would seem better to put them in a separate class such as GeoKeyDefs
as that would permit a cleaner path eventually to changing them to enums.
Java Multimedia, Imaging, and Graphics
Sun Microsystems, Inc.
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.