Python is an open source interpreted programming language used in many GIS programs.

learn more… | top users | synonyms

0
votes
1answer
13 views

Error python calculation in field calculator

In a shapefile, I have Field named Elevation with a text field containing integer ranges stored as strings: 1 - 2 3 - 6 2 - 3 8.5 - 12 11 - 12 I need to categorize it using rule that if Elevation ...
-2
votes
1answer
15 views

QGIS converting to ASCII question

I am attempting to do some analysis on a raster file and I need to convert it to ASCII. In QGIS, I used [Raster -> Conversion -> Translate] with the asc file format, and I suspect it is simply ...
2
votes
0answers
19 views

Writing Stand Alone PyQGIS Script - QGIS 2.0

I have spent quite a bit of time looking for a clear answer this topic and have still been unable to really accomplish my goal of accessing PyQGIS in a stand alone script. Parts of answers have been ...
0
votes
0answers
16 views

ArcMap 10.2 SplitLineAtPoint setSplitRule not calculating RATIO

I am trying to set a length field to use the RATION split policy. I set the split policy for the feature layer but when I use the SplitLineAtPoint_management it does not calculate the RATIO length. ...
2
votes
0answers
15 views

python equivalent of spatstat's spatial point process functions

Is there a free python package (i.e. PySAL?) that implements the standard summary statistics for spatial point processes, e.g. the F, G, J, and K functions? I'm happy to use R (i.e. spatstat) if ...
0
votes
0answers
18 views

How to integrate osgeo4w to main python installation?

I'm not sure if I can do this but I would like to access methods from osgeo4w from my main python27 installation. How do I accomplish this or are you only able to import osgeo4w from the python ...
-1
votes
0answers
12 views

Automating fiona schema dataypes from python data sets [on hold]

0 down vote favorite OK this is a sort of strange question. Am using fiona (gis) which takes orderdict list as input for data and schema. The Schema tells fiona the name of variable and there type ...
-1
votes
0answers
27 views

ArcGIS 10.1 Python addin write to db [duplicate]

I have ArcGIS and am using the python addin wizard for arcGIS. I made a ArcGIS toolbar and one combo box. I also have one feature class with one field. How can I enter data into the combobox that will ...
0
votes
1answer
18 views

python tool parameter: what datatype to list unique values of field?

I'm attempting to convert a 9.3 arcobjects tool to a 10.2 python tool. The form needs to allow user input of a shapefile, a field, and then the user needs to enter numbers corresponding to unique ...
3
votes
2answers
46 views

Python, GDAL, VRT: help wth code efficiency and processing time

I'm going to attempt to make this question as succinct as possible while still including relevant information, as I have trouble with being concise and am trying to avoid writing unnecessary stuff. ...
0
votes
0answers
24 views

Invalid MXD filename in a python script

I have a script that prints and exports a batch of MXDs. It runs fine as long as the lenght of the path and mxd are shorter. I can't tell what the 'sweet spot' is, but I know it runs fine on my ...
0
votes
2answers
31 views

Can you change the processing extent in environment settings using python to a shapefile?

I have managed to do this manually at Geoprocessing>Environments>Processing Extent and setting the shapefile in the drop down bar. I was wonder if this could be automated with a python script? My ...
1
vote
2answers
42 views

Using python to get extent and split coordinates into list

I have the following code: for fc in fcs: desc = arcpy.Describe(fc) ext = desc.extent ext.split(" ") print ext I'm getting error: AttributeError: Point: Get attribute split does not ...
1
vote
0answers
13 views

header information is missing from image, after writing using opencv

I am doing complement of an image using open-cv python, while writing the image, open-cv is not writing the header information in the complemented image. my image data are in TIFF format. i am doing ...
0
votes
0answers
30 views

Categorized ranged data in field, using field calculator python [on hold]

Actually this is a Python in GIS, so I use table in my Arcgis and try to count the field and divided it by using category. I have Field named Elevation the data contain integer example : 1 - 2 3 - 6 ...

15 30 50 per page