| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.model.coverage.grid.WorldFile
public class WorldFile
class representation of a ESRI world file. A world file may defines bounding coordinates centered
 on the outter 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.
| Nested Class Summary | |
|---|---|
static class | 
WorldFile.TYPE
TYPE enumerates the world file types. | 
| Constructor Summary | |
|---|---|
WorldFile(double resx,
                   double resy,
                   double rotation1,
                   double rotation2,
                   Envelope envelope)
 | 
|
| Method Summary | |
|---|---|
 Envelope | 
getEnvelope()
returns the envelope described by a word file  | 
 double | 
getResx()
returns the x-resolution described by a word file  | 
 double | 
getResy()
returns the y-resolution described by a word file  | 
 double | 
getRotation1()
returns the first rotation described by a word file  | 
 double | 
getRotation2()
returns the second rotation described by a word file  | 
static boolean | 
hasWorldfileSuffix(String name)
 | 
static WorldFile | 
readWorldFile(String filename,
                           WorldFile.TYPE type)
 | 
static WorldFile | 
readWorldFile(String filename,
                           WorldFile.TYPE type,
                           BufferedImage image)
returns a class represention of a ESRI world file  | 
static WorldFile | 
readWorldFile(String filename,
                           WorldFile.TYPE type,
                           int width,
                           int height)
 | 
 String | 
toString()
 | 
static void | 
writeWorldFile(WorldFile wf,
                             String fileBaseName)
writes a WorldFile  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public WorldFile(double resx,
                 double resy,
                 double rotation1,
                 double rotation2,
                 Envelope envelope)
resx - resolution x-directionresy - resolution y-direction (negative value)rotation1 - first rotation parameterrotation2 - second rotation parameterenvelope - the envelope of the worldfile| Method Detail | 
|---|
public static WorldFile readWorldFile(String filename,
                                      WorldFile.TYPE type)
                               throws IOException
filename - name of the image/raster file inclusing path and extensiontype - 
IOExceptionpublic static boolean hasWorldfileSuffix(String name)
name - 
public static WorldFile readWorldFile(String filename,
                                      WorldFile.TYPE type,
                                      int width,
                                      int height)
                               throws IOException
filename - name of the image/raster file inclusing path and extensiontype - width - image width in pixelheight - image height in pixel
IOException
public static WorldFile readWorldFile(String filename,
                                      WorldFile.TYPE type,
                                      BufferedImage image)
                               throws IOException
filename - name of the image/raster file inclusing path and extensiontype - world file typeimage - image/raster the worldfile belongs too
IOException
public static void writeWorldFile(WorldFile wf,
                                  String fileBaseName)
                           throws IOException
wf - fileBaseName - 
IOExceptionpublic Envelope getEnvelope()
public double getResx()
public double getResy()
public double getRotation1()
public double getRotation2()
public String toString()
toString in class Object
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net