Skip to content

importing jpeg 2000

3 messages · Michael Sumner, Fred909

#
A.K. thanks for your reply.

I found that message and installed the package but it didn't work:
Error in .local(.Object, ...) : 
  `3ba54d52.jp2' not recognised as a supported file format.

May be I overlooked something?



--
View this message in context: http://r.789695.n4.nabble.com/importing-jpeg-2000-tp4648242p4648264.html
Sent from the R help mailing list archive at Nabble.com.
#
Hello,
On Sat, Nov 3, 2012 at 6:27 AM, Fred909 <friedhelmv at gmail.com> wrote:
readGDAL will only work if you the rgdal package against an underlying
GDAL library that includes JPEG2000. The Windows binary on CRAN does
not.

In R rgdal is the only route I know of, but the steps to compile are
not trivial - it is probably easier in this sense on Linux, but I'd
say you better look outside of R for a conversion.

rgdal and JPEG2000 is usually discussed on R-Sig-Geo mailing list
since they are primarily used for spatial data.

If you are on Windows (you don't say) there is a way to access
JPEG2000 with OSGeo4W, but that is a topic for a different mailing
list.

Cheers, Mike.

  
    
#
Mike, thanks for your answer.

I thought GDAL is a library itself. You suggest underlying libraries. Do you
know where can I find them?
The other option: to convert the jpeg2000 files outside R: is it possible in
R to execute an extern program?

Btw I'm working with OSX Lion and still in the steep learning curve of R :)

Best Fred



--
View this message in context: http://r.789695.n4.nabble.com/importing-jpeg-2000-tp4648242p4648329.html
Sent from the R help mailing list archive at Nabble.com.