Ciao Andreas,
the easiest thing you can do is simply creating a prj file with the
correct projection as well as a world file with the correct
transformation.
They must share the same basename of the tiff file and they should
contain respectively, the WKT of your CRS and the grid to world
transformation.

Ciao,
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder - Software Engineer
Via Carignoni 51
55041  Camaiore (LU)
Italy

phone: +39 0584983027
fax:      +39 0584983027
mob:    +39 333 8128928


http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
http://twitter.com/simogeo

-------------------------------------------------------



On Fri, Mar 5, 2010 at 8:43 AM, Andreas Joisten <[email protected]> wrote:
> 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&#174; 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
>

------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to