12-19-2016 06:40 AM
Hi. I'd like to reproject a raster in Spatial Modeler from WGS84 ll to it's approprate UTM zone. Is there a way to define a required coordinate system based on a variable (in this case the number of the utm zone)?
01-17-2017 01:56 PM
This topic has been escalated to a service request with Hexagon Geospatial Support. The solution will be posted here when it is ready.
Hexagon Geospatial Support
01-18-2017 07:11 AM
Thanks to all. This worked:
"We need to create the following string using the Concatenate operator and use the same in the Authority port in the “Construct CRS ID” operator and finally connect the same to the output file.
Authority: EPRJ; Code: IMAGINE/Predefined/Coordinate Reference Systems/2D/Projected Coordinate Systems/EPSG Coordinate Systems/WGS 84 \/ UTM zone 16N (32616)"
Took a bit of jiggling to get the required string automatically once that was done it works a treat.
01-19-2017 05:02 AM
The final piece of the puzzle turned out to be using the From String operator to convert the String that had been constructed into an IMAGINE.CoordinateReferenceSystemID that would be recognised by the Define Processing Area operator in order to perform the reprojection.
This replaces the "Target CRS" port input in the Model shown in the thread Reproject in Spatial Modeler.