Difference between revisions of "Working with Raster"

From OpenJUMP Wiki
Jump to navigation Jump to search
 
(42 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
== Open Raster Files ==
 
== Open Raster Files ==
  
=== Old Raster framework ===
+
All raster readers support georeferencing via world file (see http://en.wikipedia.org/wiki/World_file). Also see [[How to georeference rasters]].
  
To open Raster Files click on Menubar>Layer>Add Image Layer (ecw deactivated) function  or Menubar>Open Files..
+
To open raster image files
Currently OpenJump can read GIF PNG JPG JPEG TIF and TIFF. ECW is actually deactivated. Other format can be supported using external files:
+
: click on '''File>Open''' and select '''File''' on the left side
 +
: or  
 +
: use '''File>Open File'''
 +
: or
 +
: use drag and drop by selecting the image file in file manager window and dragging it into OpenJUMP project
  
=== Reading additional image formats ===
+
There is a '''Layer>Image Layer Manager''' which allows you load several images into one layer and manage them.
  
Reading [[ECW]] image files
+
== Format support ==
  
Reading [[MrSID]] image files
+
Currently [29.11.2013 OJ snapshot] OpenJUMP can read
  
Reading [[Jpeg2000]] image files
+
BMP, DCX, FPX, GIF, JB2, JBIG2, JPEG, PAM, PBM, PCX, PGM, PNG, PNM, PPM, PSD, TGA, TIFF, WBMP, XBM, XPM
  
'''ECW''' (Windows users): OpenJUMP can read ECW if Mapper ECW drivers NcsCnet.dll, ''NCSEcw.dll'' and ''NCSUtil.dll'' are copied in  OpenJUMP/lib/ext folder, and if ermapper.jar is available in OpenJUMP/lib folder.
+
files out of the box. Additionally OpenJUMP Plus supports reading
These files can be find on the [http://www.ermapper.com/ProductView.aspx?t=28 ER Mapper web page] as part of Image Compression SDK. They can also be download from some Fttp severs (see  [http://people.ok.ubc.ca/mberger/MiscSW/IrfanView/Plugins/Ecw/ Irfanview] Ecw plugin).
 
  
'''Note''': The last ECW SDK found on ER Mapper site is not compatible with the java wrapper available in OpenJUMP distribution, and it seems that ER Mapper do not maintain this java wrapper. To use the plugin, you need the jar file included in OpenJUMP distribution and the ecw dll available in OpenJUMP project svn tree (I did not find the exact version of all these binaries). Here is an interseting document about the [http://www.deegree.org/deegree/deegreeday/2007/presentations/deegreeDay2007_Stutte_WcsIssues.pdf subject]
+
* ECW, JPEG2000
 +
** via native ECW SDK libraries with 32bit java on Windows, Linux, MacOSX
 +
** see [[ECW]], [[JPEG2000]]
 +
* MRSID
 +
** via mrsid console binaries
 +
** see [[MrSID]]
 +
* ECW, JPEG2000, MRSID, NITF and many more (currently on Windows, Linux only)
 +
** via native GDAL libraries
 +
** see [[#Referenced Image reader]]
  
 +
== Available readers and frameworks ==
  
'''MrSID'''
+
=== Buffered Image Apache Commons reader ===
: Opens aerial or satellite photos in MrSid format (.SID extension).
+
 
: This function is deactivated for default. To activate this function user must install the MrSid extension in OpenJUMP.  
+
Reads a variety of raster formats
: TIP: to install MrSID extension: (note: instructions for NightlyBuild below)
+
http://commons.apache.org/proper/commons-imaging/formatsupport.html
:* (1) download ''mrsidgeodecode.exe'' and  ''mrsidgeoinfo.exe''  from [http://www.lizardtech.com LizardTech website],
+
into memory, so be careful with big files.
:* (2) on Windows platforms create a ECT folder in the 'program' folder (e.g. 'C:\Program Files\etc\') and put the 2 files in it.
+
 
:* (3)Now, rename the files: ''mrsidgeodecode_win.exe'' to mrsiddecode.exe and ''mrsidgeoinfo_Win.exe'' to ''mrsidinfo.exe''.
+
=== ECW SDK native reader ===
:* (4) Start OpenJUMP and look if you can load the files
+
 
:* (6) Create also a TEMP folder inside OpenJUMP install folder and give it read/write permissions. This is where the Openjump stores temp info for the MrSID images being read. This trick probabily works only for MS Windows based Operative Systems.
+
comes with OJ PLUS, can be downloaded for OJ CORE <br/>
:* If you encounter problems with the new Lizard extensions, download the old ''mrsidinfo.exe'' file [http://www.ashsiii.com/downloads/mrsidinfo.zip here]
+
see [[ECW]], [[JPEG2000]]
:* for users of nighlty build (since May 2008): place the files: mrsidgeodecode.exe and mrsidgeoinfo.exe in the /etc/ folder of OpenJUMP. Create also the folder called "TMP" in the OJ "ETC" folder. that's it. Check now if the option to load "MrSID" files is offered in the file load dialog.
+
 
+
=== GeoTIFF Plus (JAI) reader ===
'''MrSID''' (Windows users): To open MrSID files click on Menubar>Layer>Add MrSID Layer. This function is deactivated for default . To activate this function user must install the MrSid extension in Openjump. See [[Add MrSID Layer]] how to setup MrSID reader in OpenJUMP. [http://www.lizardtech.com/download/dl_options.php?page=tools MrSIS Decode] of Lizardtech(R)allows to convert Mrsid files to TIFF and GeoTIF .
+
 
 +
The old GeoTIFF reader enhanced to support more formats. <br/>
 +
As the name suggests Georeferencing is done via world files or GeoTIFF information.
 +
 
 +
=== MrSID native reader ===
 +
 
 +
must be installed manually by the user due to license restrictions <br/>
 +
see [[MrSID]]
 +
 
 +
=== Referenced Image reader ===
 +
 
 +
Supports reading raster files with all java APIs available in jre (ImageIO[ext], JAI, ImageCodec...). There maybe duplicate readers here to offer the user the choice to figure out which one works best or at all with the image files at hand.
 +
 
 +
Georeferencing is done via world files, GeoTIFF information or GDAL reader if installed like described below.
 +
 
 +
==== GDAL support (Windows, Linux only) ====
 +
 
 +
Additionally reads ECW, JPEG2000, MRSID and lots of [http://github.com/geosolutions-it/imageio-ext/wiki/GDAL-framework-and-plugins more formats] on '''Windows, Linux only''' provided
 +
* OpenJUMP Plus is used
 +
* native GDAL libraries are installed correctly
 +
** download GDAL-*.zip from https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/Drivers/
 +
** install instruction can be found within the zip file
 +
'''Note:''' GDAL reader has the widest support for different tiff/GeoTIFF variants. If other drivers fail, try with GDAL. Typical example is images which are compressed with "deflate" method. GDAL can also utilise overviews (subsampled versions of the images, pyramid layers) if they exist which can make browsing much faster in small scales.
 +
 
 +
=== Sextante Raster framework ===
  
'''MrSID''' (non Windows users): See The JUMP Pilot Project feature request - [https//sourceforge.net/tracker/?func=detail&atid=997723&aid=1803634&group_id=118054 MrSID on non-windows platforms]. Note that the advice may not work on all systems.
+
Load an image/raster using the function '''File>Open...>'''. Select in the left window the "Sextante Raster Image" option.
  
=== New Raster framework (Sextante compatible) ===
+
Current image formats: ASC  FLT  GIF  JPG  PNG TIF 
 +
 +
OpenJUMPs PLUS edition contains the Sextante Toolbox. That toolbox contains lots of raster processing and analysis functions.
  
 
== Save Raster Files ==
 
== Save Raster Files ==
  
OpenJUMp can save a project view to raster files.  
+
OpenJUMP can save a project view to raster files.  
To save the view to  Raster file choose '''Menubar>File>Save View as Image...'''
+
To save the view to  Raster file choose '''File>Save View as Image...'''
  
 
Currently only PNG and JPG are supported.
 
Currently only PNG and JPG are supported.
  
 
OpenJUMP can save to georeferenced file with world file. To save to georeferenced file make sure that the option '''Write World File''' is enabled.
 
OpenJUMP can save to georeferenced file with world file. To save to georeferenced file make sure that the option '''Write World File''' is enabled.
The Fence function  in the '''Save as Image''' window allows to save as Image the part of project within a fence.  
+
The Fence function  in the '''Save as Image''' window allows to save as Image the part of project within a fence.
 +
 
 +
 
 +
OPenJUMP can export Sextante Image Layers to some grid (ASC  FLT  TIF) and image file format (GIF  JPG  PNG  TIF).
  
 
== Raster Transparency ==
 
== Raster Transparency ==
  
Basic OpenJUMP setup does not have  support for Raster trasparency. However, if image files are loaded with "Sextante Raster Image" then this function is available. (This function has been copied from Pirols Raster Image Plugin=
+
Most readers respect the transparency that can be set in the layer properties context dialogue.
  
 
== Georeference Raster ==
 
== Georeference Raster ==
  
See [[How to georeference rasters]] page
+
''Tools>Warp>Affine transformation (with paramteres)'' tool works with JPG/PNG/GIF/TIF image loaded via ReferencedImage layer (Open layer>Layer)
 +
 
 +
RasterTools Extension[http://sourceforge.net/projects/opensit/files/Openjump/PlugIn/Raster%20Tools/] for OpenJUMP has a Georeferencing toolbar with some tools for simple affine transformations of Sextante Raster Layers.
 +
See general documention here[http://sourceforge.net/projects/opensit/files/Openjump/PlugIn/Raster%20Tools/Rastertools-02.pdf/download] and about georeferencing with OpenJUMP and RasterTools here[https://sourceforge.net/projects/opensit/files/Openjump/PlugIn/Raster%20Tools/Rastertools-02-georeferencing.pdf/download]
 +
 
 +
See also [[How to georeference rasters]] page for external softwares
  
 
== Raster Reprojection ==
 
== Raster Reprojection ==
Line 64: Line 110:
 
Based on [http://www.gdal.org/ GDAL] and [http://gdal.org/ogr/ OGR] libraries, it includes the viewer [http://openev.sourceforge.net/ OpenEV] that provides access to the files with a graphic interface (see also [http://gdal.org/formats_list.html GDAL Raster Formats] and [http://gdal.org/ogr/ogr_formats.html OGR Vector Format]. There is also a tool to reproject raster files
 
Based on [http://www.gdal.org/ GDAL] and [http://gdal.org/ogr/ OGR] libraries, it includes the viewer [http://openev.sourceforge.net/ OpenEV] that provides access to the files with a graphic interface (see also [http://gdal.org/formats_list.html GDAL Raster Formats] and [http://gdal.org/ogr/ogr_formats.html OGR Vector Format]. There is also a tool to reproject raster files
  
See also [http://www.fsdeveloper.com/wiki/index.php?title=Working_with_FwTools_and_GeoTIFF_files
+
See also [http://www.fsdeveloper.com/wiki/index.php?title=Working_with_FwTools_and_GeoTIFF_files Working with FwTools and GeoTIFF files] from fsdevelopers.com
Working with FwTools and GeoTIFF files] from fsdevelopers.com
 
  
 
Some usefull information about raster reprojection software can be found in Leszek Pawlowicz's post [http://freegeographytools.com/2008/reprojecting-raster-imagery-i Reprojecting Raster Imagery I] and [http://freegeographytools.com/2008/reprojecting-raster-imagery-ii-erdas-viewfinder Reprojecting Raster Imagery II - ERDAS Viewfinder]
 
Some usefull information about raster reprojection software can be found in Leszek Pawlowicz's post [http://freegeographytools.com/2008/reprojecting-raster-imagery-i Reprojecting Raster Imagery I] and [http://freegeographytools.com/2008/reprojecting-raster-imagery-ii-erdas-viewfinder Reprojecting Raster Imagery II - ERDAS Viewfinder]
Line 72: Line 117:
  
 
== Raster Filters ==
 
== Raster Filters ==
 +
 +
RasterTools Extension[http://sourceforge.net/projects/opensit/files/Openjump/PlugIn/Raster%20Tools/] for OPenJUMP has a set of more common image filters on Sextante Raster layers
  
 
Image [http://gis.vsb.cz/ruzicka/Projekty/jump/plugins/imageenh.zip Plugin Enhancement], from Lenka Ferkova and Jan Kucharczyk, allows some filter operations on  Image (edge, blur, inverse). User can define their own kernel filter.  
 
Image [http://gis.vsb.cz/ruzicka/Projekty/jump/plugins/imageenh.zip Plugin Enhancement], from Lenka Ferkova and Jan Kucharczyk, allows some filter operations on  Image (edge, blur, inverse). User can define their own kernel filter.  
  
 
<hr/>
 
<hr/>
 +
 +
 +
  
 
'''back to'''  New User Guide [[Index]] page
 
'''back to'''  New User Guide [[Index]] page

Latest revision as of 20:43, 20 August 2018

back to New User Guide Index page

Open Raster Files

All raster readers support georeferencing via world file (see http://en.wikipedia.org/wiki/World_file). Also see How to georeference rasters.

To open raster image files

click on File>Open and select File on the left side
or
use File>Open File
or
use drag and drop by selecting the image file in file manager window and dragging it into OpenJUMP project

There is a Layer>Image Layer Manager which allows you load several images into one layer and manage them.

Format support

Currently [29.11.2013 OJ snapshot] OpenJUMP can read

BMP, DCX, FPX, GIF, JB2, JBIG2, JPEG, PAM, PBM, PCX, PGM, PNG, PNM, PPM, PSD, TGA, TIFF, WBMP, XBM, XPM

files out of the box. Additionally OpenJUMP Plus supports reading

  • ECW, JPEG2000
    • via native ECW SDK libraries with 32bit java on Windows, Linux, MacOSX
    • see ECW, JPEG2000
  • MRSID
    • via mrsid console binaries
    • see MrSID
  • ECW, JPEG2000, MRSID, NITF and many more (currently on Windows, Linux only)

Available readers and frameworks

Buffered Image Apache Commons reader

Reads a variety of raster formats http://commons.apache.org/proper/commons-imaging/formatsupport.html into memory, so be careful with big files.

ECW SDK native reader

comes with OJ PLUS, can be downloaded for OJ CORE
see ECW, JPEG2000

GeoTIFF Plus (JAI) reader

The old GeoTIFF reader enhanced to support more formats.
As the name suggests Georeferencing is done via world files or GeoTIFF information.

MrSID native reader

must be installed manually by the user due to license restrictions
see MrSID

Referenced Image reader

Supports reading raster files with all java APIs available in jre (ImageIO[ext], JAI, ImageCodec...). There maybe duplicate readers here to offer the user the choice to figure out which one works best or at all with the image files at hand.

Georeferencing is done via world files, GeoTIFF information or GDAL reader if installed like described below.

GDAL support (Windows, Linux only)

Additionally reads ECW, JPEG2000, MRSID and lots of more formats on Windows, Linux only provided

Note: GDAL reader has the widest support for different tiff/GeoTIFF variants. If other drivers fail, try with GDAL. Typical example is images which are compressed with "deflate" method. GDAL can also utilise overviews (subsampled versions of the images, pyramid layers) if they exist which can make browsing much faster in small scales.

Sextante Raster framework

Load an image/raster using the function File>Open...>. Select in the left window the "Sextante Raster Image" option.

Current image formats: ASC FLT GIF JPG PNG TIF

OpenJUMPs PLUS edition contains the Sextante Toolbox. That toolbox contains lots of raster processing and analysis functions.

Save Raster Files

OpenJUMP can save a project view to raster files. To save the view to Raster file choose File>Save View as Image...

Currently only PNG and JPG are supported.

OpenJUMP can save to georeferenced file with world file. To save to georeferenced file make sure that the option Write World File is enabled. The Fence function in the Save as Image window allows to save as Image the part of project within a fence.


OPenJUMP can export Sextante Image Layers to some grid (ASC FLT TIF) and image file format (GIF JPG PNG TIF).

Raster Transparency

Most readers respect the transparency that can be set in the layer properties context dialogue.

Georeference Raster

Tools>Warp>Affine transformation (with paramteres) tool works with JPG/PNG/GIF/TIF image loaded via ReferencedImage layer (Open layer>Layer)

RasterTools Extension[1] for OpenJUMP has a Georeferencing toolbar with some tools for simple affine transformations of Sextante Raster Layers. See general documention here[2] and about georeferencing with OpenJUMP and RasterTools here[3]

See also How to georeference rasters page for external softwares

Raster Reprojection

Currently OpenJUMP does not support reprojection of Raster files. You can use FWTools: a set of tools for Linux and Windowsto which can view/edit/save several raster and vector file formats. Based on GDAL and OGR libraries, it includes the viewer OpenEV that provides access to the files with a graphic interface (see also GDAL Raster Formats and OGR Vector Format. There is also a tool to reproject raster files

See also Working with FwTools and GeoTIFF files from fsdevelopers.com

Some usefull information about raster reprojection software can be found in Leszek Pawlowicz's post Reprojecting Raster Imagery I and Reprojecting Raster Imagery II - ERDAS Viewfinder

Some usefull software for local or national coordinate raster reprojection: Traspunto (Gauss-Boaga, datum Roma40 - UTM, datum ED50 - UTM, datum WGS84)

Raster Filters

RasterTools Extension[4] for OPenJUMP has a set of more common image filters on Sextante Raster layers

Image Plugin Enhancement, from Lenka Ferkova and Jan Kucharczyk, allows some filter operations on Image (edge, blur, inverse). User can define their own kernel filter.




back to New User Guide Index page