A version of the Python programming language
1
vote
1answer
17 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 ...
2
votes
1answer
42 views
GDAL/Python: How do I get coordinate system name from SpatialReference?
In Python, using GDAL, I've extracted a raster's projection as a WKT string as follows:
wkt = dataset.GetProjection()
# wkt is ...
2
votes
1answer
53 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 ...
0
votes
1answer
17 views
Running a script with QgsFeature from within the console
I am trying to run a script from the QGis Python console (similar to: http://spatialgalaxy.net/2012/01/27/qgis-running-scripts-in-the-python-console/)
The line feat=QgsFeature() operates fine from ...
-1
votes
0answers
22 views
How to use sub queries while inserting record into db using cx_Oracle in python? [closed]
I need to add a symbol with the value of self.wrkArea variable like this
(select chr(182) from dual) || self.wrkArea || (select chr(182) from dual)
i.e. ¶workarea¶ will be the result. how to ...
2
votes
2answers
57 views
Help with Python and adding a grouplayer to arc, renaming it from a folder name, then adding layers to it from that folder
I am trying to use os.walk to go through a directory tree, pull out all the .shp files in it, create a grouplayer in the mxd, rename the grouplayer the folder name, then add the layers from that ...
1
vote
1answer
43 views
Make Table View with field_info Output
I am using Make Table View to copy data from one table to a table view object and in the process hide and/or rename some fields. When I output the data to a dbf it hides and/or renames the fields ...
0
votes
1answer
60 views
Dissolving shapefile python script not working, syntax help please
I do not understand why this simple script won't work. I can get it to dissolve in model builder but not from a script that I run from inside the map document. My output results are 4 polygons, just ...
2
votes
0answers
46 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
1answer
89 views
QGIS python location problem
It seems that MacPorts installs Python27 in /opt/local, but that MacPorts QGIS updates and uses the Apple Python27 in /Library. The result is that MacPorts additions to Python27 such as OpenCV don't ...
0
votes
0answers
64 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
3answers
34 views
Using Sort_Management for multiple tables
I like to convert tables (100+) living in access database to a geodatabase tables, sorting them and deleting unnecessary fields in each table at the same time. I figured I use the Sort_management ...
2
votes
1answer
130 views
Convex Quadrilateral Polygons subdivision in equal parts using Python / OGR
Consider an irregular polygon (P) which has four vertices.
I would like to subdivide P into smaller polygons as shown here http://i.stack.imgur.com/4SKhB.jpg
In the old days I was using ArcGIS 9.3 ...
4
votes
1answer
123 views
Personal shell launcher for PyQGIS
I have changed a shell launcher found at http://inasafe.linfiniti.com/html/id/developer-docs/platform_windows.html as to fit my wish: setting the system environment variables to be able to use PyQGIS ...