Hi Everyone,

 

I've been digging for hours trying to find a way to write out a GeoTiff
Header block to a byte stream for my LAS files.

 

I have the following code:

 

GeoTiffIIOMetadataEncoder encoder = new GeoTiffIIOMetadataEncoder();

            encoder.addGeoShortParam(GeoTiffConstants.GTModelTypeGeoKey,
GeoTiffGCSCodes.ModelTypeGeocentric);

 
encoder.addGeoShortParam(GeoTiffConstants.GTRasterTypeGeoKey,
GeoTiffConstants.RasterPixelIsPoint);

 
encoder.addGeoShortParam(GeoTiffGCSCodes.GeographicTypeGeoKey,
GeoTiffGCSCodes.GCS_WGS_84);

            encoder.addGeoAscii(GeoTiffVCSCodes.VerticalCSTypeGeoKey,
"WGS 84 Ellipsoid");

 
encoder.addGeoShortParam(GeoTiffVCSCodes.VerticalCitationGeoKey,
GeoTiffUoMCodes.Linear_Meter);

 

But I am at a loss at how to write this to a byte stream of any kind...a
java.io.OutputStream.

 

Can anyone help me out??

 

Ronak Patel

Senior Software Engineer

BAE Systems NS

San Diego, CA

 

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to