X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08 Feb 2017 02:59 AM by  anon
Metadata update
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
08 Feb 2017 02:59 AM
    Is it possible to update metadata of a raster file without exporting? I would like to change band names and save the raster without creating new file by ENVIRaster::Export. After using the ENVIRasterMetadata::UpdateItem I cannot just save the raster with ENVIRaster::Save It says: Raster is open for read. Please use Export Raster to save.

    Deleted User



    New Member


    Posts:59
    New Member


    --
    08 Feb 2017 07:39 AM
    Hi, you should be able to use the ENVIRasterMetadata::WriteMetadata method, which will save the metadata changes to the header file (.hdr) without requiring you to export the raster.

    Deleted User



    New Member


    Posts:
    New Member


    --
    08 Feb 2017 07:47 AM
    Thank you! It works. I didn't notice that it was written in the help article: ENVIRasterMetadata::UpdateItem
    You are not authorized to post a reply.