Set File Projection

Feature Description

This tool is used to directly set the projection for a raster file without the need to project and export a new file. It currently supports setting projections for readable and writable *.tif, *.tiff, and *.img files from local file paths and S3 storage objects.

Parameter Description

Parameter Name Parameter Interpretation Parameter Type
Target File The path of the target file, which supports local file paths and S3 object storage addresses. String
Target Coordinate System The target coordinate system to be set. You can set it by selecting a coordinate system, copying the coordinate system from existing data, or importing a coordinate system. For detailed operations, please refer to the coordinate system description in the Raster Dataset Attribute Panel. PrjCoordSys
Write The Projection To The Plug-in File Determines whether to write the coordinate system information to a sidecar file. If checked, the coordinate system information is written to a .prj file with the same name as the target file. If unchecked, the coordinate system information is written directly into the file. For files opened using the Image Plugins (IMAGEPLUGINS), the coordinate system from the sidecar .prj file takes precedence. Boolean

Output Result

Parameter Name Parameter Interpretation Parameter Type
Connection Info The connection information for the file whose projection has been successfully set. You can use this connection information to open the file. String