<div><font><font face="courier new,monospace">Roland,<br clear="all"></font></font></div><div><font><font face="courier new,monospace">I believe gdal_grid takes an ogr file as input and creates a raster from a point layer. If you just want to resample a raster, try gdalwarp, without the warping:<br>
</font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">kyle@local$ gdalwarp -ts 118 188 -r cubicspline coarse.tif fine.tif <br></font></font></div>
<div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">where -ts is 'target size' and -r is resampling method. See gdalwarp documentation for info:<br>
</font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace"><a href="http://gdal.org/gdalwarp.html">http://gdal.org/gdalwarp.html</a><br></font></font></div>
<div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">also here is the gdal_grid info:<br></font></font></div><div><font><font face="courier new,monospace"><br>
</font></font></div><div><font><font face="courier new,monospace"><a href="http://gdal.org/gdal_grid.html">http://gdal.org/gdal_grid.html</a><br></font></font></div><br><font face="courier new,monospace"><font>/**<br> *<br>
* Kyle Shannon<br> * <a href="mailto:ksshannon@gmail.com" target="_blank">ksshannon@gmail.com</a><br> *<br> */</font></font><font><br></font><br>
<br><br><div class="gmail_quote">On Wed, Dec 21, 2011 at 04:13, RolandB <span dir="ltr"><<a href="mailto:rbaatz@gmail.com">rbaatz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear users,<br>
<br>
I want use gdal for some file transformation.<br>
Any help in solving the issue is greatly appreciated by me! It would<br>
be great if one of you have solved already this problem or knows how to do<br>
so.<br>
<br>
By gdal_rasterize I did create a Gtiff raster from a ESRI Polygon shapefile.<br>
This is successful. I have worked with the Gtiff successful later on with<br>
$user>: gdal_translate -of netCDF ./tmp/output.tif ./tmp/<a href="http://output2.nc" target="_blank">output2.nc</a><br>
Still some commands do not work. I'm looking forward for replies.<br>
<br>
<br>
Where is the GTiff driver in the list below???<br>
And what is the output layer of the Gtiff file? I tried "1", "Band1",<br>
"band". No file opening with any band.<br>
<br>
So here are the commands and the error messages:<br>
<br>
First:<br>
<br>
*$user>: * gdal_rasterize -a kennummer -init 0 -l Bk50_rur_wgs -te 5.93<br>
<a href="tel:50.39%206.74722" value="+15039674722">50.39 6.74722</a> 51.22886 -ts 59 94 -ot Int32 ./Input/bk50_rur_wgs.shp<br>
./tmp/output.tif<br>
0...10...20...30...40...50...60...70...80...90...100 - done.<br>
<br>
*$user>: *gdal_grid -a invdist:power=2.0:smoothing=1.0 -ot Int32 -txe<br>
50.39 51.22886 -tye 5.93 6.74722 -outsize 59 94 -l Band1<br>
./tmp/output.tif ./tmp/newout.tif<br>
Unable to open input datasource "./tmp/output.tif".<br>
<br>
*$user>:* "gdalinfo ./tmp/output.tif"<br>
<br>
Driver: GTiff/GeoTIFF<br>
Files: ./tmp/output.tif<br>
Size is 59, 94<br>
Coordinate System is:<br>
GEOGCS["WGS 84",<br>
DATUM["WGS_1984",<br>
SPHEROID["WGS 84",6378137,298.257223563,<br>
AUTHORITY["EPSG","7030"]],<br>
AUTHORITY["EPSG","6326"]],<br>
PRIMEM["Greenwich",0],<br>
UNIT["degree",0.0174532925199433],<br>
AUTHORITY["EPSG","4326"]]<br>
Origin = (5.930000000000000,51.228859999999997)<br>
Pixel Size = (0.013851186440678,-0.008924042553191)<br>
Metadata:<br>
AREA_OR_POINT=Area<br>
Image Structure Metadata:<br>
INTERLEAVE=BAND<br>
Corner Coordinates:<br>
Upper Left ( 5.9300000, 51.2288600)<br>
Lower Left ( 5.9300000, 50.3900000)<br>
Upper Right ( 6.7472200, 51.2288600)<br>
Lower Right ( 6.7472200, 50.3900000)<br>
Center ( 6.3386100, 50.8094300)<br>
Band 1 Block=59x34 Type=Int32, ColorInterp=Gray<br>
<br>
<br>
*$user>: *"ogrinfo ./tmp/output.tif"<br>
FAILURE:<br>
Unable to open datasource `./tmp/output.tif' with the following drivers.<br>
-> ESRI Shapefile<br>
-> MapInfo File<br>
-> UK .NTF<br>
-> SDTS<br>
-> TIGER<br>
-> S57<br>
-> DGN<br>
-> VRT<br>
-> REC<br>
-> Memory<br>
-> BNA<br>
-> CSV<br>
-> GML<br>
-> GPX<br>
-> KML<br>
-> GeoJSON<br>
-> GMT<br>
-> SQLite<br>
-> PostgreSQL<br>
-> PCIDSK<br>
-> XPlane<br>
-> AVCBin<br>
-> AVCE00<br>
-> DXF<br>
-> Geoconcept<br>
-> GeoRSS<br>
-> GPSTrackMaker<br>
-> VFK<br>
-> PGDump<br>
-> GPSBabel<br>
-> SUA<br>
-> OpenAir<br>
-> PDS<br>
-> WFS<br>
-> HTF<br>
-> AeronavFAA<br>
<br>
*$user>:* gdal_translate -of netCDF ./tmp/output.tif ./tmp/<a href="http://output2.nc" target="_blank">output2.nc</a><br>
Input file size is 59, 94<br>
<br>
(This last should be done with the interpolated file, which I did not<br>
manage so far.)<br>
<br>
Best regards,<br>
Roland<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/GDAL-interpolation-of-Gtiff-ESRI-polygon-shp-tp7114807p7114807.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/GDAL-interpolation-of-Gtiff-ESRI-polygon-shp-tp7114807p7114807.html</a><br>
Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</font></span></blockquote></div><br>