how to import 16bits image and define as raster image ?
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=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
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
-
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
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website