|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
Create a new WorldFile with an envelope that spans from the center of the corner pixels. |
|
WorldFile(double resx,
double resy,
double rotation1,
double rotation2,
Envelope envelope,
WorldFile.TYPE type)
Create a new WorldFile with an envelope. |
Method Summary | |
---|---|
Envelope |
getEnvelope()
returns the envelope described by a word file. |
Envelope |
getEnvelope(WorldFile.TYPE envType)
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(java.lang.String name)
|
static WorldFile |
readWorldFile(java.io.InputStream is,
WorldFile.TYPE type,
int width,
int height)
|
static WorldFile |
readWorldFile(java.lang.String filename,
WorldFile.TYPE type)
|
static WorldFile |
readWorldFile(java.lang.String filename,
WorldFile.TYPE type,
java.awt.image.BufferedImage image)
returns a class representation of a ESRI world file |
static WorldFile |
readWorldFile(java.lang.String filename,
WorldFile.TYPE type,
int width,
int height)
|
java.lang.String |
toString()
|
static void |
writeWorldFile(java.io.OutputStream os,
WorldFile wf)
writes a WorldFile |
static void |
writeWorldFile(WorldFile wf,
java.lang.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 worldfilepublic WorldFile(double resx, double resy, double rotation1, double rotation2, Envelope envelope, WorldFile.TYPE type)
resx
- resolution x-directionresy
- resolution y-direction (negative value)rotation1
- first rotation parameterrotation2
- second rotation parameterenvelope
- the envelope of the worldfiletype
- whether the envelope spans from the center or from the outer bounds of the corner pixelsMethod Detail |
---|
public static WorldFile readWorldFile(java.lang.String filename, WorldFile.TYPE type) throws java.io.IOException
filename
- name of the image/raster file inclusing path and extensiontype
-
java.io.IOException
public static boolean hasWorldfileSuffix(java.lang.String name)
name
-
public static WorldFile readWorldFile(java.io.InputStream is, WorldFile.TYPE type, int width, int height) throws java.lang.NumberFormatException, java.io.IOException
is
- type
- width
- image width in pixelheight
- image height in pixel
java.io.IOException
java.lang.NumberFormatException
public static WorldFile readWorldFile(java.lang.String filename, WorldFile.TYPE type, int width, int height) throws java.io.IOException
filename
- name of the image/raster file inclusing path and extensiontype
- width
- image width in pixelheight
- image height in pixel
java.io.IOException
public static WorldFile readWorldFile(java.lang.String filename, WorldFile.TYPE type, java.awt.image.BufferedImage image) throws java.io.IOException
filename
- name of the image/raster file including path and extensiontype
- world file typeimage
- image/raster the world file belongs too
java.io.IOException
public static void writeWorldFile(WorldFile wf, java.lang.String fileBaseName) throws java.io.IOException
wf
- fileBaseName
-
java.io.IOException
public static void writeWorldFile(java.io.OutputStream os, WorldFile wf) throws java.io.IOException
os
- wf
-
java.io.IOException
public Envelope getEnvelope()
public Envelope getEnvelope(WorldFile.TYPE envType)
envType
- whether the result envelope should span from the center or from the outer bounds of the corner pixels
public double getResx()
public double getResy()
public double getRotation1()
public double getRotation2()
public java.lang.String toString()
toString
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org