Reputation
1,504
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 11
Newest
 Good Answer
Impact
~42k people reached

  • 0 posts edited
  • 0 helpful flags
  • 17 votes cast
Jul
21
comment Difference between gdalwarp and projectRaster
The two programs are creating different grids to warp onto. Even if the bilinear sampling was exactly the same, the points that are being interpolated are in different places, and you'd have different answers. The origins and the pixel sizes are different. You could set some flags in gdalwarp(-te, -tr, etc.) to try and reproduce the R version, and then compare the pixel values and see how different they are.
Jul
20
comment OGRFeature set Multiple fields
You need to create a feature definition that defines the schema. See the example at the bottom of this page: gdal.org/ogr_apitut.html
Jul
20
comment Difference between gdalwarp and projectRaster
What are you expecting? Do both options use the same proj.4?
Jul
17
comment Python problem using GDAL
All drivers in the library are registered with from osgeo import gdal No need to register anything, unless you've deregistered.
Jul
9
comment gdal java API returning different WKT from gdalinfo
Matt, is GDAL_DATA properly set in your Java environment?
Jun
3
revised Set up GDAL for C++ in RHEL
missing target in cmake code
Jun
3
comment ogr2ogr failing to open/convert GML
Don't put lib on your expat/xerces paths, it should want the prefix: ./configure --with-expat=/opt/expat
Apr
16
answered Set up GDAL for C++ in RHEL
Apr
15
comment Set up GDAL for C++ in RHEL
Joshua, see my reply on gdal-dev...
Feb
27
comment netCDF GDAL C# - time:unit?
Try: GDALDataset::GetMetadataItem("time#units")
Feb
18
comment GDAL in C++: Reading a ShapeFile
There is a reference to the 1.11.x API on the home page. The main page is a product of the development version. See: gdal.org/1.11/index.html for the 1.11 API
Jan
13
comment How to stop writeOGR from abbreviating Field Names when using “ESRI Shapefile” driver
Are there similar column names in the db/data structure? I couldn't replicate with ogr2ogr and a sqlite db with those names. If you can provide a sample I could look further, or perhaps the R bindings are causing issues.
Jan
6
comment GDALRasterizeGeometries doesn't burn correct Values
OGRGeometry->GetGeometryRef() returns an internal pointer to the geometry. When you destroy the feature, the geometry is invalid. I don't know if that is your issue, but I know it's a problem. Try copying the geometry, and pushing the copy on to the vector. I think OGR_G_Clone should suffice.
Dec
27
awarded  Good Answer
Dec
19
comment gdal_rasterize error: “attempt to create 0x0 dataset is illegal..”
Luke, ogr2ogr can reproject, -t_srs
Dec
19
comment Help with Python/GDAL documentation
Check the format specific docs: gdal.org/formats_list.html, or WMS specifically: gdal.org/frmt_wms.html
Dec
4
awarded  Revival
Dec
4
comment How to stop writeOGR from abbreviating Field Names when using “ESRI Shapefile” driver
Correct. dbf column name lengths are limited. Another format, for example sqlite/spatialite would not truncate the names (there are very large limits in sqlite, but many orders of magnitude above 10).
Dec
2
comment Read dted with gdal in c++
gdallocationinfo will work: gdal.org/gdallocationinfo.html you can use it and the -geo option to output xml, or read the code for the application.
Nov
20
comment GDAL virtual file system, how to create your own
It depends on what you are asking for and the driver. gdalinfo /vsicurl/... will download what the driver needs to display the info. If you pass -stats, it would have to donwload the image data.