warp without dem
This commit is contained in:
@@ -48,6 +48,10 @@ func L1AtoL2(in, out, meta, rpb, demtif string) error {
|
||||
cmd = exec.Command("gdalwarp", "-rpc", "-to", "RPC_DEM="+demtif, in, out)
|
||||
}
|
||||
|
||||
// gdalwarp -overwrite -t_srs EPSG:4326 -r average -of GTiff -rpc
|
||||
cmd = exec.Command("gdalwarp", "-overwrite", "-t_srs", "EPSG:4326", "-r", "average", "-of", "GTiff", "-rpc", in, out)
|
||||
log.Info("Running command: ", cmd.String())
|
||||
|
||||
dir := filepath.Dir(out)
|
||||
os.MkdirAll(dir, 0755)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user