|
POST
|
About adding table to display: There are several tabs at the top of the table of contents. The first one is 'List by Drawing Order', the next one is 'List by Source'. Click on 'List by Source' and you should see the table in the TOC.
... View more
06-01-2012
09:46 AM
|
0
|
0
|
1491
|
|
POST
|
Once your cursor is iterated over the first time, it becomes empty. So, even if you run the inner loop 5 or 10 times, it does not do anything. If you insert a print statement as the following code, you'll see that row values are not printed after the first iteraton. for i in range (296, 356,1):
print "Iteration", i
for row in cursor:
rotation = row.getValue("Angle")
print rotation Here, "Iteration n" will print 60 times but rotation will be printed only once (for the first iteration). That's why I wanted to know what is the purpose of the outer for loop. I'm sure you have something else there as per your need 🙂 I was just wondering what that could be.
... View more
05-31-2012
03:44 PM
|
0
|
0
|
3271
|
|
POST
|
If you want to run your algorithm from command line and want the user to interact in the middle of the algorithm then a Python GUI program is your only option. As Esri does not officially support any such GUI yet - this forum is the only option to get help 😞 On the other hand, if the user will interact with your script through some GUI then script tool framework is a good option. The Tool Validator class mechanism will allow you to fill up options dynamically based on what selection is made in other parameters. In case you want to explore the script tool mechanism, you can start here: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/A_quick_tour_of_creating_script_tools/001500000006000000/ This topic elaborates how to dynamically update parameter choices: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Customizing_script_tool_behavior/00150000000t000000/
... View more
05-31-2012
08:41 AM
|
1
|
0
|
6088
|
|
POST
|
Just a quick question about how using a spatial join with "closest" as the match option works. 'Closest' finds the nearest feature - it always returns only 1 feature. If more than one feature intersect a target feature then all have a distance of zero (thus nearest) to the target - in that case, one of them is selected randomly. Since ecoregions pass over country boundaries, I'd like to select the country code where most of the ecoregion falls In your case, 'closest' is not the option. I guess 'Intersect' will be the best option.
... View more
05-30-2012
07:40 PM
|
0
|
0
|
796
|
|
POST
|
I guess you do not need it now. Thanks for getting back. If you can provide me the data that would be great. We are still working on to improve the performance of proximity calculations.
... View more
05-30-2012
08:36 AM
|
0
|
0
|
1723
|
|
POST
|
If you are using ArcGIS 10.0, you can use Convert Coordinate Notation tool to use the table to get a point feature class. Make sure points belonging to a polygon have a common value (e.r., ORIG_FID). In the next step, use the output points as input to Minimum Bounding Geometry tool. Use LIST Group Option and select ORIG_FID from Group Field(s).
... View more
05-29-2012
08:45 AM
|
0
|
0
|
1030
|
|
POST
|
Thanks Harry. Your observation will help us improve both messaging and performance - I'll update the thread.
... View more
05-29-2012
08:34 AM
|
0
|
0
|
543
|
|
POST
|
Please email me at nahmed@esri.com - let's figure it out first and then we'll post the outcome to this thread. Please let me know what data/values you'll use and how.
... View more
05-28-2012
06:34 AM
|
0
|
0
|
1429
|
|
POST
|
Could you provide me with more information so that I can try to repro it locally? Are you using the Sort geoprocessing tool? If so, what type of geometry you are working? How many fields or what types of fields you are using? How big (number of features) is your data? We'll really appreciate your help in figuring out a repro case. Thanks.
... View more
05-25-2012
02:18 PM
|
0
|
0
|
543
|
|
POST
|
for i in range (296, 356,1):
for row in cursor:
rotation = row.getValue("Angle") Could you elaborate little more why you are using two for loops? Follow the screenshot to insert code block. Click on the hash symbol and paste your code within CODE tags copying them from a Python editor (such as IDLE). [ATTACH=CONFIG]14647[/ATTACH]
... View more
05-25-2012
08:35 AM
|
0
|
0
|
3271
|
|
POST
|
If you want your output to display while running your model as a tool, make the output a model parameter.
... View more
05-25-2012
08:20 AM
|
0
|
0
|
1491
|
|
POST
|
What I would like to achieve is create a simple form allowing the user to set some parameters using dropdown controls, textbox, checbox, etc. along with buttons. This form would then run my ArcPy script after user clicked "Run". Geoprocessing script tool framework is an excellent mechanism to do so. If you let me know what type of values (data) you want for your GUI controls (dropdown, textbox, checkbox & buttons) I can provide you links to help topics to get it done. Alternatively, you can email me at nahmed@esri.com - we'll post the summary once something is figured out. @Mathews: thanks a lot for the update. I'll give another try.
... View more
05-25-2012
08:16 AM
|
0
|
0
|
4659
|
|
POST
|
We will investigate the issue. It'll be great if you can share a small section of your data. Meanwhile, use Join Field to add the fields from points feature class back to the polygons.
... View more
05-24-2012
08:41 PM
|
0
|
0
|
653
|
|
POST
|
Your selection is on a layer, right? if so then use FIDSet as follows: dsc = arcpy.Describe("LayerName")
selection_set = dsc.FIDSet
if len(selection_set) == 0:
# no feature is selected
... View more
05-24-2012
08:43 AM
|
0
|
0
|
1023
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-18-2019 03:56 PM | |
| 1 | 05-06-2020 01:18 PM | |
| 1 | 07-23-2021 10:33 AM | |
| 1 | 07-28-2020 09:10 AM | |
| 2 | 07-27-2020 04:47 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-25-2021
03:13 PM
|