|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openjump.core.rasterimage.WorldFileHandler
public class WorldFileHandler
class to create a ESRI-Worldfile for RasterImages that are exported from Jump, also for reading existent world files.
| Field Summary | |
|---|---|
protected java.lang.String |
imageFileName
|
protected java.lang.String |
worldFileName
|
| Constructor Summary | |
|---|---|
WorldFileHandler(java.lang.String imageFileName,
boolean allwaysLookForTFWExtension)
|
|
| Method Summary | |
|---|---|
protected java.util.List |
createListOfWorldFileNamesForImage()
creates a list of possible worldfile names for the given image file name. |
java.lang.String |
getImageFileName()
|
java.lang.String |
getWorldFileName()
|
boolean |
isAllwaysLookForTFWExtension()
|
java.lang.String |
isWorldFileExistentForImage()
Method that checks if a world file for the given image name can be found. |
com.vividsolutions.jts.geom.Envelope |
readWorldFile(int imgWidth,
int imgHeight)
Retrieve the real world coordinates of the image from the world file |
void |
setAllwaysLookForTFWExtension(boolean allwaysLookForTFWExtension)
|
void |
setImageFileName(java.lang.String imageFileName)
|
boolean |
writeWorldFile(com.vividsolutions.jts.geom.Envelope imageCoordinates,
int imgWidth,
int imgHeight)
Method that writes a world file according to the given coordinate and image information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String worldFileName
protected java.lang.String imageFileName
| Constructor Detail |
|---|
public WorldFileHandler(java.lang.String imageFileName,
boolean allwaysLookForTFWExtension)
imageFileName - name of the image file the world file is forallwaysLookForTFWExtension - if true the worldFileHandler will look for
world files with the extension .tfw even if the image file format
would suggest an other extension, like .pgw - this parameter has no influence
on the writing of world files!| Method Detail |
|---|
public boolean writeWorldFile(com.vividsolutions.jts.geom.Envelope imageCoordinates,
int imgWidth,
int imgHeight)
imageCoordinates - real world coordinates of the imageimgWidth - width (in pixel) of the imageimgHeight - height (in pixel) of the image
public com.vividsolutions.jts.geom.Envelope readWorldFile(int imgWidth,
int imgHeight)
imgWidth - width (in pixel) of the imageimgHeight - height (in pixel) of the image
protected java.util.List createListOfWorldFileNamesForImage()
public java.lang.String isWorldFileExistentForImage()
public boolean isAllwaysLookForTFWExtension()
public void setAllwaysLookForTFWExtension(boolean allwaysLookForTFWExtension)
allwaysLookForTFWExtension - The allwaysLookForTFWExtension to set.public java.lang.String getImageFileName()
public void setImageFileName(java.lang.String imageFileName)
imageFileName - The imageFileName to set.public java.lang.String getWorldFileName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||