|
POST
|
Or, since this isn't ESRI data specific, you can use regular old os.walk.
... View more
09-24-2015
10:36 AM
|
0
|
0
|
1771
|
|
POST
|
I'm not sure I follow, but here's a starting point: Printing (put map on paper): ArcGIS Help (10.2, 10.2.1, and 10.2.2) Georeferencing (put scanned paper on map): ArcGIS Help (10.2, 10.2.1, and 10.2.2)
... View more
09-24-2015
10:11 AM
|
0
|
0
|
964
|
|
POST
|
Just make sure you know what you're getting into with these tools. Often overlooked, and applies to this situation: If the zone feature input has overlapping polygons, the zonal analysis will not be performed for each individual polygon. Since the feature input is converted to a raster, each location can only have one value. An alternative method is to process the zonal statistics iteratively for each of the polygon zones and collate the results. This opens a whole new can of worms, like using a Python SearchCursor to iterate through your polygons.
... View more
09-24-2015
09:51 AM
|
1
|
1
|
4941
|
|
POST
|
I think you're using the term "address" too... traditionally. Each w3w "address" is nothing more than a 3m x 3m (ish) 2d square. It doesn't apply to multistory buildings the way mailing addresses do. I can't imagine that this is intended to function as either mailing or navigational addresses. It's just an interesting way to describe a location, rather than attempting to memorize a lat/long coordinate pair. Actually, the resolution is such that you could use the w3w address as destination points for routing. For example, meet me at the door at "event.boom.text' not the door at "bright.cotton.props". The w3w API really only has two functions, w3w to lat/long and back again, so this is every bit as possible as routing using Google Maps, etc.
... View more
09-15-2015
04:14 PM
|
1
|
0
|
5833
|
|
POST
|
Are you sure that your data = 0? Try setting pHx10 = 0 before the if statement, and see if the script terminates. Otherwise, post your complete script, showing how you set pHx10. As for the else statement, you're not required to provide an else, at all, if you don't want to do something.
... View more
09-15-2015
02:22 PM
|
0
|
1
|
8053
|
|
POST
|
Do you need to decide whether to subtract or set the value based on the pixel position (different parts of the raster would be subtracted or set), or do you want to decide for the whole model (on one run you subtract all that meet a condition, and on the next you set all that meet a condition)? edit: it sounds like you want to apply your choice whether to subtract or set for the whole model. You can do this by adding a new variable (boolean or integer or some other flag) and nesting Con() statements: Con(newVariable = 1, Con(IsNull("%Mask_raster%"),"%Input_raster%", ("%Input_raster%" -float(%Double%))), Con(IsNull("%Mask_raster%"),"%Input_raster%", ("%Input_raster%" == float(%Double%)))) ...which translates to: if the value of newVariable = 1, do the subtract statement, else do the set statement. You could do this with a boolean checkbox, too.
... View more
09-15-2015
01:04 PM
|
2
|
1
|
3606
|
|
POST
|
You can use Python to do this: Can I place a line on a point using an attribute for the angle?
... View more
09-15-2015
12:20 PM
|
2
|
1
|
1040
|
|
POST
|
You've got your template and "other" shapefiles. In my example, my "other" shapefiles happened to have the word "Copy" in their file names. Do yours? The line fcs = arcpy.ListFeatureClasses('*Copy*') means find the feature classes with the word "Copy" in the file name. Do you have any such shapefiles?
... View more
09-14-2015
02:22 PM
|
0
|
1
|
1349
|
|
POST
|
Have you looked into using a submodel? I believe the example under "Advanced Use of Model Iterators" should point you in the right direction (i.e. run your iterator model, which feeds everything into a single variable for input into Merge in your main model). I'll just add that using iterators is really a clue that it may be time to take the plunge into Python, which makes iterating so much simpler.
... View more
09-14-2015
02:15 PM
|
1
|
1
|
1783
|
|
POST
|
Con is confusing, but hopefully this will help. Con(first, second, third) translates to: for each pixel, if the first thing is true, return the second thing. If the first thing is not true, return the third thing. I'm not sure I completely understand what you want to do, but if I'm right that you want to subtract a value (or raster) if it falls within a mask, and use the original value if not, then you should use an expression like: Con(IsNull("mask"), "original", ("original" - some number or raster)) This expression translates to: check each pixel. If it is not in the mask (i.e. is null), use the original raster value. If the pixel is in the mask, subtract some value (or raster) from the original raster. Of course, change "some value or raster", to a value or raster.
... View more
09-14-2015
01:54 PM
|
2
|
5
|
3606
|
|
POST
|
For me, it output new files to: C:\junk\new_fields\output_1.shp C:\junk\new_fields\output_2.shp C:\junk\new_fields\output_3.shp C:\junk\new_fields\output_4.shp C:\junk\new_fields\output_5.shp
... View more
09-14-2015
01:33 PM
|
0
|
3
|
10244
|
|
POST
|
The arguments for Clip are: Clip_analysis (in_features, clip_features, out_feature_class, {cluster_tolerance}) So, in_features is first, clip_features second, out_feature_class third. If you want to name your output feature class with a variable, you need to use it in the third position. arcpy.Clip_analysis('Wildfires', boundary, boundary + "_clip") # or something edit: setting something to "env" doesn't do anything, as far as I know. Well, actually it sets the thing that used to be the environment object (as imported) to a string equal to your specified path. If you intend to set the workspace environment, you need to call it env.workspace = "L:/OPP/Rangers/Central Office/GIS/Deidre GIS Reporting Files"
... View more
09-11-2015
11:35 AM
|
2
|
2
|
3176
|
|
POST
|
What exactly is the error? This seems to work for me with my own csv.
... View more
09-11-2015
11:17 AM
|
0
|
1
|
1937
|
|
POST
|
Consult the help page for the tool. At the bottom of each tool reference page, there is a code example. For Get Count, the example shows how to return the integer value: result = int(arcpy.GetCount_management(lyrfile).getOutput(0))
... View more
09-10-2015
01:35 PM
|
2
|
0
|
2468
|
|
POST
|
Just add a print Bld_list to figure out if the list is empty.
... View more
09-10-2015
10:18 AM
|
0
|
0
|
3132
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-25-2015 01:51 PM | |
| 1 | 08-30-2013 02:22 PM | |
| 1 | 04-12-2011 11:19 AM | |
| 1 | 09-17-2021 09:43 AM | |
| 1 | 04-04-2012 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-15-2023
12:11 AM
|