Global Mapper v25.0

EXPORT_RASTER FILL_GAPS=YES Not Working?

mprenter
mprenter Global Mapper UserTrusted User
edited February 2013 in Bug Report
Hi, I have written a script which loads images, reprojects them to a custom projection, and then writes out a new image with new Global Bounds and it seems that the FILL_GAPS=YES option doesn't seem to be working. Near each of the four corners of the output image I will get a single white pixel (background color). It appears that this pixel falls right at the join of input image tiles. I thought FILL_GAPS=YES would take care of this?

I have also tried changing the import and export SAMPLING_METHOD to BICUBIC thinking maybe that would get rid of the white pixel but that didn't work.

Could FILL_GAPS be broken?

Thanks,
Mark Prenter

Comments

  • global_mapper
    global_mapper Administrator
    edited February 2013
    Mark,

    Which version of Global Mapper are you using? Can you provide the full script so I can take a look at it? I would expect FILL_GAPS=YES to take care of something like that unless the gap is too large to be filled. A single pixel should be plenty small enough though. If there was something that seemed to be a valid pixel there though then that would not get filled.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.bluemarblegeo.com/
  • mprenter
    mprenter Global Mapper User Trusted User
    edited February 2013
    Hi, version 14.1 64-bit.

    I've attached the first part of the script.

    Partial_Script.gms

    Thanks...


    Mark,

    Which version of Global Mapper are you using? Can you provide the full script so I can take a look at it? I would expect FILL_GAPS=YES to take care of something like that unless the gap is too large to be filled. A single pixel should be plenty small enough though. If there was something that seemed to be a valid pixel there though then that would not get filled.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.bluemarblegeo.com/
  • global_mapper
    global_mapper Administrator
    edited February 2013
    Hmmm that looks ok. Can you provide the data files so I can try it? Assuming they are large you can FTP them to ftp.globalmapper.com with a username of 'upload@globalmapper.com' and a password of 'upload'.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.bluemarblegeo.com/
  • mprenter
    mprenter Global Mapper User Trusted User
    edited February 2013
    Hello, I put the source imagery for 1 output tile on your FTP site.

    Thanks,
    Mark
    Hmmm that looks ok. Can you provide the data files so I can try it? Assuming they are large you can FTP them to ftp.globalmapper.com with a username of 'upload@globalmapper.com' and a password of 'upload'.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.bluemarblegeo.com/
  • global_mapper
    global_mapper Administrator
    edited February 2013
    Mark,

    Aha, I see exactly the issue now. The FILL_GAPS=YES option doesn't work for multi-band exports, only traditional RGB and palette exports. There isn't any support for inter-layer blending with the multi-spectral stuff. If you need all 4 bands, you could perhaps do one normal RGB export for the first 3 bands with the gaps filled, then another with the 4th band set to the default one, then load in those 2 results (which have gaps filled) and export them to a single new 4 band file.

    I have also added a warning when FILL_GAPS=YES is encountered with PALETTE=MULTIBAND so that the problem is obvious in the future.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.bluemarblegeo.com/
  • mprenter
    mprenter Global Mapper User Trusted User
    edited February 2013
    Thanks. Any possibility of having this added to future versions?

    Mark

    Mark,

    Aha, I see exactly the issue now. The FILL_GAPS=YES option doesn't work for multi-band exports, only traditional RGB and palette exports. There isn't any support for inter-layer blending with the multi-spectral stuff. If you need all 4 bands, you could perhaps do one normal RGB export for the first 3 bands with the gaps filled, then another with the 4th band set to the default one, then load in those 2 results (which have gaps filled) and export them to a single new 4 band file.

    I have also added a warning when FILL_GAPS=YES is encountered with PALETTE=MULTIBAND so that the problem is obvious in the future.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.bluemarblegeo.com/
  • global_mapper
    global_mapper Administrator
    edited February 2013
    Mark,

    I decided I could make FILL_GAPS=YES work for multi-band exports pretty easily, so I went ahead and added support for that. I have placed a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper14.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v14.xx installation folder to give it a try. If you are using the 64-bit v14 version there is a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper14_64bit.zip .

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.bluemarblegeo.com/