POST
|
My current setup uses two major ways of using python. Whenever I need Arcpy I use the arcpy python command prompt for notebooks or VSCode and hit the cloned ESRI arc environment. I add very little to the ESRI environment. For tasks not needing arcpy/arcgisscripting I use miniconda installed separately and whatever custom stuff I need. This is a work around but has worked well for the past few years. Basically I stopped trying to have an all-in-one environment because eventually you add stuff that won't work with other stuff and I've found it easier to have a few separate miniconda environments for different major tasks. So just to be clear I have installed miniconda as a standard program on its own and switch which cmd.exe I use as needed.
... View more
01-10-2023
05:26 PM
|
0
|
0
|
824
|
POST
|
I also have this problem but I have both ArcPro 2.6 and ArcDesktop 10.7 installed and running but still can't get arcpy running in my conda environment. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 74, in <module> from arcpy.geoprocessing import gp File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in <module> from ._base import * File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 14, in <module> import arcgisscripting ImportError: DLL load failed: The specified procedure could not be found.
... View more
03-16-2021
01:07 PM
|
0
|
2
|
7557
|
POST
|
I've been using the additional copy function but it is really slow and now I have a new issue that has arisen where the 8-bit unsigned isn't being respected so I have to 1) composite the bands, 2) copy to get the names right 3) reexport to 8bit unsigned. With big rasters (~100gb+) this adds several hours per raster having to redo the steps.
... View more
05-19-2020
01:46 PM
|
0
|
0
|
4889
|
POST
|
I'm having the same issue. Basically all of my Raster(some_path_to_raster) functions are returning this error "TypeError: expected 1 arguments, got 2". I've used arcpy.Exists(some_path_to_raster) to make sure the raster is their and it is. If I try my calculation without the Raster(), just use the path I get a "can't multiply by string error". I have spatial analyst checked out. This was working yesterday. Con_Con_img11_temp = Con(in_conditional_raster=Con_img1, in_true_raster_or_constant=max_chm, in_false_raster_or_constant=Con_img1, where_clause="Value > 254") Con_Con_img11_temp.save(Con_Con_img11) if arcpy.Exists(mask_raster): print("mask_raster exists") if arcpy.Exists(Con_Con_img11): print("Con_Con_img11 exists") try : targetCHMFinal_grid = Raster(mask_raster) * Raster(Con_Con_img11) except TypeError: print("version 1 failed") try: targetCHMFinal_grid = mask_raster * Raster(Con_Con_img11) except TypeError: print("version 2 failed")
... View more
02-17-2020
01:47 PM
|
0
|
1
|
1193
|
POST
|
Perfect. Just what I needed. Thanks. I was unaware of the attributes dialog all together. Very helpful. BTW, for anyone else unaware, it is that "Attributes" button you've been ignoring in the Selection section of the Map ribbon. I click the other four items every 5 minutes so how I'd missed that I'm not sure.
... View more
08-26-2019
10:16 AM
|
0
|
0
|
3524
|
POST
|
I'm cleaning up some data and trying to work with coded-value domains in Pro 2.4. If I have several features selected, is there some way to select a value from the domain and assign it to all selected features?
... View more
08-23-2019
12:28 PM
|
0
|
2
|
3951
|
BLOG
|
I'm also getting the not signed into portal message when trying to upgrade arcgis using conda install -c esri arcgis. I have arc pro running right now, signed into my account. I've tried it with arcpro running and not running.
... View more
11-06-2017
04:05 PM
|
0
|
0
|
859
|
POST
|
Thanks Dan. I was afraid something along those lines was the answer. I guess the Pro conda installation doesn't force you to use it as your conda installation based on the bat files esri includes that turn the arcgispro environment on for its own use. I think visual studio tools for python also installed one of the three conda distributions I have. I hope continuum will recognize the tendency for multiple conda installs and work out a universal system to manage it.
... View more
10-05-2017
08:55 AM
|
0
|
0
|
361
|
POST
|
I have now discovered I have 5 python installations on my machine and 3 conda folders. Say I have a windows 10 machine with some Deep Learning packages and an existing conda installation. Is there any way to redirect ArcGIS pro to store its environment and utilize the existing conda package so that I can include calls to arcpy with my other data science tasks?
... View more
10-04-2017
04:55 PM
|
0
|
2
|
746
|
POST
|
Here's my partial workaround. I want to have a subset of my original data to work on which would be the new layer in the old method. What I've done is add the layer a second time and instead of a selection I did a definition query on the second copy. Not great but worked for my needs.
... View more
09-14-2017
12:58 PM
|
2
|
0
|
1292
|
POST
|
Hadn't noticed these emails were all being captured. I'm a geonet noob. Thanks!
... View more
02-12-2016
11:32 AM
|
0
|
0
|
668
|
POST
|
Can you amend your answer to ask about the outFields? I’m happy to pick that as correct but I want to make sure it notes the actual problem for other folks who may come across it. Ken
... View more
02-12-2016
10:57 AM
|
0
|
2
|
668
|
POST
|
Bingo! I was assuming (stupidly) the simple query returned all fields. That would obviously waste bandwidth and slow down response times so why would that be the default? I had no outFields. Thank you thank you!! Ken
... View more
02-12-2016
10:55 AM
|
0
|
0
|
668
|
POST
|
I've been trying that exact syntax for hours and all I get in the console window is undefined. I have an info template for the same unfiltered feature service which works fine so I'm assuming I have the feature names correct. I get a different feature count depending on my query parameter so I'm pretty positive its returning the right stuff. So if there are 62 features returned the console window has a 62 in a little circle with the message "feature attributes are undefined" which I believe means here are 62 rows with the same output.
... View more
02-12-2016
10:44 AM
|
0
|
5
|
668
|
POST
|
After returning my featureSet from a query, I want to be able to pass an array to d3 to do some visualizations and analyses. How do I either convert the returned featureSet to an array or get the attributes returned from a feature? The only thing I've managed to do is get a count of features. array.forEach(featureSet.features, function(feature) { featureCount += 1; console.log("feature attributes are" + Would love to display a value from an attribute here); }); How do I access field values on the feature?
... View more
02-12-2016
10:20 AM
|
0
|
8
|
2265
|
Title | Kudos | Posted |
---|---|---|
2 | 09-14-2017 12:58 PM |
Online Status |
Offline
|
Date Last Visited |
02-27-2024
08:58 PM
|