[gdal-dev] Problem with gdalwarp and resampling_method
Jan Tappenbeck
tappenbeck at widemann.de
Fri Jan 14 10:04:21 EST 2011
HI !
i will translate a tif-image between two systems and use following command
gdalwarp -s_src EPSG:25832 -t_src EPSG:31468
D:\XXXX\Orthophotos\2616_5806_RGB.tif
D:\XXXX\Orthophotos\2616_5806_RGB_GK.tif
then i get following message...
Usage: gdalwarp [--help-general] [--formats]
[-s_srs srs_def] [-t_srs srs_def] [-to "NAME=VALUE"]
[-order n] [-tps] [-rpc] [-geoloc] [-et err_threshold]
[-te xmin ymin xmax ymax] [-tr xres yres] [-ts width height]
[-wo "NAME=VALUE"] [-ot Byte/Int16/...] [-wt Byte/Int16]
[-srcnodata "value [value...]"] [-dstnodata "value [value...]"]
-dstalpha
[-r resampling_method] [-wm memory_in_mb] [-multi] [-q]
[-cutline datasource] [-cl layer] [-cwhere expression]
[-csql statement] [-cblend dist_in_pixels]
[-of format] [-co "NAME=VALUE"]*
srcfile* dstfile
Available resampling methods:
near (default), bilinear, cubic, cubicspline, lanczos.
when i modify the command to ....
gdalwarp -s_src EPSG:25832 -t_src EPSG:31468 -r near D:\XXXX\Orthophot ...
or
gdalwarp -s_src EPSG:25832 -t_src EPSG:31468 -r bilinear
D:\XXXX\Orthophot ...
or
gdalwarp -s_src EPSG:25832 -t_src EPSG:31468 -r cubic D:\XXXX\Orthophot ...
or
gdalwarp -s_src EPSG:25832 -t_src EPSG:31468 -r cubicspline
D:\XXXX\Orthophot ...
or
gdalwarp -s_src EPSG:25832 -t_src EPSG:31468 -r lanczos
D:\XXXX\Orthophot ...
it resonse the same message and nothing will happen!
the image-informations are...
C:\Program Files (x86)\FWTools2.4.7>gdalinfo D:\XXXX\Orthophotos\2616_5806_
RGB.tif
Driver: GTiff/GeoTIFF
Files: D:\Wolfsburg\Orthophotos\2616_5806_RGB.tif
D:\Wolfsburg\Orthophotos\2616_5806_RGB.tfw
Size is 10000, 10000
Coordinate System is `'
Origin = (616000.000000000000000,5807000.000000000000000)
Pixel Size = (0.100000000000000,-0.100000000000000)
Metadata:
TIFFTAG_SOFTWARE=IrfanView
TIFFTAG_XRESOLUTION=0
TIFFTAG_YRESOLUTION=0
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 616000.000, 5807000.000)
Lower Left ( 616000.000, 5806000.000)
Upper Right ( 617000.000, 5807000.000)
Lower Right ( 617000.000, 5806000.000)
Center ( 616500.000, 5806500.000)
Band 1 Block=10000x1 Type=Byte, ColorInterp=Red
Band 2 Block=10000x1 Type=Byte, ColorInterp=Green
Band 3 Block=10000x1 Type=Byte, ColorInterp=Blue
regards Jan :-)
More information about the gdal-dev
mailing list