Hi all,
I want to create a GeoTiff file but I have not understood the API to use the
right classes.
I have a Tiff file which is just a raster image without any geoSpatial
metadata. The metadata below are used to convert this Tiff file to a GeoTiff
file:
Geotiff_Information:
Version: 1
Key_Revision: 1.0
Tagged_Information:
ModelTiepointTag (2,3):
0 0 0
440720 100000 0
ModelPixelScaleTag (1,3):
60 60 0
End_Of_Tags.
Keyed_Information:
GTModelTypeGeoKey (Short,1): ModelTypeProjected
GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
ProjectedCSTypeGeoKey (Short,1): PCS_WGS84_UTM_zone_60N
End_Of_Keys.
End_Of_Geotiff.
########################################
Implementation for Georeferencing and GeoCoding:
GeoTiffIIOMetadataEncoder enc = new GeoTiffIIOMetadataEncoder();
enc.addModelTiePoint(0, 0, 0, 440720, 100000, 0);
enc.setModelPixelScale(60, 60, 0);
enc.addGeoShortParam(GeoTiffConstants.GTModelTypeGeoKey,
GeoTiffPCSCodes.ModelTypeProjected);
enc.addGeoShortParam(GeoTiffConstants.GTRasterTypeGeoKey,
GeoTiffConstants.RasterPixelIsArea);
enc.addGeoShortParam(GeoTiffPCSCodes.ProjectedCSTypeGeoKey,
GeoTiffPCSCodes.PCS_WGS84_UTM_zone_60N);
Is this coding right?
##########################################
How can I implement the bounding box of the image?
##########################################
But how can I use the instance of the GeoTiffIIOMetadataEncoder class to create
a GeoTiff? The tiff file without any geospatial metadata is available as file
or stream.
Many thansk for your help.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users