Reputation
1,789
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 12
Newest
 Revival
Impact
~55k people reached

  • 0 posts edited
  • 0 helpful flags
  • 17 votes cast
Feb
2
comment GDAL: *.nc rasters, opened as “netCDF/Network Common Data Format” under Linux and as “ HDF5/Hierarchical Data Format Release 5” under Windows
It's plugins, I believe they are loaded first. Maybe alphabetically?
Feb
2
comment GDAL: *.nc rasters, opened as “netCDF/Network Common Data Format” under Linux and as “ HDF5/Hierarchical Data Format Release 5” under Windows
Are the versions of GDAL different? And is one driver (netCDF probably) compiled as a plugin? netCDF 4 stores data as HDF5 internally, IIRC, and the projection info will differ. If netCDF is a plugin, it might not be tested before HDF5, which may cause the issue.
Jan
20
comment Access MEM data from GDAL?
That won't work the way you would like. The in memory dataset lives as long as the process (gdaldem) does, then is released. The GDAL VSI mechanism handles this, and if you were programming, you would be able to open the dataset using: ds = GDALOpen("/vsimem/path/to/mImg.tiff", GA_ReadOnly); or a similar command.
Jan
5
answered List of GDAL raster file extensions
Nov
22
awarded  Revival
Nov
4
answered Reading GRIB band metadata with GDAL
Oct
27
comment GDAL in C++: Resize Image (gdal_warp?)
RasterIO now can handle many resampling methods. If you have 2.x, then you can use it: gdal.org/…
Oct
27
comment How to rasterize a point layer with multiple features falling inside a raster cell?
Try setting the rasterize option MERGE_ALG=ADD.
Oct
15
answered OGR update using case statement
Oct
13
comment Create shapefile of raster outline using python
gdal_polyginize.py is similar, you could look there. Docs: gdal.org/gdal_polygonize.html. That and clamping your valid values to 1 would give you a 'mask'
Oct
13
comment Is there a way to get only a single output from GDALinfo?
Windows builds can be found at gisinternals.com/sdk. Linux you probably have to compile.
Oct
12
comment Is there a way to get only a single output from GDALinfo?
The development version has json output from gdalinfo, which would (possibly) be easier to parse.
Oct
12
comment GDAL SetGeoTransform does not work as expected
You are opening the dataset read only, and not checking the error returned by ds.SetGeotranform(). Either open in update mode or open it and create a copy.
Oct
5
comment Wind speed data interpolation
WindNinja uses less than full fluid dynamics (conservation of mass), but it is freely available. The only required data is a DEM file. firelab.org/windninja
Sep
29
answered how do i create OGRSpatialReference from raster file's georeference C++
Sep
20
awarded  Yearling
Aug
20
comment GPS Track Editor to crop tracks with select by clicking start and end points
If you have the start and stop times for the segments, you can do this without any manual editing. You won't have any overlap either (if your times don't overlap). All you need is a CSV file with a trail identifier (name or number), the start time, and the end time. I can whip up an example if that is the case (using OGR tools).
Aug
20
comment GPS Track Editor to crop tracks with select by clicking start and end points
Do you have times, or feature ID's for the start stop points? If you need to visually select those, automation isn't easy.
Aug
6
comment How do I run gdalwarp on a number of csv of coordinates?
gdaltransform comes with gdal, and uses gdal style spatial references: kyle@kyle-bsu-workstation:~/Desktop/tmp$ gdaltransform --help Usage: gdaltransform [--help-general] [-i] [-s_srs srs_def] [-t_srs srs_def] [-to "NAME=VALUE"] [-order n] [-tps] [-rpc] [-geoloc] [-gcp pixel line easting northing [elevation]]* [-output_xy] [srcfile [dstfile]]
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.