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

suzukisuzuki Global Mapper UserPosts: 6
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

Best Answer

  • bmg_bobbmg_bob Global Mapper Programmer Posts: 1,681
    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
    suzuki
Sign In or Register to comment.