[gdal-dev] Problem with GDALWarp

2015-09-01 Thread user gdal
Dear Dr. Brad/all, Thanks for your kind and prompt reply. Below are my answers/clarifications. It may also be said that the program stops execution just after the 'operation->Initialize(WO)' step. Can someone help me solve this problem. On Wed, 19 Aug 2015 04:01:32 PM user gdal wrote: Dear

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-25 Thread Simon Richard Proud
...@mines-paris.org] Sendt: 24. januar 2014 16:17 Til: gdal-dev@lists.osgeo.org Cc: Simon Richard Proud; Sean Gillies Emne: Re: [gdal-dev] Problem calling gdalwarp from within python script Le vendredi 24 janvier 2014 21:46:50, Simon Richard Proud a écrit : Does anyone have any other ideas as to what

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-24 Thread Simon Richard Proud
Emne: Re: [gdal-dev] Problem calling gdalwarp from within python script On 1/20/14, 1:57 AM, Even Rouault wrote: Selon Simon Richard Proud s...@geo.ku.dk: Hi, Unfortunately that produces a file not found error with filename 65535. If I remove both arguments -srcnodata and 65535 then I go back

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-24 Thread Even Rouault
, Simon Fra: gdal-dev-boun...@lists.osgeo.org [gdal-dev-boun...@lists.osgeo.org] p#229; vegne af Sean Gillies [s...@mapbox.com] Sendt: 20. januar 2014 11:56 Til: gdal-dev@lists.osgeo.org Emne: Re: [gdal-dev] Problem calling gdalwarp from within python

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-20 Thread Even Rouault
: Kurt Schwehr [schw...@gmail.com] Sendt: 19. januar 2014 19:00 Til: Simon Richard Proud Cc: gdal-dev@lists.osgeo.org dev Emne: Re: [gdal-dev] Problem calling gdalwarp from within python script have not tested this, but I would guess something like this... ['gdalwarp','-q','-multi','-r

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-20 Thread Sean Gillies
On 1/20/14, 1:57 AM, Even Rouault wrote: Selon Simon Richard Proud s...@geo.ku.dk: Hi, Unfortunately that produces a file not found error with filename 65535. If I remove both arguments -srcnodata and 65535 then I go back to getting the usage guidelines. You need to separate also the

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-20 Thread Pietro Zambelli
On Sunday 19 Jan 2014 14:27:49 Simon Proud wrote: Hi, I wish to call gdalwarp from within a python script but I cannot get it to work. The command I wish to run is: gdalwarp -q -multi -r cubicspline -t_srs '+proj=geos +lon_0=0.0 +h=35785831' -te -5568748.2758 -5568748.4774 5568748.2758

[gdal-dev] Problem calling gdalwarp from within python script

2014-01-19 Thread Simon Proud
Hi, I wish to call gdalwarp from within a python script but I cannot get it to work. The command I wish to run is: gdalwarp -q -multi -r cubicspline -t_srs '+proj=geos +lon_0=0.0 +h=35785831' -te -5568748.2758 -5568748.4774 5568748.2758 5568748.2758 -tr 3000.40316582 3000.40316582 -srcnodata

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-19 Thread Kurt Schwehr
try subprocess.call([gdalwarp, -q, -multi, ... TEST2.tiff]) Each arg must be an element in the list. -kurt On Jan 19, 2014, at 2:27 PM, Simon Proud s...@geo.ku.dk wrote: Hi, I wish to call gdalwarp from within a python script but I cannot get it to work. The command I wish to run

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-19 Thread Simon Richard Proud
Cc: gdal-dev@lists.osgeo.org dev Emne: Re: [gdal-dev] Problem calling gdalwarp from within python script try subprocess.call([gdalwarp, -q, -multi, ... TEST2.tiff]) Each arg must be an element in the list. -kurt On Jan 19, 2014, at 2:27 PM, Simon Proud s...@geo.ku.dk wrote: Hi, I wish

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-19 Thread Kurt Schwehr
. /Simon Fra: Kurt Schwehr [schw...@gmail.com] Sendt: 19. januar 2014 17:47 Til: Simon Richard Proud Cc: gdal-dev@lists.osgeo.org dev Emne: Re: [gdal-dev] Problem calling gdalwarp from within python script try subprocess.call([gdalwarp, -q

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-19 Thread Simon Richard Proud
details - no luck with that either. /Simon Fra: Kurt Schwehr [schw...@gmail.com] Sendt: 19. januar 2014 18:05 Til: Simon Richard Proud Cc: gdal-dev@lists.osgeo.org dev Emne: Re: [gdal-dev] Problem calling gdalwarp from within python script ,-r cubicspline

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-19 Thread Kurt Schwehr
dev Emne: Re: [gdal-dev] Problem calling gdalwarp from within python script ,-r cubicspline, becomes -r, cubicspline, and so forth On Jan 19, 2014, at 3:00 PM, Simon Richard Proud s...@geo.ku.dk wrote: Hi, thanks for the reply. I tried changing the call

Re: [gdal-dev] Problem calling gdalwarp from within python script

2014-01-19 Thread Simon Richard Proud
: Simon Richard Proud Cc: gdal-dev@lists.osgeo.org dev Emne: Re: [gdal-dev] Problem calling gdalwarp from within python script have not tested this, but I would guess something like this... ['gdalwarp','-q','-multi','-r', 'cubicspline','-t_srs', '+proj=geos +lon_0=0.0 +h=35785831', '-te

Re: [gdal-dev] Problem with gdalwarp

2012-07-08 Thread Jeff Lake
I am attempting to crop a geo tiff that I reprojected .. But I keep getting the error I cannot make an image that is 0x0 gdalinfo of the geotif Driver: GTiff/GeoTIFF Files: na_regionals.tif Size is 13738, 9740 Coordinate System is: PROJCS[unnamed, GEOGCS[WGS 84, DATUM[unknown,

Re: [gdal-dev] Problem with gdalwarp

2012-07-08 Thread Smith, Michael ERDC-RDE-CRREL-NH
Jeff, The coordinates you are using with -te are not in the coordinate system of the image. From the docs -te xmin ymin xmax ymax:set georeferenced extents of output file to be created (in target SRS). Convert the lat/lon coordinates you are using to the srs of the image and then try it.

[gdal-dev] Problem with gdalwarp and resampling_method

2011-01-14 Thread Jan Tappenbeck
HI ! i will translate a tif-image between two systems and use following command gdalwarp -s_src EPSG:25832 -t_src EPSG:31468 D:\\Orthophotos\2616_5806_RGB.tif D:\\Orthophotos\2616_5806_RGB_GK.tif then i get following message... Usage: gdalwarp [--help-general] [--formats]

Re: [gdal-dev] Problem with gdalwarp and resampling_method

2011-01-14 Thread Daniele Romagnoli
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 :)

[gdal-dev] Problem using gdalwarp to reproject Lambert Conformal Conic (LCC) to longlat

2011-01-07 Thread James Hiebert
All, Below is a question/probelm from one of my co-workers (who doesn't (yet) want to subscribe to the list). ~James Hiebert From: Hailey Eckstrand hail...@uvic.ca Date: Fri, 7 Jan 2011 13:05:10 -0800 Hello all, I am trying to reproject a geotif using gdalwarp: gdalwarp -t_srs +proj=longlat

Re: [gdal-dev] Problem using gdalwarp to reproject Lambert Conformal Conic (LCC) to longlat

2011-01-07 Thread Frank Warmerdam
On 11-01-07 04:18 PM, James Hiebert wrote: All, Below is a question/probelm from one of my co-workers (who doesn't (yet) want to subscribe to the list). ~James Hiebert From: Hailey Eckstrandhail...@uvic.ca Date: Fri, 7 Jan 2011 13:05:10 -0800 Hello all, I am trying to reproject a geotif

Re: [gdal-dev] Problem using gdalwarp to reproject Lambert Conformal Conic (LCC) to longlat

2011-01-07 Thread Jean-Claude REPETTO
On 01/07/11 22:18, James Hiebert wrote: I am trying to reproject a geotif using gdalwarp: gdalwarp -t_srs +proj=longlat -s_srs +proj=lcc +lat_0=47.5 +lat_1=30.0 +y_0=320.0 +lat_2=60.0 +x_0=3825000.0 +lon_0=-97.0 +a=637 -r bilinear -srcnodata 1e20 -dstnodata 1e20 -tr 0.5 0.5 -te

Re: [gdal-dev] Problem using gdalwarp to reproject Lambert Conformal Conic (LCC) to longlat

2011-01-07 Thread James Hiebert
Thanks for the quick response. It was definitely the missing +b. It seems that proj will fill in the +b with the same value if +a is given. Adding +b to the s_srs flag did the trick. ~James On Fri, Jan 07, 2011 at 04:51:05PM -0500, Frank Warmerdam wrote: On 11-01-07 04:18 PM, James Hiebert

Re: [gdal-dev] problem with gdalwarp in 1.7

2010-11-21 Thread Chaitanya kumar CH
Seth, You can obtain the WKT of the geometries in a vector data source by using ogrinfo with the -al option. (http://www.gdal.org/ogrinfo.html) On Sun, Nov 21, 2010 at 6:20 PM, geographika geograph...@gmail.com wrote: On 19/11/2010 18:04, Frank Warmerdam wrote: geographika wrote: Hi, I

Re: [gdal-dev] problem with gdalwarp in 1.7 - SOLVED

2010-11-21 Thread geographika
Thanks to both Frank and Chaitanya this is now resolved. Adding in the coordinate system to my GeoJSON solved the issue in the latest versions of GDAL. Leaving this out did not produce errors using ogrinfo, but it did not display the feature as WKT until the CRS was added in. { type:

[gdal-dev] problem with gdalwarp in 1.7

2010-11-19 Thread geographika
Hi, I have upgraded from GDAL 1.6 (32bit Windows) to 1.7 (64 bit Windows) and the following command no longer works: C:\mapserver\bin\gdal\apps\gdalwarp C:\Data\Rasters\MiscSuit.tif C:\RasterClips\mytest.tif -cutline c:\RasterClips\hello.json -te 118008.672141 177232.164284 138695.761666

Re: [gdal-dev] problem with gdalwarp in 1.7

2010-11-19 Thread Frank Warmerdam
geographika wrote: Hi, I have upgraded from GDAL 1.6 (32bit Windows) to 1.7 (64 bit Windows) and the following command no longer works: C:\mapserver\bin\gdal\apps\gdalwarp C:\Data\Rasters\MiscSuit.tif C:\RasterClips\mytest.tif -cutline c:\RasterClips\hello.json -te 118008.672141