Skip to content

Commit

Permalink
ISIS2: remove write support
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 28, 2025
1 parent 7ae9cd1 commit c23827e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 514 deletions.
28 changes: 0 additions & 28 deletions autotest/gdrivers/isis2.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,3 @@ def test_isis2_1():
-1200.0000476837158,
)
tst.testOpen(check_prj=expected_prj, check_gt=expected_gt)


###############################################################################
# Test simple creation on disk.


def test_isis2_2():

tst = gdaltest.GDALTest("ISIS2", "byte.tif", 1, 4672)

tst.testCreate()


###############################################################################
# Test a different data type with some options.


def test_isis2_3():

tst = gdaltest.GDALTest(
"ISIS2",
"float32.tif",
1,
4672,
options=["LABELING_METHOD=DETACHED", "IMAGE_EXTENSION=qub"],
)

tst.testCreateCopy(vsimem=1)
33 changes: 1 addition & 32 deletions doc/source/drivers/raster/isis2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ISIS2 -- USGS Astrogeology ISIS Cube (Version 2)
.. built_in_by_default::

ISIS2 is a format used by the USGS Planetary Cartography group to store
and distribute planetary imagery data. GDAL provides read and write
and distribute planetary imagery data. GDAL provides read
access to ISIS2 formatted imagery data.

ISIS2 files often have the extension .cub, sometimes with an associated
Expand All @@ -28,41 +28,10 @@ ISIS2 is part of a family of related formats including PDS and ISIS3.
Driver capabilities
-------------------

.. supports_createcopy::

.. supports_create::

.. supports_georeferencing::

.. supports_virtualio::

Creation Issues
---------------

Currently the ISIS2 writer writes a very minimal header with only the
image structure information. No coordinate system, georeferencing or
other metadata is captured.

Creation Options
~~~~~~~~~~~~~~~~

|about-creation-options|
The following creation options are supported:

- .. co:: LABELING_METHOD
:choices: ATTACHED, DETACHED
:default: ATTACHED

Determines whether the header
labeling should be in the same file as the imagery (ATTACHED)
or in a separate file (DETACHED).

- .. co:: IMAGE_EXTENSION
:default: cub

Set the extension used for detached image files. Only used if
:co:`LABELING_METHOD=DETACHED`.

See Also
--------

Expand Down
Loading

0 comments on commit c23827e

Please sign in to comment.