Class AddRasterImageLayerWizard
java.lang.Object
org.openjump.core.ui.swing.wizard.AbstractWizardGroup
org.openjump.core.rasterimage.AddRasterImageLayerWizard
- All Implemented Interfaces:
WizardGroup
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanstatic final Stringprotected Stringprotected Stringprotected PropertiesHandlerprotected static Stringprotected WorldFileHandlerprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionAddRasterImageLayerWizard(WorkbenchContext workbenchContext) AddRasterImageLayerWizard(WorkbenchContext workbenchContext, File[] files) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.locationtech.jts.geom.EnvelopegetGeoReferencing(String fileName, boolean alwaysLookForTFWExtension, 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.voidinitialize(WorkbenchContext workbenchContext, WizardDialog dialog) voidrun(WizardDialog dialog, TaskMonitor monitor) Load the files selected in the wizard.Methods inherited from class AbstractWizardGroup
addPanel, addPanel, getFirstId, getIcon, getName, getPanels, removeAllPanels, removePanel
-
Field Details
-
KEY
-
properties
-
worldFileHandler
-
propertiesFile
-
KEY_ALWAYS_ACCEPT_TWF_EXT
-
KEY_ZOOM_TO_INSERTED_IMAGE
-
alwaysLookForTFWExtension
protected boolean alwaysLookForTFWExtension -
zoomToInsertedImage
protected boolean zoomToInsertedImage
-
-
Constructor Details
-
AddRasterImageLayerWizard
-
AddRasterImageLayerWizard
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceWizardGroup- Overrides:
initializein classAbstractWizardGroup
-
run
Load the files selected in the wizard.- Parameters:
dialog- The WizardDialogmonitor- The task monitor.
-
getGeoReferencing
protected org.locationtech.jts.geom.Envelope getGeoReferencing(String fileName, boolean alwaysLookForTFWExtension, Point imageDimensions, WorkbenchContext context) throws IOException, NoninvertibleTransformException 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. Not sure what is correct. I.e. this implementation seems to assume that the worldfile coordinate system origin is the corner of the first pixel and not the center. I have corrected this in WorldFileHandler.readWorldFile()- Parameters:
fileName- the file namealwaysLookForTFWExtension-imageDimensions-context-- Returns:
- the RasterImage Envelope
- Throws:
IOExceptionNoninvertibleTransformException
-