Opened 8 years ago

Closed 8 years ago

#1300 closed defect (invalid)

Rasql_Cannot encode random marray in JPEG2000

Reported by: Bang Pham Huu Owned by:
Priority: major Milestone: 10.0
Component: gdal driver Version: development
Keywords: Cc: Dimitar Misev
Complexity: Medium

Description

For this ticket http://rasdaman.org/ticket/1296
it can encode random marray in GTIFF

rasql -q 'select encode((marray i in [0:1,0:5,0:5] values 1f)[1,*:*,*:*], "GTIFF",
 "xmin=25.0;xmax=75.5;ymin=-40.5;ymax=75.5;crs=EPSG:4326")' --out file

but not JPEG2000

rasql -q 'select encode((marray i in [0:1,0:5,0:5] values 1f)[1,*:*,*:*], "JPEG2000", 
"xmin=25.0;xmax=75.5;ymin=-40.5;ymax=75.5;crs=EPSG:4326")' --out file

rasql: rasdaman query tool v1.0, rasdaman v9.2.1-g74d9400 -- generated on 23.02.2016 10:25:01.

opening database RASBASE at localhost:7001...ok

Executing retrieval query...rasdaman error 0: Exception:  ODMG General
aborting transaction...ok
rasql done.

However, it can encode JPEG2000 for existing coveragelike eobstest in test coverage.

rasql -q 'select encode((c) [1,*:*,*:*], "JPEG2000", 

"xmin=25.0;xmax=75.5;ymin=-40.5;ymax=75.5;crs=EPSG:4326") 

from eobstest AS c where oid(c)=1537' --out file

Change History (2)

comment:1 by Dimitar Misev, 8 years ago

Try with

rasql -q 'select encode((marray i in [0:1,0:5,0:5] values 1c)[1,*:*,*:*], "JPEG2000", "xmin=25.0;xmax=75.5;ymin=-40.5;ymax=75.5;crs=EPSG:4326")' --out file

For me it is geo-referenced. The 1f example doesn't seem to work with JPEG2000, gdal complains about float in JPEG2000.

comment:2 by Dimitar Misev, 8 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.