we already have 'commons-imaging-1.0-SNAPSHOT.jar' in the svn under lib/
and
in the maven build (from
http://repository.apache.org/snapshots).
simply include in your eclipse Build Path and you should be fine.
..ede
> 2013/8/26 Stefan Steiniger <
sst...@geo.uzh.ch <mailto:
sst...@geo.uzh.ch>>
>
> Actually,
>
> sorry for responding late (my weekends converted into family days + travel earlier). So, I did add Sanselan because
> (a) I could not find a binary to download for the apache image-io (I got asked for a password???)
> (b) It seemed to me that sanselan was newer (but also with low activity) than image-io.
>
> Mhm, so don't know what is best?
> But thanks ede, for taking care of.
>
> cheers,
> stefan
>
> Am 22.08.13 12:47, schrieb Giuseppe Aruta:
>
> Hi Ede,
> I see it. We can get read of the jar commons-sanselan lib used for the
> plugin.
> Stefan, What do you think about? (I am still fighting against
> subvesive/subversion/eclipse!)
> Peppe
>
>
> 2013/8/21 <
edgar....@web.de <mailto:
edgar....@web.de> <mailto:
edgar....@web.de <mailto:
edgar....@web.de>>>
>
> in that case, i'll leave it to you. be advised that there is now a
> lib/commons-imaging-1.0-__SNAPSHOT.jar part of OJ CORE builds.
>
> ..ede
>
> On 21.08.2013 15:54, Giuseppe Aruta wrote:
> > Hi Ede,
> > the issue was "Save Image to Raster" (which exports to TIF/TFW)
> tool of Sextante (Pirol) tools. Export to Tiff was not working as
> as OpenJDK has no support for Tiff.
> > Before August, Stefan and I worked on an external plugin that
> would have used commons lib to substitute that plugin. The code is
> on SVN
> (
http://sourceforge.net/p/__jump-pilot/code/HEAD/tree/__plug-ins/RasterLayerExport/ <
http://sourceforge.net/p/jump-pilot/code/HEAD/tree/plug-ins/RasterLayerExport/>)
> > thanks.
> >
> > wrt GeoTiff. that is expected. these loaders do not support
> tiling and/or geotags in the Tiff header.
> >
> > wrt [1] well it states that it does not support this kind of
> jpeg. try one of the other readers.
> >
> > wrt [2] ok, i have to catch the FileNotFoundExceptions. if
> there is no world file, we simply do not use one.
> >
> > ..ede
> >
> > On 21.08.2013 13:07, Agustin Diez-Castillo wrote:
> > > Edgar,
> > > I've tried with no this much of a success.
> > > Some jpg files are read by JAI and IO but not by commons.
> > > Geotiffs are mostly problematic
> > >
> > > [1] error
> > > /private/var/root/Documents/__aromaticas_octubre.jpg extract null
> > > /private/var/root/Documents/__aromaticas_octubre.jpg extract null
> > > org.apache.commons.imaging.__ImageReadException: Only
> sequential, baseline JPEGs are supported at the moment
> > > at
> org.apache.commons.imaging.__formats.jpeg.decoder.__JpegDecoder.visitSegment(__JpegDecoder.java:180)
> > > at
> org.apache.commons.imaging.__formats.jpeg.JpegUtils.__traverseJFIF(JpegUtils.java:__87)
> > > at
> org.apache.commons.imaging.__formats.jpeg.decoder.__JpegDecoder.decode(__JpegDecoder.java:428)
> > > at
> org.apache.commons.imaging.__formats.jpeg.JpegImageParser.__getBufferedImage(__JpegImageParser.java:95)
> > > at
> org.apache.commons.imaging.__Imaging.getBufferedImage(__Imaging.java:1369)
> > > at
> org.apache.commons.imaging.__Imaging.getBufferedImage(__Imaging.java:1263)
> > > at
> org.apache.commons.imaging.__Imaging.getBufferedImage(__Imaging.java:1232)
> > > at
> com.vividsolutions.jump.__workbench.imagery.graphic.__CommonsImage.initImage(__CommonsImage.java:104)
> > > at
> com.vividsolutions.jump.__workbench.imagery.graphic.__AbstractGraphicImage.__computeEnvelope(__AbstractGraphicImage.java:112)
> > > at
> com.vividsolutions.jump.__workbench.imagery.graphic.__AbstractGraphicImage.__getEnvelope(__AbstractGraphicImage.java:104)
> > > at
> com.vividsolutions.jump.__workbench.imagery.__ImageryLayerDataset.__createImage(__ImageryLayerDataset.java:80)
> > > at
> org.openjump.core.ui.io.file.__ReferencedImageFactoryFileLaye__rLoader.createFeature(__ReferencedImageFactoryFileLaye__rLoader.java:131)
> > > at
> org.openjump.core.ui.io.file.__ReferencedImageFactoryFileLaye__rLoader.open(__ReferencedImageFactoryFileLaye__rLoader.java:93)
> > > at
> org.openjump.core.ui.plugin.__file.open.OpenFileWizard.run(__OpenFileWizard.java:131)
> > > at
> org.openjump.core.ui.plugin.__file.OpenWizardPlugIn.run(__OpenWizardPlugIn.java:104)
> > > at
> com.vividsolutions.jump.__workbench.ui.task.__TaskMonitorManager$__TaskWrapper.run(__TaskMonitorManager.java:152)
> > > at java.lang.Thread.run(Thread.__java:722)
> > > java.lang.NullPointerException
> > > at
> com.vividsolutions.jump.__workbench.imagery.graphic.__AbstractGraphicImage.__computeEnvelope(__AbstractGraphicImage.java:115)
> > > at
> com.vividsolutions.jump.__workbench.imagery.graphic.__AbstractGraphicImage.__getEnvelope(__AbstractGraphicImage.java:104)
> > > at
> com.vividsolutions.jump.__workbench.imagery.__ImageryLayerDataset.__createImage(__ImageryLayerDataset.java:80)
> > > at
> org.openjump.core.ui.io.file.__ReferencedImageFactoryFileLaye__rLoader.createFeature(__ReferencedImageFactoryFileLaye__rLoader.java:131)
> > > at
> org.openjump.core.ui.io.file.__ReferencedImageFactoryFileLaye__rLoader.open(__ReferencedImageFactoryFileLaye__rLoader.java:93)
> > > at
> org.openjump.core.ui.plugin.__file.open.OpenFileWizard.run(__OpenFileWizard.java:131)
> > > at
> org.openjump.core.ui.plugin.__file.OpenWizardPlugIn.run(__OpenWizardPlugIn.java:104)
> > > at
> com.vividsolutions.jump.__workbench.ui.task.__TaskMonitorManager$__TaskWrapper.run(__TaskMonitorManager.java:152)
> > > at java.lang.Thread.run(Thread.__java:722)
> > > Done. Current committed
> memory:plugin.AbstractPlugIn.__executing = Executing339 MB
> > >
> > > [2] No error
> > >
> > > /private/var/root/Documents/__aromaticas_octubre.wld extract null
> > > java.io.FileNotFoundException:
> /private/var/root/Documents/__aromaticas_octubre.wld (No such file or
> directory)
> > > at java.io.FileInputStream.open(__Native Method)
> > > at java.io.FileInputStream.<init>__(FileInputStream.java:138)
> > > at java.io.FileInputStream.<init>__(FileInputStream.java:97)
> > > at
>
com.vividsolutions.jump.io <
http://com.vividsolutions.jump.io>.__CompressedFile.openFile(__CompressedFile.java:288)
> > > at
>
com.vividsolutions.jump.io <
http://com.vividsolutions.jump.io>.__CompressedFile.openFile(__CompressedFile.java:189)
> > > at
> com.vividsolutions.jump.__workbench.imagery.graphic.__WorldFile.create(WorldFile.__java:165)
> > > at
> com.vividsolutions.jump.__workbench.imagery.graphic.__AbstractGraphicImage.<init>(__AbstractGraphicImage.java:98)
> > > at
> com.vividsolutions.jump.__workbench.imagery.graphic.__JAIGraphicImage.<init>(__JAIGraphicImage.java:95)
> > > at
> com.vividsolutions.jump.__workbench.imagery.graphic.__JAIGraphicImageFactory.__createImage(__JAIGraphicImageFactory.java:__52)
> > > at
> com.vividsolutions.jump.__workbench.imagery.__ImageryLayerDataset.__createImage(__ImageryLayerDataset.java:77)
> > > at
> org.openjump.core.ui.io.file.__ReferencedImageFactoryFileLaye__rLoader.createFeature(__ReferencedImageFactoryFileLaye__rLoader.java:131)
> > > at
> org.openjump.core.ui.io.file.__ReferencedImageFactoryFileLaye__rLoader.open(__ReferencedImageFactoryFileLaye__rLoader.java:93)
> > > at
> org.openjump.core.ui.plugin.__file.open.OpenFileWizard.run(__OpenFileWizard.java:131)
> > > at
> org.openjump.core.ui.plugin.__file.OpenWizardPlugIn.run(__OpenWizardPlugIn.java:104)
> > > at
> com.vividsolutions.jump.__workbench.ui.task.__TaskMonitorManager$__TaskWrapper.run(__TaskMonitorManager.java:152)
> > > at java.lang.Thread.run(Thread.__java:722)
> > > /private/var/root/Documents/__aromaticas_octubre.jpg extract null
> > > JAIGI: init
> file:/private/var/root/__Documents/aromaticas_octubre.__jpg
> > > /private/var/root/Documents/__aromaticas_octubre.jpg extract null
> > > Done. Current committed
> memory:plugin.AbstractPlugIn.__executing = Executing250 MB
> <mailto:
edgar....@web.de <mailto:
edgar....@web.de>>> <mailto:
edgar....@web.de <mailto:
edgar....@web.de>
> <mailto:
edgar....@web.de <mailto:
edgar....@web.de>>>>__> wrote:
> > >
> > > to all interested,
> > >
> > > i just update OJ's image loader and came up with two
> more. idea is to be flexible and offer a wide range of formats or
> alternative loaders in case one simply does not want to open a
> specific file. the result is available form snapshots rev 3680 or later.
> > >
>
http://sourceforge.net/__projects/jump-pilot/files/__OpenJUMP_snapshots/ <
http://sourceforge.net/projects/jump-pilot/files/OpenJUMP_snapshots/>
> > > find the changelog entry below.
> > >
> > > please try out these changes and come back with results
> as i might have broken something, unintentionally ;). if you want to
> enforce a specific reader you can do so by selecting it from the
> dropdown list in the open dialog.
> > >
> > > btw. these readers support world files only for
> georeferencing use filenaming as described here
> > >
http://en.wikipedia.org/wiki/__World_file#The_filename <
http://en.wikipedia.org/wiki/World_file#The_filename>
>
http://commons.apache.org/__proper/commons-imaging/__formatsupport.html <
http://commons.apache.org/proper/commons-imaging/formatsupport.html>
> > >
> > >
> > > --
> > > -- You received this message because you are subscribed
> to the Google Groups openjump-users group. To post to this group,
> send email to openjump-users@googlegroups.__com <mailto:
openjum...@googlegroups.com>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>>>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>>>>. To unsubscribe from this
> group, send email to openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>__>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>
> <mailto:
openjump-users%__252Bunsubscribe@googlegroups.__com <mailto:
openjump-users%25252Bun...@googlegroups.com>>>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>
> <mailto:
openjump-users%__252Bunsubscribe@googlegroups.__com <mailto:
openjump-users%25252Bun...@googlegroups.com>>
> <mailto:
openjump-users%__252Bunsubscribe@googlegroups.__com <mailto:
openjump-users%25252Bun...@googlegroups.com>
> <mailto:
openjump-users%__25252Bunsubscribe@__
googlegroups.com <mailto:
openjump-users%2525252Bu...@googlegroups.com>>>>. For
> more options, visit this group at
>
https://groups.google.com/d/__forum/openjump-users?hl=en <
https://groups.google.com/d/forum/openjump-users?hl=en>
> > > ---
> > > You received this message because you are subscribed to
> the Google Groups "openjump-users" group.
> > > To unsubscribe from this group and stop receiving
> emails from it, send an email to
> openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>__>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>
> <mailto:
openjump-users%__252Bunsubscribe@googlegroups.__com <mailto:
openjump-users%25252Bun...@googlegroups.com>>>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>
> <mailto:
openjump-users%__252Bunsubscribe@googlegroups.__com <mailto:
openjump-users%25252Bun...@googlegroups.com>>
> <mailto:
openjump-users%__252Bunsubscribe@googlegroups.__com <mailto:
openjump-users%25252Bun...@googlegroups.com>
> <mailto:
openjump-users%__25252Bunsubscribe@__
googlegroups.com <mailto:
openjump-users%2525252Bu...@googlegroups.com>>>>.
> > > For more options, visit
>
https://groups.google.com/__groups/opt_out <
https://groups.google.com/groups/opt_out>.
> > >
> > >
> > > --
> > > -- You received this message because you are subscribed to
> the Google Groups openjump-users group. To post to this group, send
> email to openjump-users@googlegroups.__com <mailto:
openjum...@googlegroups.com>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>>>. To unsubscribe from this
> group, send email to openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>__>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>
> <mailto:
openjump-users%__252Bunsubscribe@googlegroups.__com <mailto:
openjump-users%25252Bun...@googlegroups.com>>>. For more
> options, visit this group at
>
https://groups.google.com/d/__forum/openjump-users?hl=en <
https://groups.google.com/d/forum/openjump-users?hl=en>
> > > ---
> > > You received this message because you are subscribed to the
> Google Groups "openjump-users" group.
> > > To unsubscribe from this group and stop receiving emails
> from it, send an email to
> openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>__>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>
> <mailto:
openjump-users%__252Bunsubscribe@googlegroups.__com <mailto:
openjump-users%25252Bun...@googlegroups.com>>>.
> > > For more options, visit
>
https://groups.google.com/__groups/opt_out <
https://groups.google.com/groups/opt_out>.
> >
> > --
> > -- You received this message because you are subscribed to
> the Google Groups openjump-users group. To post to this group, send
> email to openjump-users@googlegroups.__com <mailto:
openjum...@googlegroups.com>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>>>. To unsubscribe from this
> group, send email to openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>__>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>
> <mailto:
openjump-users%__252Bunsubscribe@googlegroups.__com <mailto:
openjump-users%25252Bun...@googlegroups.com>>>. For more
> options, visit this group at
>
https://groups.google.com/d/__forum/openjump-users?hl=en <
https://groups.google.com/d/forum/openjump-users?hl=en>
> > ---
> > You received this message because you are subscribed to the
> Google Groups "openjump-users" group.
> > To unsubscribe from this group and stop receiving emails from
> it, send an email to openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>__>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>
> <mailto:
openjump-users%__252Bunsubscribe@googlegroups.__com <mailto:
openjump-users%25252Bun...@googlegroups.com>>>.
> > For more options, visit
https://groups.google.com/__groups/opt_out <
https://groups.google.com/groups/opt_out>.
> >
> >
> > --
> > -- You received this message because you are subscribed to the Google Groups openjump-users group. To post to this group, send email toopenjump-users@googlegroups.__com <mailto:
toopenju...@googlegroups.com>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>>. To unsubscribe from this
> group, send email to openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>__>. For more
> options, visit this group at
>
https://groups.google.com/d/__forum/openjump-users?hl=en <
https://groups.google.com/d/forum/openjump-users?hl=en>
> > ---
> > You received this message because you are subscribed to the Google Groups "openjump-users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email toopenjump-users+unsubscribe@__
googlegroups.com <mailto:
toopenjump-users%2Bunsu...@googlegroups.com>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>__>.
> > For more options, visithttps://groups.google.__com/groups/opt_out <
http://groups.google.com/groups/opt_out>.
>
> --
> -- You received this message because you are subscribed to the
> Google Groups openjump-users group. To post to this group, send
> email to openjump-users@googlegroups.__com <mailto:
openjum...@googlegroups.com>
> <mailto:
openjump-users@__
googlegroups.com <mailto:
openjum...@googlegroups.com>>. To unsubscribe from this
> group, send email to openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>__>. For more
> options, visit this group at
>
https://groups.google.com/d/__forum/openjump-users?hl=en <
https://groups.google.com/d/forum/openjump-users?hl=en>
> ---
> You received this message because you are subscribed to the Google
> Groups "openjump-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>
> <mailto:
openjump-users%__2Buns...@googlegroups.com <mailto:
openjump-users%252Buns...@googlegroups.com>__>.
> For more options, visit
https://groups.google.com/__groups/opt_out <
https://groups.google.com/groups/opt_out>.
>
>
> --
> -- You received this message because you are subscribed to the Google
> Groups openjump-users group. To post to this group, send email to
> openjump-users@googlegroups.__com <mailto:
openjum...@googlegroups.com>. To unsubscribe from this group, send
> email to openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>. For more options,
> visit this group at
https://groups.google.com/d/__forum/openjump-users?hl=en <
https://groups.google.com/d/forum/openjump-users?hl=en>
> ---
> You received this message because you are subscribed to the Google
> Groups "openjump-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>.
> For more options, visit
https://groups.google.com/__groups/opt_out <
https://groups.google.com/groups/opt_out>.
>
>
> --
> -- You received this message because you are subscribed to the Google Groups openjump-users group. To post to this group, send email to openjump-users@googlegroups.__com <mailto:
openjum...@googlegroups.com>. To unsubscribe from this group, send email to openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>. For more options, visit this group at
https://groups.google.com/d/__forum/openjump-users?hl=en <
https://groups.google.com/d/forum/openjump-users?hl=en>
> --- You received this message because you are subscribed to the Google Groups "openjump-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to openjump-users+unsubscribe@__
googlegroups.com <mailto:
openjump-users%2Bunsu...@googlegroups.com>.
> For more options, visit
https://groups.google.com/__groups/opt_out <
https://groups.google.com/groups/opt_out>.
>
>
> --
> -- You received this message because you are subscribed to the Google Groups openjump-users group. To post to this group, send email to
openjum...@googlegroups.com. To unsubscribe from this group, send email to
openjump-user...@googlegroups.com. For more options, visit this group at
https://groups.google.com/d/forum/openjump-users?hl=en
> ---
> You received this message because you are subscribed to the Google Groups "openjump-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
openjump-user...@googlegroups.com.