[gdal-dev] Problem with gdalwarp and resampling_method

Daniele Romagnoli daniele.romagnoli at geo-solutions.it
Fri Jan 14 10:15:34 EST 2011


Hi Jan,
There is a simple TYPO in your commands:

-s_src EPSG:25832 -t_src EPSG:31468

you should use:
-s_srs EPSG:25832 -t_srs EPSG:31468

Note the last char for the referencing options, is an "s" instead of a "c".
Then -s_srs instead of -s_src and -t_srs instead of -t_src :)

Hope this helps :)
Daniele




On Fri, Jan 14, 2011 at 4:04 PM, Jan Tappenbeck <tappenbeck at widemann.de>wrote:

>
>
>  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 :-)
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
-------------------------------------------------------
Ing. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584962313
fax:     +39 0584962313
mob:   +39 328 0559267


http://www.geo-solutions.it
http://geo-solutions.blogspot.com/

-------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110114/42b2ee65/attachment.html


More information about the gdal-dev mailing list