Rasterize SF from commandline

Feel free to ask any question here
Post Reply
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Rasterize SF from commandline

Post by PablerasBCN »

HEllo,

I can´t figure out how to export to tiff PCV SF,

"for %%f in (G:\LIDAR\2021\Guipuzcoa\test\*.las) DO "C:\Program Files\CloudCompare\cloudcompare.exe" -SILENT -O -GLOBAL_SHIFT AUTO %%f -AUTO_SAVE OFF -C_EXPORT_FMT LAS -RASTERIZE SET_ACTIVE_SF 1 -GRID_STEP 0.5 -SF_PROJ MAX -EMPTY_FILL INTERP -SF_COLOR_SCALE Grey -OUTPUT_RASTER_Z
"

this is my .bat

plust it seems SF rasterization is broken, in manual and auto mode since no files are output. Workaround is to set autosave OFF, convert PCV to RGB ignoring existing colors and rasterize as RGB.

"for %%f in (G:\LIDAR\2021\Guipuzcoa\test\*.las) DO "C:\Program Files\CloudCompare\cloudcompare.exe" -SILENT -O -GLOBAL_SHIFT AUTO %%f -AUTO_SAVE OFF -C_EXPORT_FMT LAS -SET_ACTIVE_SF 11 -SF_COLOR_SCALE Grey_ColorScale.xml -SF_CONVERT_TO_RGB FALSE -RASTERIZE -GRID_STEP 0.5 -SF_PROJ MAX -EMPTY_FILL INTERP -OUTPUT_RASTER_RGB "

the only pain of the workaround, which would be the same in the .bat that fails is the need to create a physical color scale, Accesing built in color scales would be awesome, like just "Grey"
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Rasterize SF from commandline

Post by daniel »

I think the right option should be OUTPUT_RASTER_Z_AND_SF? (and there's no option 'OUTPUT_RASTER_SF' only in the command line mode for now)
Daniel, CloudCompare admin
Post Reply