warp without dem

This commit is contained in:
nuknal
2024-10-09 10:47:49 +08:00
parent 8266db9be0
commit cf137b6d2d
3 changed files with 867 additions and 804 deletions

View File

@@ -33,3 +33,6 @@ linux:
release:
docker run --rm -v .:/src -v /Users/lan/workspace/sjy01/build/go:/build/go nuknal/gdal38-cv49-builder sh -c "cd /src && make linux"
iau:
wget -O cmd/finals2000A.all https://maia.usno.navy.mil/ser7/finals2000A.all

File diff suppressed because it is too large Load Diff

View File

@@ -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)