POST
|
Greg, thanks for asking. Yes, I did get a solution, with help from folks at ESRI. The solution I implemented in python was this: co = ['PHOTOMETRIC=MULTISPECTRAL', 'COMPRESS=LERC', 'LERC_PREC=0'] out_raster = gdal.Translate(out_path, in_raster, format="MRF", creationOptions=co) But, I never found a solution that works in Optimize Rasters. So, we are using a python program to perform conversion to mrf, instead of Optimize Rasters.
... View more
03-14-2022
08:10 AM
|
0
|
1
|
1614
|
POST
|
I found a post online that describes one possible solution to prevent ArcGIS Pro from interpreting the 4th band as alpha after conversion from tiff to mrf. See this web page: https://gis.stackexchange.com/questions/248240/nir-r-g-b-multiband-4-band-geotiff-gdal-translate-colorinterp-issues The offered solution is to use gdal_translate on the python command line with 'PHOTOMETRIC=RGB', AND 'ALPHA=NO' keywords. Unfortunately, this solution did not work for me. After consulting with ESRI, a second similar solution was found: gdal_translate.exe "C:\path\to\file.tif" "C:\path\to\file.mrf" -b 1 -b 2 -b 3 -b 4 -co PHOTOMETRIC=MULTISPECTRAL This solution did work for me and I was able to write a python script successfully implementing it. ESRI has since logged a bug for this issue in ArcGIS Pro.
... View more
02-14-2022
06:51 AM
|
0
|
0
|
1677
|
POST
|
Leo, I've encountered this before; in my case I had entered a parameter incorrectly (unfortunately I can't remember which parameter). Double-check all your input and output paths. Also, I see you have the Keep Extension parameter set to True. It may be that the configuration file you selected doesn't have an option to keep extensions and this is preventing Optimize Rasters from translating your data. If you can open the configuration file template with an xml editor/reader, you can scroll through the template to see if the Keep Extensions option is present. If so, change it to True and save it as a new template and give it a try. I've done this with other Optimize Rasters templates and it works fine. Good luck!
... View more
12-08-2021
03:09 PM
|
0
|
0
|
1735
|
POST
|
I'm using Optimize Rasters to convert 4-band (R,G,B,NIR) aerial photography tiffs to mrfs. When I view the resulting mrfs in ArcGIS Pro, the 4th band is being interpreted as an alpha band, rather than NIR. Has anyone else encountered this problem? Is there a way to prevent this behavior? I've tried entering gdal translate user parameters into Optimize Rasters to over-ride default color interpretation during conversion. Examples of some of the gdal translate parametes I've tried are: -colorinterp alpha -colorinterp red,green,blue,alpah -colorinterp_4 alpha -co PHOTOMETRIC=RGB -co COLORINTERP=ALPHA -co COLORINTERP_4=ALPHA Nothing seems to work. I know I can set the transparency for a raster through Symbology, but this isn't a feasible approach when I have many thousands of rasters to convert. Any advice is welcome.
... View more
10-26-2021
10:34 AM
|
0
|
4
|
3287
|
POST
|
How can I programmatically (using python/arcpy) add an Attribute Table function to a mosaic dataset? I can do this manually by opening the Properties of a mosaic dataset, clicking the Functions tab and inserting the Attribute Table function (a .dbf file), but I cannot find any info on how to use python to do this. I need the attribute table to properly symbolize thematic rasters in an image service. Any help is appreciated.
... View more
07-20-2020
09:26 AM
|
0
|
0
|
318
|
Online Status |
Offline
|
Date Last Visited |
03-14-2022
09:40 AM
|