From: Justin D. <jde...@op...> - 2009-07-16 02:21:06
|
I could be way off here, I am sure one of the coverage people will correct me here if i am wrong, but it looks like you can use the assignTo() method to encode the contents as a dom. And then use the regular method of encoding a jdom object. But like I said, i could be way off :) Patel, Ronak Avinash (US SSA) wrote: > 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 > > > ------------------------------------------------------------------------ > > _______________________________________________ > Geoserver-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geoserver-users -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial. |