Hello, I am trying to get orthophoto and DSM generated and exported from CLI script, and it seems to be working, butI am encountering a problem where I want to set my own ortho pixel size (GSD) per project and it seems I am not able to do that via CLI. My goal is to set my own pixel size for different datasets when generating model and then ortho projection. It seems only option is .rsortho file but it is dataset/project bound and cannot be used universally for other datasets? How could I define different parameters for ortho projection in automation for various datasets?
Hello @JusZat95
Unfortunatelly there is no other way to set this as using the mentioned .rsortho file. It is right that it is not feasible for all projects.
This could be considered as a feature request.
You can set different parameters for ortho projection when using CLI. When using -exportOrthoProjection, you format it like -exportOrthoProjection (*path to file and name of it) (path to .xml).
Here is the correct utilization.
Path to the parameters file used to export an ortho photo.
“C:\ThisFolder\OrthoParamaters.xml”*
********OrthoParameters.xml
Configuration id=“{5E1D6301-318C-4865-9312-E6542A5E3AD0}”
entry key=“orthoProjectionType” value=“Top”/
entry key=“MvsOrthoCreateDtm” value=“true”/
entry key=“rrCoordinateSystemType” value=“epsg:4326 - GPS (WGS 84)”/
entry key=“rrCoordinateSystemInput” value=“1”/
entry key=“mvsRR_UseRelativeVals” value=“true”/
entry key=“rrDisplayCoordSystem” value=“0x1”/
entry key=“MvsDtmClasificationLayers” value=“-1”/
entry key=“orthoPixelSize” value=“0.03”/ ←——-THIS IS WHAT YOU WANT!——|
entry key=“orthoBackFaceColorType” value=“Fixed”/
entry key=“orthoBackfaceColor” value=“0x0”/
entry key=“orthoModelIsTextured” value=“1”/
entry key=“mvsRR_OffsetY” value=“0.0”/
entry key=“orthoColorType” value=“Aerial Mosaicing”/
entry key=“orthoBackfaceColorTransparency” value=“50”/
entry key=“rrCoordinateSystem” value=“+proj=longlat +datum=WGS84 +no_defs”/
entry key=“mvsRR_OffsetX” value=“0.0”/
entry key=“mvsRR_OffsetZ” value=“0.0”/
/Configuration
Path to where the ortho photo is going to be stored with the file’s name and format extension.
”C:ThisFolder\OrthoPhoto.tiff”
-exportOrthoProjection “C:\ThisFolder\OrthoPhoto.tiff” “C:\ThisFolder\OrthoParamaters.xml” ^
Mind you you can also export the orthoparameters.xml via the settings in the bottom left after rendering a model, then selecting 1D, then clicking export orthoprojection in the top menu. Fiddle with those setting in the bottom left, then click the really small arrow that prompts “export”. If you do that you will see a larger config outputted. You dont need to have all of it for it to work. Just alter what you need to change, delete what you dont care about. Anything left out will be automatically set by RealityScan.