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 |
Python is an open source interpreted programming language used in many GIS programs.
2
votes
1
answer
1k
views
python gdal_polygonize error
I am trying to use gdal_polygonize to create a polygon from a binary raster.
My code is:
os.system('gdal_polygonize.py ' + filename + ' -f ESRI Shapefile ' + shapefile)
where filename is a string …
1
vote
python gdal_polygonize error
The problem was that I didn't use quotation marks when specifying output format: "ESRI Shapefile"
4
votes
3
answers
181
views
Is there a workaround for GRASS i.maxlik 'class' being a keyword in Python?
I am running i.maxlik in python - attempting to automate a processing chain. … I use the command:
grass.run_command('i.maxlik', group= group, subgroup=subgroup, class='classification', sigfile = sigfile, verbose = True)
Infuriatingly, however 'class' is a python keyword and it …
4
votes
1
answer
2k
views
Raster algebra in Python with rasters of different extents
I am trying to find out how to use GDAL & numpy modules to average a set of rasters which are Sigma0 values from satellite passes at different times within a year.
Each raster has been mosaicked from …
11
votes
3
answers
3k
views
Histogram Matching using Python to improve mosaicking process of multiple overlapping rasters?
I am trying to do histogram matching using Python to improve the mosaicking process of multiple overlapping rasters. …
10
votes
3
answers
10k
views
Setting the extent for a QGIS map using python
I am writing a stand-alone application in Python/QGIS that simply creates maps.
I want to load vector/raster layers, set symbology, set extent
At the moment, that is all! …