|
POST
|
It appears as though your points are in reference to some other line (like I've guessed below, negative offsets blue, positive offsets red). Are you trying to move those points to their position on the line, or what is the objective?
... View more
07-11-2016
02:51 PM
|
0
|
3
|
5010
|
|
POST
|
That dataset only has one offset value. Do you have any more information? Simple situation that shows this doesn't work, as is: you're standing at (0,0). I tell you to "Move 10". Where do you go? You need more numbers, or more rules.
... View more
07-11-2016
02:18 PM
|
0
|
5
|
5010
|
|
POST
|
Can you provide a simple example of your data? I'm imagining you could add two new columns to your Excel file, calculate the new coordinates into the new columns using x,y offset values from other columns, and plot your plots using those coordinates, but that seems too easy...
... View more
07-11-2016
01:55 PM
|
0
|
7
|
5010
|
|
POST
|
I don't believe there is any way to directly mask the process to only calculate distances from source to target cells. Some alternatives, that I doubt will be faster are: 1.) convert water and urban to vector and run some incarnation of a Near analysis 2.) convert RasterToNumPyArray and use NumPy magic to filter and process
... View more
07-08-2016
10:46 AM
|
1
|
1
|
2619
|
|
POST
|
I'm not sure how you do this in the field calculator, but here's how you can do it in Python: >>> fc = 'points' # change to your feature layer name
... fid_fields = [i.name for i in arcpy.ListFields(fc,'FID_*')] # list of "FID_" fields
... all_fields = ['TOTAL_AREA_OVERLAP'] + fid_fields # add overlap field to beginning of list
... with arcpy.da.UpdateCursor(fc,all_fields) as cursor: # update cursor
... for row in cursor: # loop through cursor
... total = 0 # start at 0
... for i in range(len(fid_fields)): # for each FID field
... total += row[i+1] # accumulate
... row[0] = total # store total in first position
... cursor.updateRow(row) # write row
... View more
07-06-2016
01:10 PM
|
1
|
1
|
3610
|
|
POST
|
Can you provide a complete example for what you want to do? Also: Calculate Field examples—Data Management toolbox | ArcGIS for Desktop
... View more
07-06-2016
11:31 AM
|
1
|
3
|
3610
|
|
POST
|
Are you using ArcMap? If so, hold down Ctrl while toggling visibility to toggle all.
... View more
07-04-2016
10:18 AM
|
1
|
1
|
2789
|
|
POST
|
I wouldn't worry about the one-liner for something like that. It doesn't exactly help readability: newname = os.path.join(outputdir,os.path.split(os.path.splitext(filename)[0] + ".pdf")[1]) # untested
... View more
06-29-2016
02:55 PM
|
1
|
1
|
14800
|
|
POST
|
You're right, that is undecipherable! I don't have a real answer for you, but there are plenty of ideas here: ArcHydro Problem Solvers
... View more
06-29-2016
02:05 PM
|
0
|
1
|
2112
|
|
POST
|
Not that I don't believe you, but could you post the undecipherable error message (or is it like, "99999 Unspecified error"?)?
... View more
06-29-2016
01:15 PM
|
0
|
4
|
2112
|
|
POST
|
Oh, I think your problem is that '*.ppt?' doesn't match any 'ppt' files. '?' means one character, '*' means zero or more characters, so you could change to '*.ppt*' to pick up ppt and pptx.
... View more
06-29-2016
11:05 AM
|
1
|
0
|
14800
|
|
POST
|
I'll confirm that this works for me: import sys
import os
import glob
import win32com.client
def convert(files, formatType = 32):
powerpoint = win32com.client.Dispatch("Powerpoint.Application")
powerpoint.Visible = 1
for filename in files:
newname = os.path.splitext(filename)[0] + ".pdf"
deck = powerpoint.Presentations.Open(filename)
deck.SaveAs(newname, formatType)
deck.Close()
powerpoint.Quit()
files = glob.glob(r'PATH_TO_MY_PPTX') # <--- ONLY CHANGE
convert(files) PyScripter, Python 2.7.5
... View more
06-29-2016
10:53 AM
|
1
|
1
|
14800
|
|
POST
|
You can write a Map Algebra Con statement (e.g. "if this, then that, else (if this, then that, else (if this, then that, else leave alone)))").
... View more
06-29-2016
10:32 AM
|
1
|
0
|
1047
|
|
POST
|
Your first question deals with "polygon packing" (search that), which by all accounts, is very difficult and there is no good solution unless your boundary polygon is simple (e.g. a circle, square, etc.).
... View more
06-29-2016
10:16 AM
|
0
|
1
|
1352
|
|
POST
|
Okay, if I understand correctly (which I'm not sure I do), you should use Data Driven Pages to cycle through your lakes (it will make one map for each lake). Set up your symbology (once) in the map. Then, export all your maps. If that's not at all what you want, please elaborate. You can't set different definition queries within the same feature class at the same time. You script seems to read through each feature changing the definition query on the layer each time. Essentially, you'll be left with with the last definition query, if it works at all.
... View more
06-28-2016
10:06 AM
|
1
|
0
|
2619
|
| 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
|