Rasterize on whole units

Feel free to ask any question here
Post Reply
tom44
Posts: 2
Joined: Wed Aug 31, 2022 8:37 pm

Rasterize on whole units

Post 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
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Rasterize on whole units

Post 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).
Daniel, CloudCompare admin
tom44
Posts: 2
Joined: Wed Aug 31, 2022 8:37 pm

Re: Rasterize on whole units

Post 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 :)
Post Reply