A version of the Python programming language
2
votes
1answer
55 views
Quick way to make a convex hull
I am using Python and ArcGIS 10.1.
Is there a function or very quick way to extract points out of point feature class into an array without looping through a search cursor (as I have millions of ...
1
vote
1answer
18 views
Where can I find a python GDAL 1.8.0 package?
I have python 2.7.4 installed on my RHEL 5 machine along with gdal-devel-1.8.0 and gdal-1.8.0. I tried to install the GDAL 1.9.1 package available on python's page ...
0
votes
1answer
16 views
UnboundLocalError: local variable referenced before assignment
I have following simple function to get percent values for different cover types from a raster. It gives me following error:
UnboundLocalError: local variable 'a' referenced before assignment
which ...
0
votes
1answer
37 views
gdalwarp cant find libproj.dlib
Thought I had finally got Python, gdal and QGIS to play nicely together but just tried to do a batch transform using a bash script to call gdalwarp and it claimed it couldn't read the libproj.dlib ...
3
votes
0answers
75 views
How do I write XML metadata with Python?
Some Python software I have written generates raster files via GDAL. I would like the software to create an XML metadata file for each raster so that I can include details about how the raster was ...
2
votes
0answers
48 views
Python Script that calls the Voronoi Polygons Function?
I've been looking to see if there was a way to call Voronoi Polygons function found in Vector/Geometry Tools, directly from the code but I have not found one. Does this currently exist? Is there a way ...
1
vote
0answers
73 views
How to draw nodes of a graph in Python and link them to a table?
I would like to draw some points with a Python GUI, like a graph, and link those points to a table.
1
vote
0answers
117 views
DLL problem with PyQGIS
I am having problems with Python Shell importing the module "qgis.core".
When I type "import qgis.core" the Shell ("idle.pyw") gives me this error:
Traceback (most recent call last):
File ...
1
vote
0answers
129 views
Mapnik: mapnik.has_pycairo() returns False. How to fix this on Windows for Python27?
I'm trying to modify rundemo.py (comes canned with Mapnik Windows binaries) to render output files at a higher resolution, but it seems I still have issues with my Mapnik-to-Cairo setup.
I've got ...
0
votes
0answers
72 views
ArcMap runs custom script once and then it crashes on second run
So I made a script that takes data from an MSSQL database and inserts it into a featureclass. I added the script to a toolbox and am able to run the tool from within ArcMap 10.1. The problem is that ...
0
votes
0answers
30 views
How do I get XYtools to work in OS X 10.8
This is the first question I have asked here so I hope I am not asking in the wrong place. I have an installation of qgis (1.8 lisboa) and I want to use the XYTools python plugin.
I have installed ...
0
votes
0answers
37 views
Use Overviews to Select Area of Interest in Very Large GIS Rasters/Images (e.g., GeoTiff's)
I am working with large images in Python and Gdal on a Windows machine and wondering if it is possible to directly access the specific smaller overviews I built into them using gdladdo. I am viewing ...
0
votes
0answers
33 views
QGIS Plugin delete QGSVertex from map canvas
i'm developing a qgis plugin and i need to add a function to delete previous drawn vertexes on map canvas.
On my dialog class, i can draw vertexes and when i draw one i'm also adding it to a list, so ...
0
votes
0answers
492 views
Use Python to change datasource from a feature class to a view built on the feature class
I'm trying to replace the datasource for all of the layers in my map document using Python but I keep running into an error. Right now, all of the layers point to a feature class called ...
