How to run cmd prompt in the background and show progress bar
I am warping files using gdal. Since I have numerous files to warp how will I run the cmd in background and just have a progress bar to indicate the percentage in warping the files? Because when I...
View ArticleGDAL/PYTHON: Batch Process Project All Level 2 HDF Files Only(Filter) and...
I have downloaded numerous hdf files from an ftp site. Let’s say I already have 500 hdf files, 250 of them were level 1 hdf files and the rest were level 2. The level 1 format is:...
View ArticleUsing GDAL in python to stack Landsat bands
I am processing a large amount of landsat data. Landsat scenes ship as a collection of tiffs- one file for each spectral band, plus a bunch of masks. I need to stack some of the bands into a single...
View ArticleRemoving some bands or layers from a tiff using gdal
I have been working on a multiband raster image. It is a pix image. I need to just work on the 26 bands that are raster files and not the 4 bitmaps that are are also included in the pix image. I could...
View ArticleUsing GDAL's GetProjection information to make a coordinate conversion in pyproj
I’m opening a geoTIFF file in Python using gdal. Upon reading with the GetProjection() method, I find the following information...
View ArticleSQLite Driver available with R's rgdal:writeOGR?
Does anybody know how I can get OGR’s SQLite Driver to work with R’s rgdal package? When listing the drivers in R with the ogrDrivers() command the SQLITE driver is missing..
View ArticleSQLite Driver available with R's rgdal:writeOGR?
Does anybody know how I can get OGR’s SQLite Driver to work with R’s rgdal package? When listing the drivers in R with the ogrDrivers() command the SQLITE driver is missing..
View ArticlePython 2.6 Module for GDAL 1.9.2, ImportError
I work on an internal network(IE I cant get the latest 1.11 stuff) and have GDAL 1.9.2 setup on a Red Hat Linux Enterprise Server 6. My linux box has python 2.6.6 however the python binding I received...
View ArticleUsing GDAL's GetProjection information to make a coordinate conversion in pyproj
I’m opening a geoTIFF file in Python using gdal. Upon reading with the GetProjection() method, I find the following information...
View ArticleTools/Software for QA/QC of data
I currently have written a few custom scripts that run basic checks (null values, geocoding errors, fullness of metadata) using Arcpy(10.2 with almost all licenses) and gdal. I’m interested to know if...
View ArticleExport PostGIS line to AutoCAD with graphical direction information
Some time ago I managed to export from PostgreSQL to AutoCAD DXF format a line (LINESTRING) using ogr2ogr program with a PostgreSQL Query, and it works (I can visualise it by the QuantumGIS). Now I...
View ArticleStore result from gdallocationinfo as variable in python?
I’m trying to find the cell value at various locations in a set of rasters so I can count the number of real values (aka not ‘NoData’) that occur at all the locations within each raster. The various...
View ArticlePython Band.SetNoDataValue(), sets all bands at once
Can someone tell me what I am doing wrong? I want to set bands 1 and three to 255, and band 2 to 0. The code below only should only set band 2, but gdalinfo shows that all bands get set to 0. Ubuntu...
View Articleogr2ogr fileGDB translating points
I am converting data from spatialite to fileGDB (and reverse) for a project using QGIS and ArcGIS. When I convert using ogr2ogr (or QGIS) from spatialite to fileGDB, the points are translated slightly...
View ArticleSlanted raster along the line? Wind erosion model and windbreak effectivity
I’m working on wind erosion modelling and windbreak potential. Imagine windbreak, which has some values of optical porosity (in %) and this values determinates the effectivity of windbreak in specific...
View Articlegdalnumeric in python virtualenv
I’m having a problem importing gdalnumeric when working on virtualenvs. I’m getting the following error: from osgeo import gdalnumeric Traceback (most recent call last): File "<stdin>", line 1,...
View ArticleWhich algorithm does gdal_polygonize use?
I would like to know which algorithm (i.e. Sobel operator ) is used to extract the polygons in gdal_polygonizer. I searched here and here but could not find it. Any help would be appreciated.
View ArticleProjection of COSMO-EU?
I have data points of COSMO-EU data stored in WGS84 coordinates. Now I try to transform them into coordinate system where the points becomming arranged to a regular grid. Does anybody knows the Proj4-...
View ArticleHow to save changes in Feature-Geometry with GDAL/OGR and Python?...
I have a problem with my code: driver = ogr.GetDriverByName('ESRI Shapefile') dataSource = driver.Open('merge.shp', 0) if dataSource is None: print 'Could not open file' sys.exit(1) layer =...
View ArticleQGIS Problem with extract and warp modules in model builder
I have problems using the gdal modules extract and warp in the model builder. They run correctly when started without the modelbuilder, but when I integrate them in the modelbuilder they won’t work....
View Article