Page 1 of 1

Rasterize on whole units

Posted: Wed Aug 31, 2022 9:26 pm
by tom44
Hi,

is there an option to Rasterize so that the coordinates are based/start on a whole unit. That way if i repeat the script a second time on a different dataset in the same area, the raster matches.

I use a script using "-RASTERIZE -GRID_STEP 0.05 -PROJ MAX -OUTPUT_CLOUD" which creates points every 5 cm but i'd like to have them started on a whole unit so that the X and Y are like:

1006.40,2243.30,10.37
1006.45,2243.30,10.39
1006.45,2243.35,10.38
1006.50,2243.35,10.38
etc...

instead of now startin somewhere randomly

1000.42,2243.74,10.37
1000.47,2243.74,10.39
1000.47,2243.79,10.38
1000.52,2243.79,10.38

I hope there is an option to have it based on a 'whole' unit?

Thanks,

Tom

Re: Rasterize on whole units

Posted: Thu Sep 01, 2022 9:39 pm
by daniel
Ah, there's an option with the GUI version to force the rasterize grid to start from integer coordinates (or to any coordinate). It's the 'Edit grid' button in the top left part of the Rasterize tool.

But sadly, this option is not available in the command line mode (someone would need to add the code to the command line interface of the Rasterize tool).

Re: Rasterize on whole units

Posted: Sat Sep 03, 2022 4:07 pm
by tom44
Thanks Daniel, i hope it can be included in the command line version.
For now i am helped by using the GUI version :)