|
POST
|
See this help page that shows how to use Nibble to fill voids.
... View more
06-16-2016
02:41 PM
|
0
|
0
|
3548
|
|
POST
|
This is possible with DNRGPS (new version of DNR Garmin), but it's difficult if not impossible to run in batch mode. Also, you'd need to convert all of your easting/northing field names to x_proj/y_proj. It's just not set up well for this.
... View more
06-16-2016
10:01 AM
|
0
|
1
|
11737
|
|
POST
|
This can be done using Python to create new polygons using the square centroid and the square vertices. If you want to go that route, please post your started script and we can go from there.
... View more
06-16-2016
09:42 AM
|
0
|
4
|
2614
|
|
POST
|
If you want to stay fully within ArcMap, convert your CSV to a layer using Make XY Event Layer. Then, calculate lat/longs using Add Geometry Attributes, specifying WGS 1984 as the coordinate reference system. Both tools can be run using batch processing to loop through your files. edit: forgot to mention event layers are temporary layers. You will likely need to run Copy Features to save the file to disk at some point.
... View more
06-16-2016
09:40 AM
|
5
|
1
|
11737
|
|
POST
|
So, a file with a line like "3928736745959037239405843"? If there's a pattern, like number of characters per value, you could split it using something like Python, but there would be no way to split it like "39 287367 459 5 9 0 3723 9405843" because there is no pattern.
... View more
06-15-2016
01:19 PM
|
0
|
1
|
3265
|
|
POST
|
I think you can just Find/Replace "100" with " 100", at least for this example. Before: After:
... View more
06-15-2016
01:04 PM
|
1
|
3
|
3265
|
|
POST
|
Robert: yes, my code iterates through each vertex and pushes the points out until they are the most extreme case possible (or rather, first of most extreme points), on the extent rectangle. Whether or not you can shave some nanoseconds off with GP, I don't know.
... View more
06-15-2016
11:45 AM
|
0
|
0
|
2713
|
|
POST
|
Looking at the table, I don't think extent will do. For example, using the extent rectangle, how can you describe the "longitude of the Northernmost edge of site" (although I don't think "edge" is quite the right word)?
... View more
06-15-2016
10:14 AM
|
0
|
3
|
2713
|
|
POST
|
Here's how you can do it using Python: 1.) Add fields to polygon feature class (could also do in Python, if you want): 2.) Run script >>> fc = 'all_aoi' # change to your layer name or feature class path
... fields = ['SHAPE@','N_X','N_Y','E_X','E_Y','S_X','S_Y','W_X','W_Y'] # pay attention to order
... with arcpy.da.UpdateCursor(fc,fields) as cursor: # loop through polygons
... for row in cursor: # for each polygon
... N = arcpy.Point(0,float('-inf')) # dummy coordinates
... E = arcpy.Point(float('-inf'),0) # dummy coordinates
... S = arcpy.Point(0,float('inf')) # dummy coordinates
... W = arcpy.Point(float('inf'),0) # dummy coordinates
... for part in row[0]: # loop through polygon parts
... for pnt in part: # loop through vertices
... if pnt.Y > N.Y: # test coordinates
... N = pnt # remember coordinates if vertex is more extreme
... if pnt.X > E.X: # test coordinates
... E = pnt # remember coordinates if vertex is more extreme
... if pnt.Y < S.Y: # test coordinates
... S = pnt # remember coordinates if vertex is more extreme
... if pnt.X < W.X: # test coordinates
... W = pnt # remember coordinates if vertex is more extreme
... new_row = [row[0],N.X,N.Y,E.X,E.Y,S.X,S.Y,W.X,W.Y] # build new row data, same order as fields list
... cursor.updateRow(new_row) # write row
... View more
06-15-2016
10:06 AM
|
1
|
0
|
2713
|
|
POST
|
It's hard to know exactly how your data is supposed to get fixed, but for example, if your values of "-110" are supposed to get changed to "-1,010", you can do a simple Find/Replace in notepad.
... View more
06-15-2016
09:28 AM
|
0
|
11
|
3265
|
|
POST
|
arcpy lags fairly far behind actual ArcMap functionality (ESRI claims it's by design, "arcpy isn't meant to replace ArcObjects"). Even accessing layers only started at 10.1 through the mapping module, I believe. Anyhow, I think it depends how the toolbar was created. If it was created in ArcObjects, I don't believe there are any methods to touch it via Python. If it was created as a Python plug-in and you can find the script controlling the functionality, perhaps you can tap directly into that code. But, unless the toolset comes with instructions how to script its tools, I'd say you're fighting an uphill battle.
... View more
06-14-2016
03:12 PM
|
1
|
0
|
2510
|
|
POST
|
I'll just come out and say it, "no" (unfortunately). You can fairly easily make a script tool, though, in which your feature class or layer would be the only parameter. It's less work to fill in the parameter than to open the attribute table and copy/paste into the field calculator.
... View more
06-08-2016
02:28 PM
|
2
|
0
|
940
|
|
POST
|
Here's my immediate idea (whether or not it is technically appropriate, I'm not sure): 1.) Add three new fields (own, rent, mortgage) 2.) If ownership = Own, make the own field = 1, else 0. Same for the other two fields. 3.) Run your interpolation (IDW or other) separately for each situation 4.) Your interpolated rasters should be between 0 and 1 (those are the estimated percentage of each situation at each pixel) 5.) For display, multiply each of your rasters by 255. Then, run Composite bands using those rasters to make a new raster with red = own, green = rent, blue = mortgage. You should end up with something like this:
... View more
06-08-2016
02:08 PM
|
0
|
0
|
3238
|
|
POST
|
I'm not quite sure how your data are set up. Do you have 100 questionaire points within 5km^2 each describing its own ownership situation (ownership = true/false), or do you have 100 points, each describing the own/rent situation within the surrounding 5km^2 (e.g. 25% rent, 75% own)?
... View more
06-08-2016
01:36 PM
|
0
|
3
|
3238
|
|
POST
|
This will add an up arrow: ...although it may be better to use the 'Advanced' option to add a more complex code block to choose the correct sign: def FindLabel ( [NAMEPROPER], [Difference] ):
if [Difference] > 0:
sign = u'\u2191' # up arrow
elif [Difference] < 0:
sign = u'\u2193' # down arrow
else:
sign = '-' # no change
return [NAMEPROPER] + '\n' + sign + [Difference]
... View more
06-07-2016
09:10 AM
|
4
|
1
|
22573
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 2 | 07-16-2020 11:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-15-2023
12:11 AM
|