Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Version 2.7 of the Python programming language
1
vote
1
answer
2k
views
Unexpected output when using gdal_rasterize?
I used the following code for converting my layer into raster format but I get a tif file that is completely black or white...
from osgeo import gdal, ogr
# Define pixel_size and NoData value of ne …
1
vote
1
answer
762
views
Running QGIS through Python
I need to build an app to analyze some raster layers in QGIS.
I thought it was possible to just write code in python (2.7.6) (IDLE) and let it automatically open QGIS, load some layers, do a distance …
3
votes
1
answer
13k
views
AttributeError: 'module' object has no attribute 'Open'
I am running the following code which I found on: GDAL - Perform Simple Least Cost Path Analysis which I adapted to my case, but I get the following error when running the code in the python console o …