Re: [gdal-dev] gdalwarper --formats inconsistent with -of flag?

2010-11-19 Thread Chaitanya kumar CH
Sam, I too noticed this problem. I'm not sure of the reason other than the error message. You can get this done in two steps. First use gdalwarp to change the image size to 256x256 using bilinear resampling into a GTiff format image. Then use gdal_translate it from GTiff to PNG. On Fri, Nov 19,

Re: [gdal-dev] gdalwarper --formats inconsistent with -of flag?

2010-11-19 Thread Jean-Claude Repetto
Le 19/11/2010 08:54, ariasg...@gmx.de a écrit : I have issues generating pngs out of gdalwarper. I did the following: $ gdalwarper.exe --formats One of the lines was: PNG (rwv): Portable Network Graphics So reading and writing png works! Yes, but not creating a PNG ! Formats that allow

[gdal-dev] Flattening in EPSG:3857

2010-11-19 Thread Jukka Rahkonen
Hi, Has EPSG changed again something with the Web Mercator projection? The EPSG report about EPSG:3857 shows that it is using a flattened WGS84 ellipsoid.

[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

[gdal-dev] GDALWarpOperation::WarpRegionToBuffer() doesn't write in my buffer

2010-11-19 Thread bosow
Hi, I am trying to write a program which is supposed to read geotif files, extract the values I need, then export them in a homemade format. As my geotif files are on several different UTM zones, I have to change projections so that all the files I open have the same projection as the main tile

[gdal-dev] gdalinfo, map unit DD and epsg:9108

2010-11-19 Thread yrrman yrrman
Hi everyone, I'm new to this list and would therefore like to say hello and thanks for gdal in the first place :-) I just came across a minor problem where I would like to ask for your advice - the Global Landcover set GLC2000 is available in grid format from [0]. Associated with it is the

[gdal-dev] Re: Gdal Warp in C#

2010-11-19 Thread MGabriel
Hi Tamas, I am trying to use AutoCreateWarpedVRT from C# and finding that the reprojection is not warped. Could you confirm whether your patch has been applied to gdal? I also couldn't find your C# example anywhere so assumed that it hasn't been added in yet. Thanks, Marcus. -- View this

RE: [gdal-dev] KernelFilteredSource and nodata

2010-11-19 Thread Boss, Ken (DNR)
Thanks very much Chaitanya, that was indeed my problem. I am using gdal_grid to create the image that I am filtering, and am setting nodata=255 as a parameter on the interpolation algorithm. I had expected that this would cause nodata areas to be written as 255, and that 255 would be marked

Re: [gdal-dev] gdalinfo, map unit DD and epsg:9108

2010-11-19 Thread Frank Warmerdam
yrrman yrrman wrote: the Global Landcover set GLC2000 is available in grid format from [0]. Associated with it is the .hdr file with the projection description [2]. Apparently the map units are in decimal degree. When I ask gdalinfo, I get the WKT description of the SRS, see [3] Everything's

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

Re: [gdal-dev] Flattening in EPSG:3857

2010-11-19 Thread Frank Warmerdam
Jukka Rahkonen wrote: Hi, Has EPSG changed again something with the Web Mercator projection? The EPSG report about EPSG:3857 shows that it is using a flattened WGS84 ellipsoid.

Re: [gdal-dev] converting shp to dgn

2010-11-19 Thread Frank Warmerdam
Travis Kirstine wrote: Is it possible to set DNG attributes using ogr2ogr and write values to the Text field for non point features. If this is not possible with ogr2ogr can it be done with the api (write values to the text field for polygon features). Travis, It is embarrassing how much the

[gdal-dev] Unable to load CIB datasets with GDAL

2010-11-19 Thread morabit
Hi All, In our project we are using GDAL 1.7.2 to load map data in various formats as CADRG, DTED, CIB, etc. All it's working fine but we have a big problem with the CIB format. For this type of datasets, the GDALOpen function fails with the following error message: 'For frameFileName, assert

Re: [gdal-dev] Unable to load CIB datasets with GDAL

2010-11-19 Thread Frank Warmerdam
morabit wrote: Hi All, In our project we are using GDAL 1.7.2 to load map data in various formats as CADRG, DTED, CIB, etc. All it's working fine but we have a big problem with the CIB format. For this type of datasets, the GDALOpen function fails with the following error message: 'For

[gdal-dev] gdal_merge and HFA band statistics

2010-11-19 Thread Matt Hanneman
Can anyone tell me why the option 'STATISTICS=YES' works when using gdal_translate to translate from TIF to HFA (Erdas Imagine), but will NOT work when using gdal_merge to stack multiple TIFs into HFA? I need ArcMap to read the statistics, but it doesnt seem that they are being written to the

Re: [gdal-dev] gdal_merge and HFA band statistics

2010-11-19 Thread Frank Warmerdam
Matt Hanneman wrote: Can anyone tell me why the option 'STATISTICS=YES' works when using gdal_translate to translate from TIF to HFA (Erdas Imagine), but will NOT work when using gdal_merge to stack multiple TIFs into HFA? I need ArcMap to read the statistics, but it doesnt seem that they

Re: [gdal-dev] Unable to load CIB datasets with GDAL

2010-11-19 Thread Ryan McKinley
Perhaps related... I have an .I24 file that fails to read in GDAL, but works OK in ArcCatalog 9.3 (in 10 it fails, since they now use GDAL!) Running a recent /trunk build, I get: $ ./gdalinfo.exe F:\...\rpf\file.i24 ERROR 1: Image header too small (called from line 606) ERROR 1: Image header too

[gdal-dev] gdawrap nodata value

2010-11-19 Thread Nikolaos Hatzopoulos
we have an image named evi.tif: Driver: GTiff/GeoTIFF Files: evi.tif evi.tif.aux.xml Size is 4800, 4800 Coordinate System is: PROJCS[unnamed, GEOGCS[Unknown datum based upon the custom spheroid, DATUM[Not_specified_based_on_custom_spheroid, SPHEROID[Custom

Re: [gdal-dev] gdawrap nodata value

2010-11-19 Thread Frank Warmerdam
Nikolaos Hatzopoulos wrote: we will try to convert the projection: gdalwarp -srcnodata -3000 -dstnodata -3000 -t_srs EPSG:4326 -r near evi.tif test.tif ... Band 1 Block=8434x1 Type=Int16, ColorInterp=Gray Min=-1958.000 Max=9866.000 Minimum=-1958.000, Maximum=9866.000, Mean=1838.460,