[gdal-dev] gdal_retile x64 : No input files selected.

2014-04-11 Thread Imran Rajjad
Hi list,

I am using GDAL 10.1 x64 with Python 2.7.5 x64

It seems python script is not able to find the input file

W:\gdal_retile.py -v -r -levels 4 -ps 2048 2048 -co TILED=YES -co
COMPRESS=JPEG -targetDir w:\dem\dem_pyramid w:\dem\dem.tif

2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

Usage: gdal_retile.py
[-v] [-co NAME=VALUE]* [-of out_format]
[-ps pixelWidth pixelHeight]
[-ot  {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
   CInt16/CInt32/CFloat32/CFloat64}]
[ -tileIndex tileIndexName [-tileIndexField fieldName]]
[ -csv fileName [-csvDelim delimiter]]
[-s_srs srs_def]  [-pyramidOnly] -levels numberoflevels
[-r {near/bilinear/cubic/cubicspline/lanczos}]
[-useDirForEachRow]
-targetDir TileDirectory input_files


Can somebody tell me what is wrong with the command

below is GDAL info of the geotiff file


---GDALINFO--

W:\gdalinfo dem\dem.tif
Driver: GTiff/GeoTIFF
Files: dem\dem.tif
   dem\dem.tif.aux.xml
Size is 30001, 24001
Coordinate System is:
GEOGCS[WGS 84,
DATUM[WGS_1984,
SPHEROID[WGS 84,6378137,298.257223563,
AUTHORITY[EPSG,7030]],
AUTHORITY[EPSG,6326]],
PRIMEM[Greenwich,0],
UNIT[degree,0.0174532925199433],
AUTHORITY[EPSG,4326]]
Origin = (59.99958323244,40.000416763514124)
Pixel Size = (0.0008333,-0.0008333)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  59.9995833,  40.0004168) ( 59d59'58.50E, 40d 0' 1.50N)
Lower Left  (  59.9995833,  19.9995834) ( 59d59'58.50E, 19d59'58.50N)
Upper Right (  85.0004167,  40.0004168) ( 85d 0' 1.50E, 40d 0' 1.50N)
Lower Right (  85.0004167,  19.9995834) ( 85d 0' 1.50E, 19d59'58.50N)
Center  (  72.500,  30.001) ( 72d30' 0.00E, 30d 0' 0.00N)
Band 1 Block=30001x1 Type=Int16, ColorInterp=Gray
  Description = Layer_1
  Min=-32768.000 Max=8469.000
  Minimum=-32768.000, Maximum=8469.000, Mean=-339.616, StdDev=7609.851
  NoData Value=0
  Metadata:
LAYER_TYPE=athematic

STATISTICS_HISTOBINVALUES=35892220|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|147192240|103498980|58861348|42041116
|24849760|20456436|19853444|32923904|23568064|14391364|11251344|9393020|9059076|
8846812|7765888|6834360|6443632|6328036|5700032|5445180|5022004|4646148|4389944|
4296656|024|4944940|5610800|6424704|8513544|9714796|11723868|13505128|117576
68|8901568|6243536|4127656|2605304|1385800|671944|286624|116272|41912|27716|1352
0|10816|5408|4056|2028|676|0|0|0|676|
STATISTICS_HISTOMAX=8469
STATISTICS_HISTOMIN=-32768
STATISTICS_HISTONUMBINS=256
STATISTICS_MAXIMUM=8469
STATISTICS_MEAN=-339.61644644564
STATISTICS_MEDIAN=414.8984375
STATISTICS_MINIMUM=-32768
STATISTICS_MODE=-68.34765625
STATISTICS_SKIPFACTORX=26
STATISTICS_SKIPFACTORY=26
STATISTICS_STDDEV=7609.8514119626



regards,
Imran
-- 
I.R
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] gdal_retile x64 : No input files selected.

2014-04-11 Thread Chaitanya kumar CH
Imran,

You need to specify the resampling algorithm if you use the -r option.
Choose from near, bilinear, cubic, cubicspline, lanczos.
'near' is used if you don't specify the -r option.



