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

learn more… | top users | synonyms

0
votes
1answer
18 views

How to work with Multivalues in arcgis script?

I am really beginner in arcgis scripting. I was unable to find a solution of my problem, so I'm writing here. My problem: On my input I want some shapefiles. When I load them from ArcGis Tool, I ...
0
votes
1answer
14 views

Plugin QGIS Error “QTextEdit.setPlainText(QString): not enough arguments”

I try to make save as button but i got this error message when try to save file in my directory File "C:\Users\Mr.Pakde/.qgis2/python/plugins\condition\conditiondialog.py", line 80, in saveAs ...
2
votes
1answer
31 views

how can I get the field index of the new layer in my script using python?

I am trying to use "layer.changeAttributeValue(fid, fieldIndex, value)" to add values to a field Basically, I'm creating a plugin which will, if a checkbox is ticked, create a new field, then iterate ...
-1
votes
0answers
32 views

how to access pixel management arcgis 10 with python? [on hold]

ı need to python scripts first users shoud select any raster data when the scripts start (same arcgis add data button); secondly, ı want to access raster pixell value.Because ı want to make ...
2
votes
2answers
57 views

How to set all pixels with value <= 0 to “nodata” in DEM raster?

I have a DEM raster with pixel values between about 3000 and -0.0003. I need to set all pixel with a value of 0 and smaler (<=0) to "nodata" (for later raster calculations and to reduce the ...
5
votes
1answer
74 views

How to determine using Python whether ArcSDE table is registered with geodatabase?

In an effort to improve my Python skills, I am trying to build code to automate the Compress and Analyze commands for our SQL 2008 R2 SDE database (code below). The Compress code works as does the ...
0
votes
0answers
21 views

Capture the fields selected in the layer points

I need to grab the fields in the layer of the selected points in the order they were selected by the user. My code: Connection to the database and display the map on the screen, everything ok: uri ...
0
votes
0answers
18 views

Need advice on how to use Select Junction by Edge Count at pythot script?

Is There a way to use the tool Select Junction by Edge Count (selecting all junctions (points) in a geometric network by the number of edges to which they connect) at Python script ? or can i use ...
0
votes
1answer
32 views

Save input in plugin as pdf format file

I m trying to make QGIS plugin with plugin builder that compare 2 map scale with Input1 and Input2 as input scale and show recommendation after clicked recommendation button. I wrote my code like ...
3
votes
3answers
115 views
+50

Matching GPS tracks

I'm looking for a proper way to process multiple GPS tracks (so time ordered list of lat/lon points) and match/classify that segments, that are covered by multiple tracks: So it's not about ...
0
votes
2answers
45 views

Is there a maximum number of feature classes at File GDB?

Is there a maximum number of feature classes at File GDB ? I'm running a script that creates FC's, after around 1000 a get error of a schema lock ERROR 000210: Cannot create output.
1
vote
1answer
75 views

How to terminate Python scripts in Processing framework properly?

I'm writing a Python script to use it in Processing framework. I need to cancel script execution if certain conditions are met (to save user's time). I tried to use sys.exit(arguments) command. The ...
1
vote
2answers
49 views

Is there a function to select a region of a map for further processing with Python?

I would like to select a map's region in QGIS for further processing with python console. Ideally I would like to select the region with a mouse drag (like Gimp crop function) and then e.g. analyze ...
2
votes
2answers
66 views

How to create equidistant points in QGIS along a polygon?

I am looking for a solution to distribute with a python script equidistant points in QGIS along a polygon. I tried to use the following code example: ...
0
votes
1answer
18 views

Python . Select transparent colour or no colour for lines / points etc [closed]

How do I plot a line of transparent colour or no colour ? For example : plot(x,y,color='transparent') or plot(x,y,color='None') BTW , color='white' is not what I'm looking for . Thanks in ...

15 30 50 per page