|
POST
|
Take this out of the loop. rasMean = arcpy.sa.CellStatistics(rasterList,"MEAN")
rasMean.save(os.path.join(outraster,"mean.tif"))
print rasMean Assemble the rasterList first, then calculate the mean
... View more
03-25-2017
03:59 AM
|
1
|
3
|
3237
|
|
POST
|
If you can read the code you can always copy it and write roll your own... As regards the formatting of the extent coords you could do something like this : ExtStr = "{:.0f},{:.0f},{:.0f},{:.0f}".format(XMin, YMin, XMax, YMax)
... View more
03-24-2017
05:06 AM
|
0
|
1
|
940
|
|
POST
|
Have you tried running this script in IDLE rather than PyScripter, but I don't think that should make any difference. Has someone else got this network fc open with ArcMap?
... View more
03-22-2017
09:59 AM
|
0
|
1
|
998
|
|
POST
|
You say : The points fall inside the various polygons throughout the map And Select all points that intersect the polygons that have a type code of 0, and export this selection of points to a new CSV So you are not doing a join here? No info from the polygons is joined to the points? So why not just create 4 layers in your map using definition queries, then use the export to excel tool? If you know nothing about scripting or python, this will be the simpler way.
... View more
03-22-2017
09:55 AM
|
0
|
1
|
4998
|
|
POST
|
This : arcpy.Copy_management (fc, "C:\EsriPress\Python\Data\Exercise06\newstudy.gdb" + fc) Probably need a "\" in the path between the ".gdb" and the fc. Like arcpy.Copy_management (fc, r"C:\EsriPress\Python\Data\Exercise06\newstudy.gdb\" + fc) Note the use of the "r" in front of this path. Python then does not try to "interpret" text, it is raw format. For example text like "\n" is a newline. Better still use os.path.join() to join paths and outputs.
... View more
03-22-2017
09:47 AM
|
0
|
0
|
1187
|
|
POST
|
Have you tried turning off background geoprocessing?
... View more
03-22-2017
09:41 AM
|
1
|
3
|
1239
|
|
BLOG
|
Darren, Have borrowed and been messing with your code to do the mst. Needed to modify it to include weighted edges to try and produce an optimal fibre network in a suburb. Not perfect yet, but thanks very much for this method.
... View more
03-22-2017
05:05 AM
|
0
|
0
|
1228
|
|
POST
|
You say shapefile. Have you tried using a Fc in a fgdb? Any funny path issues? No spaces or other strange characters. Is there anything wrong with the geometry, try repair geometry.
... View more
03-22-2017
04:47 AM
|
0
|
1
|
3091
|
|
BLOG
|
But i would think that the error is here : valueDict = {str(r[0]) + "," + str(r[1]) + "," + str(r[2]):(r[3:]) for r in arcpy.da.SearchCursor(sourceFC, sourceFieldsList)}
That doesn't look like it is going to form a dictionary inside the {}. Dictionaries are populated with key : value pairs. Hang on, looking at that again... But why not do this in 2 steps, use the OID as the key, put all the other data in a value list. Then calculate a new concatenated value.
... View more
03-21-2017
11:54 PM
|
0
|
0
|
32196
|
|
BLOG
|
Firstly, it would help if you format the code correctly so it is more readable. /blogs/dan_patterson/2016/08/14/script-formatting
... View more
03-21-2017
11:51 PM
|
0
|
0
|
32196
|
|
POST
|
"Is it possible to ignore a field while concatenating and still calculate a value in?" Well in python code, just about anything is possible. But a look at what you have so far, Arc version etc might help someone give more specific advice.
... View more
03-21-2017
11:47 PM
|
1
|
0
|
1891
|
|
POST
|
Make your features 3d aware first using Feature To 3D By Attribute—Help | ArcGIS Desktop
... View more
03-21-2017
11:41 PM
|
0
|
0
|
2804
|
|
POST
|
There are a lot of restrictions in the 30(?) year old shapefile format. One is the width of the column headers, which I think is 10 characters. Don't think that alias' are supported at all. ESRI Shapefile / DBF geotools - How to bypass 10 character limit of field name in ShapeFiles? - Geographic Information Systems Stack Exchange
... View more
03-21-2017
11:30 PM
|
1
|
0
|
1928
|
|
POST
|
In the screen shot of the linked thread, CELLSIZE = 0.0, which obviously can't be correct. As the data appears to be in GCS, getting the cellsize correct would be quite tricky.
... View more
03-21-2017
11:23 PM
|
0
|
0
|
2143
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-08-2015 11:28 PM | |
| 1 | 12-20-2013 08:59 PM | |
| 1 | 05-14-2014 10:38 PM | |
| 1 | 12-16-2013 09:05 PM | |
| 1 | 05-31-2019 02:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|