On Fri, Apr 11, 2014 at 12:45 PM, Imran Rajjad raj...@gmail.com wrote:

 Hi list,

 I am using GDAL 10.1 x64 with Python 2.7.5 x64

 It seems python script is not able to find the input file

 W:\gdal_retile.py -v -r -levels 4 -ps 2048 2048 -co TILED=YES -co
 COMPRESS=JPEG -targetDir w:\dem\dem_pyramid w:\dem\dem.tif

 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

 Usage: gdal_retile.py
 [-v] [-co NAME=VALUE]* [-of out_format]
 [-ps pixelWidth pixelHeight]
 [-ot  {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
CInt16/CInt32/CFloat32/CFloat64}]
 [ -tileIndex tileIndexName [-tileIndexField fieldName]]
 [ -csv fileName [-csvDelim delimiter]]
 [-s_srs srs_def]  [-pyramidOnly] -levels numberoflevels
 [-r {near/bilinear/cubic/cubicspline/lanczos}]
 [-useDirForEachRow]
 -targetDir TileDirectory input_files


 Can somebody tell me what is wrong with the command

 below is GDAL info of the geotiff file


 ---GDALINFO--

 W:\gdalinfo dem\dem.tif
 Driver: GTiff/GeoTIFF
 Files: dem\dem.tif
dem\dem.tif.aux.xml
 Size is 30001, 24001
 Coordinate System is:
 GEOGCS[WGS 84,
 DATUM[WGS_1984,
 SPHEROID[WGS 84,6378137,298.257223563,
 AUTHORITY[EPSG,7030]],
 AUTHORITY[EPSG,6326]],
 PRIMEM[Greenwich,0],
 UNIT[degree,0.0174532925199433],
 AUTHORITY[EPSG,4326]]
 Origin = (59.99958323244,40.000416763514124)
 Pixel Size = (0.0008333,-0.0008333)
 Metadata:
   AREA_OR_POINT=Area
 Image Structure Metadata:
   INTERLEAVE=BAND
 Corner Coordinates:
 Upper Left  (  59.9995833,  40.0004168) ( 59d59'58.50E, 40d 0' 1.50N)
 Lower Left  (  59.9995833,  19.9995834) ( 59d59'58.50E, 19d59'58.50N)
 Upper Right (  85.0004167,  40.0004168) ( 85d 0' 1.50E, 40d 0' 1.50N)
 Lower Right (  85.0004167,  19.9995834) ( 85d 0' 1.50E, 19d59'58.50N)
 Center  (  72.500,  30.001) ( 72d30' 0.00E, 30d 0' 0.00N)
 Band 1 Block=30001x1 Type=Int16, ColorInterp=Gray
   Description = Layer_1
   Min=-32768.000 Max=8469.000
   Minimum=-32768.000, Maximum=8469.000, Mean=-339.616, StdDev=7609.851
   NoData Value=0
   Metadata:
 LAYER_TYPE=athematic

 STATISTICS_HISTOBINVALUES=35892220|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0

 |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0

 |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0

 |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0

 |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0

 |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|147192240|103498980|58861348|42041116

 |24849760|20456436|19853444|32923904|23568064|14391364|11251344|9393020|9059076|

 8846812|7765888|6834360|6443632|6328036|5700032|5445180|5022004|4646148|4389944|

 4296656|024|4944940|5610800|6424704|8513544|9714796|11723868|13505128|117576

 68|8901568|6243536|4127656|2605304|1385800|671944|286624|116272|41912|27716|1352
 0|10816|5408|4056|2028|676|0|0|0|676|
 STATISTICS_HISTOMAX=8469
 STATISTICS_HISTOMIN=-32768
 STATISTICS_HISTONUMBINS=256
 STATISTICS_MAXIMUM=8469
 STATISTICS_MEAN=-339.61644644564
 STATISTICS_MEDIAN=414.8984375
 STATISTICS_MINIMUM=-32768
 STATISTICS_MODE=-68.34765625
 STATISTICS_SKIPFACTORX=26
 STATISTICS_SKIPFACTORY=26
 STATISTICS_STDDEV=7609.8514119626



 regards,
 Imran
 --
 I.R

 ___
 gdal-dev mailing list
 gdal-dev@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/gdal-dev




-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev