org.deegree.coverage.raster.io
Class WorldFileAccess

java.lang.Object
  extended by org.deegree.coverage.raster.io.WorldFileAccess

public class WorldFileAccess
extends Object

Class representation of a ESRI world file. A world file may defines bounding coordinates centered on the outer pixel (e.g. ESRI software) or outside the bounding pixels (e.g.Oracle spatial). Reading a worldfile this must be considered so the type of a worldfile must be passed. For this a enum named TYPE ist defined.

Version:
Modified from Revision: 7587 $ Date: 2007-06-19 11:29:12 +0200 (Tue, 19 Jun 2007) $, $Revision:10872 $, $Date:2008-04-01 15:41:48 +0200 (Tue, 01 Apr 2008) $
Author:
Andreas Poth, last edited by: $Author:otonnhofer $

Constructor Summary
WorldFileAccess()
           
 
Method Summary
static RasterGeoReference readWorldFile(File filename, RasterIOOptions options)
           
static RasterGeoReference readWorldFile(InputStream stream, RasterIOOptions options)
           
static RasterGeoReference readWorldFile(Reader reader, RasterIOOptions options)
           
static void writeWorldFile(RasterGeoReference renv, File file)
          writes a RasterReference into a world file (with .wld extension).
static void writeWorldFile(RasterGeoReference renv, File file, String extension)
          writes a RasterReference into a world file.
static void writeWorldFile(RasterGeoReference renv, PrintWriter writer)
          writes a RasterReference into a world file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorldFileAccess

public WorldFileAccess()
Method Detail

readWorldFile

public static RasterGeoReference readWorldFile(InputStream stream,
                                               RasterIOOptions options)
                                        throws IOException
Parameters:
stream - the stream pointing to a world file.
options - set for this stream.
Returns:
a RasterReference
Throws:
IOException

readWorldFile

public static RasterGeoReference readWorldFile(Reader reader,
                                               RasterIOOptions options)
                                        throws IOException
Parameters:
reader - to a world file.
options - set for this stream.
Returns:
a RasterReference
Throws:
IOException

readWorldFile

public static RasterGeoReference readWorldFile(File filename,
                                               RasterIOOptions options)
                                        throws IOException
Parameters:
filename - the image/raster file (including path and file extension)
options - set for this file.
Returns:
a RasterReference
Throws:
IOException

writeWorldFile

public static void writeWorldFile(RasterGeoReference renv,
                                  File file)
                           throws IOException
writes a RasterReference into a world file (with .wld extension).

Parameters:
renv - the envelope
file - the raster file
Throws:
IOException

writeWorldFile

public static void writeWorldFile(RasterGeoReference renv,
                                  File file,
                                  String extension)
                           throws IOException
writes a RasterReference into a world file.

Parameters:
renv - the envelope
file - the raster file
extension - the file extension for the world file (eg. 'wld', 'tfw', etc)
Throws:
IOException

writeWorldFile

public static void writeWorldFile(RasterGeoReference renv,
                                  PrintWriter writer)
                           throws IOException
writes a RasterReference into a world file.

Parameters:
renv - the envelope
writer - to write the worldfile to.
Throws:
IOException


Copyright © 2011. All Rights Reserved.