public class AddRasterImageLayerWizard extends AbstractWizardGroup
Modifier and Type | Field and Description |
---|---|
protected boolean |
allwaysLookForTFWExtension |
static java.lang.String |
KEY |
protected java.lang.String |
KEY_ALLWAYSACCEPT_TWF_EXT |
protected java.lang.String |
KEY_ZOOM_TO_INSERTED_IMAGE |
protected PropertiesHandler |
properties |
protected static java.lang.String |
propertiesFile |
protected WorldFileHandler |
worldFileHandler |
protected boolean |
zoomToInsertedImage |
Constructor and Description |
---|
AddRasterImageLayerWizard(WorkbenchContext workbenchContext) |
AddRasterImageLayerWizard(WorkbenchContext workbenchContext,
java.io.File[] files) |
Modifier and Type | Method and Description |
---|---|
protected com.vividsolutions.jts.geom.Envelope |
getGeoReferencing(java.lang.String fileName,
boolean allwaysLookForTFWExtension,
java.awt.Point imageDimensions,
WorkbenchContext context)
TODO: [sstein] Feb.2009 - I discovered a 0.5px offset towards south-east for
the envelope, in comparison with images loaded with Jon's/VividSolutions implementation,
if the envelope is obtained from a worldfile.
|
void |
initialize(WorkbenchContext workbenchContext,
WizardDialog dialog) |
void |
open(java.io.File file,
TaskMonitor monitor) |
void |
run(WizardDialog dialog,
TaskMonitor monitor)
Load the files selected in the wizard.
|
addPanel, addPanel, getFirstId, getIcon, getName, getPanels, removeAllPanels, removePanel
public static final java.lang.String KEY
protected PropertiesHandler properties
protected WorldFileHandler worldFileHandler
protected static java.lang.String propertiesFile
protected java.lang.String KEY_ALLWAYSACCEPT_TWF_EXT
protected java.lang.String KEY_ZOOM_TO_INSERTED_IMAGE
protected boolean allwaysLookForTFWExtension
protected boolean zoomToInsertedImage
public AddRasterImageLayerWizard(WorkbenchContext workbenchContext)
public AddRasterImageLayerWizard(WorkbenchContext workbenchContext, java.io.File[] files)
public void initialize(WorkbenchContext workbenchContext, WizardDialog dialog)
initialize
in interface WizardGroup
initialize
in class AbstractWizardGroup
public void run(WizardDialog dialog, TaskMonitor monitor)
monitor
- The task monitor.public void open(java.io.File file, TaskMonitor monitor)
protected com.vividsolutions.jts.geom.Envelope getGeoReferencing(java.lang.String fileName, boolean allwaysLookForTFWExtension, java.awt.Point imageDimensions, WorkbenchContext context) throws java.io.IOException, java.awt.geom.NoninvertibleTransformException
fileName
- allwaysLookForTFWExtension
- imageDimensions
- context
- java.io.IOException
java.awt.geom.NoninvertibleTransformException