|
POST
|
Yes. In fact you should be able to find the boundary of the state readily available online or in existing Esri datasets.
... View more
04-28-2020
02:48 PM
|
2
|
6
|
8888
|
|
POST
|
It isn't a stupid question, it is a common error which can normally be overcome by breaking the expression down into parts. FULLNAME = 'A1A'
FULLNAME.isdigit()
False # ---- not all parts of the string are numbers
''.join(filter(str.isdigit, [FULLNAME]))
'' # ---- So it returns nothing
# ---- fails because you can't convert an empty string to an integer
int(''.join(filter(str.isdigit, [FULLNAME]))) Take your time, use a couple of steps, there are no rewards for the sweet one-liner FULLNAME = 'A1A'
tmp = "".join([i for i in FULLNAME if i.isdigit()])
tmp
'1' # ---- the list comprehension splits the parts of the string
# ---- now, the check again, if it can be converted to an integer
# return it, otherwise a suitable nodata value
int(tmp) if tmp.isdigit() else -999
1 # ---- success
# ----- Now test with a no-number highway
FULLNAME = 'A_one_A'
tmp = "".join([i for i in FULLNAME if i.isdigit()])
int(tmp) if tmp.isdigit() else -999
-999 Break things into bits, I do it all the time
... View more
04-28-2020
02:33 PM
|
0
|
0
|
1224
|
|
POST
|
What have you come up with so far? Joe Borgione might check the list
... View more
04-28-2020
04:00 AM
|
0
|
0
|
1244
|
|
POST
|
My guess? You defined 'workspace' as a variable it during the python session... maybe before shortening it to 'w'. The name, 'workspace' renames in the python namespace until the session is closed... not the script ends, but python is shutdown. If you used a python IDE, like spyder that stores your history, you can review all your definitions and changes when you need to track down answers to mysteries. Otherwise, The true answer will come in a dream .
... View more
04-27-2020
06:02 PM
|
0
|
0
|
1638
|
|
POST
|
emulate... workspace = arcpy.env.workspace = r"C:\Git_Dan\npgeom\Project_npg\npgeom.gdb"
print(workspace)
C:\Git_Dan\npgeom\Project_npg\npgeom.gdb
... View more
04-27-2020
05:39 PM
|
2
|
0
|
6190
|
|
POST
|
examine lines 74 - 76 Nowhere do you define a variable named "workspace" Examine my example as well.
... View more
04-27-2020
05:00 PM
|
2
|
2
|
4552
|
|
POST
|
Shifting isn't normal... I suspected a datum shift of the output, but... could be the ellipse. See if it can be replicated with other simpler geometric shapes. It could be unique to ellipses since "may" be being defined by the long and short axes and a central point rather than an n-gon of points (can't remember offhand)and any small 'issue' with resolution or something would possibly be compounded. Worth a look. But I would "Tech Support" for a definitive answer.
... View more
04-27-2020
04:18 PM
|
0
|
0
|
1600
|
|
POST
|
Robert Pollock .... guess you missed this ... https://community.esri.com/thread/199197-why-does-arcgis-pro-have-to-be-so-slow Just ignore the venting portions, there are "some" salient points as to why things may be slower. But who is in a rush now
... View more
04-27-2020
04:13 PM
|
2
|
1
|
956
|
|
POST
|
No. You must have defined 'workspace' earlier on. arcpy.env.workspace = r"C:\Git_Dan\npgeom\Project_npg\npgeom.gdb"
workspace
Traceback (most recent call last):
File "<ipython-input-6-91a042f38ba6>", line 1, in <module>
workspace
NameError: name 'workspace' is not defined
... View more
04-27-2020
03:50 PM
|
1
|
4
|
4552
|
|
POST
|
map and geometry of the featureclasses all in the same coordinate system? If you suspect this is a bug, then reporting it to Tech Support would be useful since you seem to have a simple use case.
... View more
04-27-2020
03:46 PM
|
0
|
2
|
1600
|
|
POST
|
workspace isn't defined... w is and arcpy.env.workspace is. You can't do the 'workspace' shortcut
... View more
04-27-2020
03:12 PM
|
0
|
6
|
4552
|
|
POST
|
Throw in a print statement to check the datatype or use Describe object properties—ArcPy Functions | Documentation or use the describe object's dataType to limit the objects that you process
... View more
04-26-2020
05:36 PM
|
1
|
0
|
4713
|
|
POST
|
If in doubt, right-click in Catalog, then open. Insert tab is automatically selected
... View more
04-26-2020
05:32 PM
|
2
|
0
|
5996
|
|
POST
|
Next... G:\GIS\OakGrove.gdb\Benzene .... can you confirm that it actually exists by throwing in a print statement, and, that the symbology layer and the layer that is being symbolized are of the same type. That last one may be the hard one. But you said all is good when you do it from within ArcMap. (I can't help on that since I don't use ArcMap anymoree)
... View more
04-25-2020
10:39 PM
|
0
|
0
|
5180
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-03-2017 11:39 AM | |
| 1 | 08-05-2019 05:21 PM | |
| 1 | 09-02-2016 08:05 AM | |
| 1 | 01-15-2018 01:10 PM | |
| 1 | 09-17-2018 12:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|