[GRASS-user] r,in.gdal error when importing a jpeg2000 image

Hi Users,

Trying to import an 8.7gb (jpeg2000) image into Grass 7.4.1 64 bit. I get the error below. Tested the image in another OS GIS package and it opens without issue. Not sure why Grass wont import it.

Thanks everyone!

Paul Shapley

(Wed Jul 18 09:19:16 2018)
r.in.gdal -o input=J:\Spatial Data\Aerial\APGB_received_20180416\aerial_25cm.jp2 output=aerial_25cm_master memory=3000
Over-riding projection check
Importing 3 raster bands…
Importing raster map <aerial_25cm_master.red>…
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
Please note that the data are left in inconsistent state and may be corrupted
(Wed Jul 18 09:19:40 2018) Command aborted (24 sec)

···

Paul J. Shapley MSc CGeog (GIS) FRGS

Did you try running gdalinfo on your image? Does it work?

The GDAL raster format page [1] lists that JPEG2000 support is not compiled by default. So it could be that your gdal installation does not recognize this file

[1] http://www.gdal.org/formats_list.html

On Wed, Jul 18, 2018 at 5:33 AM Paul Shapley <p.shapley@gmail.com> wrote:

Hi Users,

Trying to import an 8.7gb (jpeg2000) image into Grass 7.4.1 64 bit. I get the error below. Tested the image in another OS GIS package and it opens without issue. Not sure why Grass wont import it.

Thanks everyone!

Paul Shapley

(Wed Jul 18 09:19:16 2018)
r.in.gdal -o input=J:\Spatial Data\Aerial\APGB_received_20180416\aerial_25cm.jp2 output=aerial_25cm_master memory=3000
Over-riding projection check
Importing 3 raster bands…
Importing raster map <aerial_25cm_master.red>…
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
Please note that the data are left in inconsistent state and may be corrupted
(Wed Jul 18 09:19:40 2018) Command aborted (24 sec)

Paul J. Shapley MSc CGeog (GIS) FRGS


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

* Paul Shapley <p.shapley@gmail.com> [2018-07-18 09:32:56 +0100]:

Hi Users,

Trying to import an 8.7gb (jpeg2000) image into Grass 7.4.1 64 bit. I get
the error below. Tested the image in another OS GIS package and it opens
without issue. Not sure why Grass wont import it.

Thanks everyone!

Paul Shapley

If it's a driver issue (like Daniel mentions in his post) and GDAL can
read it, do you really need to import it? You know that you can link to
it via r.external.

Nikos

[..]

On Wed, Jul 18, 2018 at 10:32 AM, Paul Shapley <p.shapley@gmail.com> wrote:

Hi Users,

Trying to import an 8.7gb (jpeg2000) image into Grass 7.4.1 64 bit. I get the error below. Tested the image in another OS GIS package and it opens without issue. Not sure why Grass wont import it.

The errors are coming from GDAL, not GRASS. The same error messages should appear with GDAL tools that read the entire image, e.g. gdal_translate.

Markus M

Thanks everyone!

Paul Shapley

(Wed Jul 18 09:19:16 2018)
r.in.gdal -o input=J:\Spatial Data\Aerial\APGB_received_20180416\aerial_25cm.jp2 output=aerial_25cm_master memory=3000
Over-riding projection check
Importing 3 raster bands…
Importing raster map <aerial_25cm_master.red>…
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed
ERROR 1: J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2, band 1:
IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block
offset 0
Please note that the data are left in inconsistent state and may be corrupted
(Wed Jul 18 09:19:40 2018) Command aborted (24 sec)


Paul J. Shapley MSc CGeog (GIS) FRGS


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Hi Nikos,

Would i be able to use the ‘i.segment’ module on subsets of the image if i use ‘r.external’ instead of importing? Can you point me to where the differences are between importing and linking?

Thank You,

Paul Shapley

···

On 18 July 2018 at 13:48, Nikos Alexandris <nik@nikosalexandris.net> wrote:

Hi Users,

Trying to import an 8.7gb (jpeg2000) image into Grass 7.4.1 64 bit. I get
the error below. Tested the image in another OS GIS package and it opens
without issue. Not sure why Grass wont import it.

Thanks everyone!

Paul Shapley

If it’s a driver issue (like Daniel mentions in his post) and GDAL can
read it, do you really need to import it? You know that you can link to
it via r.external.

Nikos

[…]

Paul J. Shapley MSc CGeog (GIS) FRGS

Can you point me to where the differences are between importing >and linkin

https://grass.osgeo.org/grass75/manuals/r.external.html

Anything missing in the manual?

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

On Wed, Jul 18, 2018 at 10:32 AM, Paul Shapley <p.shapley@gmail.com> wrote:

Hi Users,

Trying to import an 8.7gb (jpeg2000) image into Grass 7.4.1 64 bit. I get
the error below. Tested the image in another OS GIS package and it opens
without issue. Not sure why Grass wont import it.

Thanks everyone!

Paul Shapley

(Wed Jul 18 09:19:16 2018)
r.in.gdal -o input=J:\Spatial
Data\Aerial\APGB_received_20180416\aerial_25cm.jp2 output=aerial_25cm_master
memory=3000
Over-riding projection check
Importing 3 raster bands...
Importing raster map <aerial_25cm_master.red>...
ERROR 1: Marker is not compliant with its position
ERROR 1: opj_decode() failed

...

As posted by others, this is a problem of your GDAL installation.

Please check which of the several JP2000 drivers you actually use.
They quite differ in performance and compatibility.
Also: which GDAL version do you use?

Best
Markus (who frequently works with JP2 data)