POST
|
Simple question about web layers... When I publish a web layer does it become synced to the copy that I have on my laptop/desktop? In other words, if I edit it online or on my laptop does it change the layer on my laptop or online, respectively? Also, when I create a view layer on my organization's site, does that stay synced with the web layer it was made from? I'm assuming it stays synced with the feature service. I am just really confused as to the real difference between View, Feature Service, and Service Definition. Thanks for your help.
... View more
10-04-2019
10:22 AM
|
0
|
0
|
162
|
POST
|
Thank you a ton! The documentation confused me, but that works exactly as I wanted.
... View more
09-19-2019
09:30 PM
|
0
|
1
|
6134
|
POST
|
I need to merge all polygon features in a given feature class into a single polygon. The intended functionality is similar to the "Merge" tool under the Edit->Tools tab. The Merge_management tool takes feature classes as an input and I cannot find documentation on the difference/command for this "Edit->Merge." I figure I will have to iterate through my feature class using a search cursor and use the dissolve tool to merge the features. I have tried iterations of the following to no avail: with ap.da.SearchCursor(feature_class, "*") as cursor:
feature_list = []
for row in cursor:
feature_list.append(row)
ap.Dissolve_management(feature_list, out_feature_class, {dissolve_field},{statistics_fields}, {multi_part}, {unsplit_lines}) My question is what do I use as my in_features (first field in ap.Dissolve_management)? How do I pass the features into the ap.Dissolve_management function?
... View more
09-18-2019
11:49 AM
|
0
|
6
|
6931
|
POST
|
It does not. I found the following solution, I'm unsure if anything else relies on these .dll files, but my scripts now work. Installing River and Flood Analysis (RFA) within Civil 3D causes errors in Python 3 | Search | Autodesk Knowledge Networ…
... View more
09-13-2019
09:40 PM
|
0
|
1
|
308
|
POST
|
The issue recurred so I cloned my hard drive and then methodically uninstalled programs until it worked again. After uninstalling Autodesk River and Flood Analysis Module 2018 and 2018.1 Update for Autodesk Civil 3D my scripts worked. To confirm, I cloned my hard drive again and removed these modules only and my scripts worked. I am unsure what is causing this issue, but evidently the people at Autodesk had some idea about it as they fixed the issue in the 2019.1 Update. See release notes for the update in the link below. Autodesk® River and Flood Analysis Module
... View more
09-13-2019
01:19 PM
|
0
|
3
|
806
|
POST
|
For anyone reading this thread... I called Esri customer support and got hooked up with someone there. Unfortunately, both IDLE and Spyder refused to work while on the support call and shortly after my computer decided it needed to corrupt the Windows files. I had to then reinstall Windows 10 fresh on my machine. Long story short, on this completely fresh install (even though I had reinstalled ArcGIS Pro several times to no avail) my code works without a hitch. I'm hoping nothing I do such as installing other software breaks it, but if it does I will report back so maybe we can track down what is causing this.
... View more
09-05-2019
05:29 PM
|
0
|
0
|
806
|
POST
|
Any ideas? This has thoroughly stumped me. It won't work with the IDE installed with ArcGIS Pro either.
... View more
08-08-2019
04:27 PM
|
0
|
0
|
882
|
POST
|
Fair enough. My problem still is not solved though, works in Python Window in ArcGIS Pro but not in Spyder. What the heck?
... View more
07-31-2019
07:16 PM
|
0
|
0
|
882
|
POST
|
The patch mentioned in https://community.esri.com/blogs/dan_patterson/2018/12/28/clone ? I am using 2.3.3 which is what you used for that I believe.
... View more
07-31-2019
06:48 PM
|
0
|
2
|
882
|
POST
|
Ok, working on that now. Uninstalled ArcGIS Pro and Anaconda and all related folders, files, registry keys, etc. that were left over after installation. Just installed ArcGIS Pro 2.3 and its three patches in "C:/ArcGISPro" shortening the path like you suggested. I have full control over my computer so am not making a clone. Now updating numpy from proenv.bat (located at C:\ArcGISPro\bin\Python\Scripts) and learning about sphinx and will downgrade if I decide I want to. Next I will install Spyder. If I install anaconda-navigator after that is there anything else I have to do to get that to work properly? Thanks again for your assistance.
... View more
07-31-2019
04:08 PM
|
0
|
4
|
882
|
POST
|
I did, I guess I'm just a bit confused. I don't need python 3.7, Anaconda 3.7 is just the installer they have on the Anaconda website. I might be dense, but it shouldn't matter because I am using a separate environment for my arcgispro-py3-clone right? Regardless, I am going to try to delete the clone, uninstall the Anaconda Navigator I got from their website installer, and install the packages directly into "C:\Program Files\ArcGIS\Pro\bin\Python\arcgispro-py3" folder using conda from "proenv.bat" and see if that works.
... View more
07-31-2019
09:46 AM
|
0
|
6
|
882
|
POST
|
I get this: import sys
sys.executable
'C:\\Program Files\\ArcGIS\\Pro\\bin\\ArcGISPro.exe'
sys.base_exec_prefix
'C:\\Users\\Tab5a\\AppData\\Local\\ESRI\\conda\\envs\\arcgispro-py3-clone'
sys.exec_prefix
'C:\\Users\\Tab5a\\AppData\\Local\\ESRI\\conda\\envs\\arcgispro-py3-clone' which is correct right? Sorry, I don't quite understand what I should do/try. Should I uninstall and reinstall ArcGIS Pro and Anaconda? Should I clone or not? Should I try to make a clone in the path "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs"? Should I try the mentioned .api patch? I'm assuming that if I do try the patch I have first install anaconda-navigator on/from my clone? Should I have installed anaconda-navigator from my clone in the first place rather than from the .exe from Anaconda's website? Sorry for the plethora of questions, I am just lost and extremely frustrated with this.
... View more
07-31-2019
05:09 AM
|
0
|
8
|
2282
|
POST
|
This is in Spyder. Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 11:27:44) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 7.7.0 -- An enhanced Interactive Python.
import sys
sys.executable
Out[2]: 'C:\\Users\\Tab5a\\AppData\\Local\\ESRI\\conda\\envs\\arcgispro-py3-clone\\pythonw.exe'
Any other way to check what is being used by by the Python Window in ArcGIS Pro? sys.executable returns: import sys
sys.executable
'C:\\Program Files\\ArcGIS\\Pro\\bin\\ArcGISPro.exe' Which I find odd based on https://docs.python.org/3/library/sys.html which says that sys.executable "returns a string giving the absolute path of the executable binary for the Python interpreter."
... View more
07-31-2019
03:03 AM
|
0
|
10
|
2281
|
POST
|
All of those folders are there - install paths are different though. "...\Resorces\Arcpy" is in: "C:\Program Files\ArcGIS\Pro\Resources\ArcPy" But the clone is not in the following program files folder location: "C:\Program Files\ArcGIS\Pro\bin\Python\envs" It is instead located at "...AppData\Local\ESRI\conda\envs\arcgispro-py3-clone". The packages you asked about are installed at: "C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis" "C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\spyder" Note though that I also have two "root" environments. One that was installed with ArcGIS Pro and one with Anaconda. Not sure if this would cause an issue or what and not sure at all if the following is relevant, but hey, guess it can't hurt. I figured there might be some kind of conflict going on between these two. For some reason "conda" commands do not work for the Anaconda installed base (root) environment unless executed from the Anaconda Prompt. In addition, the original "arcgispro-py3" environment does not have a "conda" executable (though I think it copied the "conda" executable from the "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts" directory when it was cloned.) Running in PowerShell in the various ...\Scripts directories Note that the following were done with "arcgispro-py3-clone" active in ArcGIS Pro. The active environment in Anaconda Navigator does not affect the active (*) environment. Only the active environment in ArcGIS Pro matters. Running "conda info --envs" from "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts". This is the root environment installed by ArcGIS Pro. PS C:\Program Files\ArcGIS\Pro\bin\Python\Scripts> .\conda info --envs
# conda environments:
#
arcgispro-py3-clone * C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone
arcgispro-py3 C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
root C:\Program Files\ArcGIS\Pro\bin\Python
PS C:\Program Files\ArcGIS\Pro\bin\Python\Scripts> Running "conda info --envs" from "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts." This is the original environment installed by ArcGIS Pro that was cloned. PS C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts> .\conda info --envs
.\conda : The term '.\conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ .\conda info --envs
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (.\conda:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts> Note there is no "conda" executable in the folder for whatever reason. Maybe it references the Python\Scripts folder above? Regardless, shouldn't be my problem because... Running "conda info --envs" from "C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Scripts." This is the clone of the original environment installed by ArcGIS Pro. PS C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Scripts> .\conda info --envs
# conda environments:
#
arcgispro-py3-clone * C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone
arcgispro-py3 C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
root C:\Program Files\ArcGIS\Pro\bin\Python
PS C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Scripts> Note that even though the "conda" executable was not in the original environment, it showed up in the cloned one. Running "conda info --envs" from "C:\Users\Tab5a\Anaconda3\Scripts." This is the base (root) environment installed with Anaconda. I get the following error message. PS C:\Users\Tab5a\Anaconda3\Scripts> .\conda info --envs
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\exceptions.py", line 1062, in __call__
return func(*args, **kwargs)
File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
exit_code = do_call(args, p)
File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 80, in do_call
module = import_module(relative_mod, __name__.rsplit('.', 1)[0])
File "C:\Users\Tab5a\Anaconda3\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\cli\main_info.py", line 19, in <module>
from ..core.index import _supplement_index_with_system
File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\core\index.py", line 9, in <module>
from .package_cache_data import PackageCacheData
File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 15, in <module>
from conda_package_handling.api import InvalidArchiveError
File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda_package_handling\api.py", line 3, in <module>
from libarchive.exception import ArchiveError as _LibarchiveArchiveError
File "C:\Users\Tab5a\Anaconda3\lib\site-packages\libarchive\__init__.py", line 1, in <module>
from .entry import ArchiveEntry
File "C:\Users\Tab5a\Anaconda3\lib\site-packages\libarchive\entry.py", line 6, in <module>
from . import ffi
File "C:\Users\Tab5a\Anaconda3\lib\site-packages\libarchive\ffi.py", line 48, in <module>
libarchive = ctypes.cdll.LoadLibrary(libarchive_path)
File "C:\Users\Tab5a\Anaconda3\lib\ctypes\__init__.py", line 434, in LoadLibrary
return self._dlltype(name)
File "C:\Users\Tab5a\Anaconda3\lib\ctypes\__init__.py", line 356, in __init__
self._handle = _dlopen(self._name, mode)
TypeError: LoadLibrary() argument 1 must be str, not None
`$ C:\Users\Tab5a\Anaconda3\Scripts\conda-script.py info --envs`
An unexpected error has occurred. Conda has prepared the above report.
Upload did not complete.
PS C:\Users\Tab5a\Anaconda3\Scripts> Running in Terminal from Anaconda Navigator Note that for the following the active environment in ArcGIS Pro made no difference. The active environment in ArcGIS Pro does not affect the active environment. As to the two "root" environments, when I open Anaconda and switch to the "base (root)" environment, open a terminal, and run "conda info --envs": (base) C:\Users\Tab5a>conda info --envs
# conda environments:
#
base * C:\Users\Tab5a\Anaconda3
C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone
(base) C:\Users\Tab5a> When I switch to the "arcgispro-py3-clone" environment in Anaconda, open a terminal, and run "conda info --envs": (arcgispro-py3-clone) C:\Users\Tab5a>conda info --envs
# conda environments:
#
arcgispro-py3-clone * C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone
arcgispro-py3 C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
root C:\Program Files\ArcGIS\Pro\bin\Python
(arcgispro-py3-clone) C:\Users\Tab5a> Note also that the original environment "arcgispro-py3" does not show up in Anaconda.
... View more
07-31-2019
01:14 AM
|
0
|
12
|
2281
|
POST
|
Anaconda is 3.7. But the environment I am using within Anaconda is 3.6.6 as it is a clone of the default environment within ArcGIS Pro 2.3.3. Below is the original environment after running conda update python --no-pin --dry-run: C:\Program Files\ArcGIS\Pro\bin\Python\Scripts>conda update python --no-pin --dry-run
Fetching package metadata .............
Solving package specifications: .
Package plan for installation in environment C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone:
The following packages will be UPDATED:
python: 3.6.6-hea74fb7_0 --> 3.6.9-h5500b2f_0
sqlite: 3.25.2-hfa6e2cd_0 --> 3.29.0-he774522_0
vc: 14-h21ff451_11 --> 14.1-h0510ff6_4
vs2015_runtime: 14.0.25420-0 esri --> 14.15.26706-h3a45250_4
The following packages will be DOWNGRADED:
freetype: 2.8-h51f8f2c_1 esri --> 2.8-vc14_0 esri [vc14]
C:\Program Files\ArcGIS\Pro\bin\Python\Scripts> And here is that same command run on my clone environment: (arcgispro-py3-clone) C:\Users\Tab5a>conda update python --no-pin --dry-run
Fetching package metadata .............
Solving package specifications: .
Package plan for installation in environment C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone:
The following packages will be UPDATED:
python: 3.6.6-hea74fb7_0 --> 3.6.9-h5500b2f_0
sqlite: 3.25.2-hfa6e2cd_0 --> 3.29.0-he774522_0
vc: 14-h21ff451_11 --> 14.1-h0510ff6_4
vs2015_runtime: 14.0.25420-0 esri --> 14.15.26706-h3a45250_4
The following packages will be DOWNGRADED:
freetype: 2.8-h51f8f2c_1 esri --> 2.8-vc14_0 esri [vc14]
(arcgispro-py3-clone) C:\Users\Tab5a> Note that my cloned environment is located in C:\Users\Tab5a\AppData\Local\ESRI\conda\envs Also, not sure if it matters at all, the cloned environment is not in the C:\Users\Tab5a\Anaconda3\envs but does show up in Anaconda Navigator as expected. Any ideas?
... View more
07-30-2019
08:09 PM
|
0
|
1
|
2281
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|