Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gdalogr]

Translator library for raster and vector geospatial data formats

1
vote
0answers
20 views

pyqgis: using gdalogr:rastercalculator not working

I have an Int16 - 16 bit GeoTiff and would like to do a simple calculation. Using the GUI in QGIS (raster calculator) it works without problems. The expression in the raster calculator is: ...
1
vote
0answers
33 views

Layer spatial reference system units EPSG::32633 [closed]

I polygonized a raster with the following code: from osgeo import gdal, ogr, osr gdal.UseExceptions() srs = osr.SpatialReference() srs.ImportFromEPSG(32633) ds = gdal.Open('H:/Threshold/...
1
vote
0answers
86 views

QGIS Script with gdalogr:convertformat

I want to save a KML point file with attributes and descriptions from a generic point vector layer, and I need to do this at the end of a processing chain inside QGIS graphical modeler. Ideally, I ...
2
votes
1answer
341 views

Set or change the geometry type of an empty point shapefile using Python with GDAL/OGR

I'm automatically creating a point shapefile from a postgreSQL point table (having a geometry field called "geo" defined as geo geometry(Point,4258)) for a spesific flatenr (%%a) using ogr2ogr --...
3
votes
1answer
151 views

“GDALGetActualBlockSize” error in QGIS while loading any GDAL/OGR related functions

I'm getting an error in QGIS 2.18.10 in openSuse Leap 42.2 which I have could not solve so far. When launching the program the following error message arises: "Unable to load GdalTools plugin. The ...
3
votes
1answer
1k views

Python GDAL/OGR apply WGS84 CRS to Polygon

I am trying to work out how to apply WGS84 to a POLYGON I am creating from a list of latitude and longitude coordinates. Without the correct coordinate system, I cannot calculate the area, my ...
1
vote
1answer
112 views

Calculating a field with a codeblock in gdal/ogr

I'm trying to calculate a field ('duplicates') to reflect the identical records, here's a part of the code: d = [] def isDuplicate(t): import string global d iD = 0 for item in d:...
2
votes
1answer
104 views

If keep resolution = False in gdalogr:cliprasterbymasklayer

What does it mean if i put keep_resolution = False in gdalogr:cliprasterbymasklayer? In the tool itself in QGIS I could choose then a resolution which I want to have for the output, but here via ...
3
votes
1answer
177 views

Python Geospatial development book error?

I am currently reading Python Geospatial Development by Erik Westra but I am stuck at the first hurdle where the book suggests that the easiest way to install gdal onto a windows machine is using ...
1
vote
0answers
120 views

Custome QGIS application with WPS and GDAL/OGR

I have basic question on how to start a project with QGIS. There are two kinds of users, and they are supposed to sign in (Login in) before they start using so that depending on the user type the QGIS ...
1
vote
1answer
244 views

Can rgdal use an external GDAL installation?

The README for rgdal contains the following text: file.show(system.file("README", package="rgdal")) For additional drivers, users of the CRAN Windows and CRAN OSX binaries can either convert to ...