Global Mapper v25.0

how to import 16bits image and define as raster image ?

suzuki
suzuki Global Mapper User
i have a 16bits image data (only one band)
how can i define the image as raster image, instead of  elevation data By using " Import script "
when i use the GM script to import it 
     no matter 
  IMPORT FILENAME="xxx.tif" ANTI_ALIAS=NO  TYPE=GEOTIFF
      or 
  IMPORT FILENAME="xxx.tif" ANTI_ALIAS=NO  TYPE=AUTO

it will auto assign the file to elevation data , not what i want "raster image data"  format
i hope to use the script " CONTRAST_STRETCH_SIZE " to contrast my image,
it only works with raster image format

thanks 

Best Regards

=====
when i open the image in global mapper, it shows the message as follow

Answers

  • bmg_bob
    bmg_bob Global Mapper Programmer
    Answer ✓
    Hello,

    You will need to use the LOAD_FLAGS parameter.  LOAD_FLAGS contains flags for any import options that you were prompted for when loading the file, such as if you have a .tif file that you were prompted to select as elevation or raster. To see how to set these if you are writing a script, load a file with the settings that you want in the main user interface and then save a workspace. Open the workspace file in a text editor and examine the IMPORT command for that file and see how the LOAD_FLAGS were set.

    Cheers,
    Bob