Is This Content Helpful?
We're glad to know this article was helpful.
Why does the compression quality value in Layer Properties differ from the value specified through the 'sderaster' command?
When using the 'sderaster' command with the import, insert, or update operations such as, 'sderaster -o import', the compression of the raster being generated can be specified as LZ77, JPEG, or JPEG 2000 (JP2) with the '-c' option. JPEG and JP2 can have the compression quality defined by the '-q' argument, but the quality value is defined differently for both. JPEG quality values can range from 0 to 100; whereas, JP2 can range from 0 to 255. The actual JP2 compression range is 1-255 for variable compression, and 0 for lossless compression.
When using an ArcGIS Desktop application to view the properties of a raster with JP2 compression that was created through the 'sderaster' command, the value specified for the compression quality will not match the value defined for the '-q' option. For example, consider a TIFF imported into SDE using JPEG2000 compression with a quality of 75:
C:\>sderaster -o import -l sample,raster -f c:\sample.tif -c JP2 -q 75...
<-q value>/255 * 100 = <Desktop value>