|
POST
|
While trying to run a script I've used in python 2.7 for some time, I encountered real issues with the field mappings when trying to run it using python 3. Python 2.7 seemed more forgiving in the format of a field mapping variable for use with FeatureClassToFeatureClass_conversion(). I was able to change the string representation in several ways, including using the string rather then loading it into a FieldMappings() object. I've attached 2 examples of how the string for field mapping had to be formatted very differently to work in either python 2.7 or 3. I'm really not sure if this might not be a bug in arcpy for python 3, but I do know that the string format for field mappings used with FeatureClassToFeatureClass in python 2.7 is way more forgiving then what it had to be for python 3.
... View more
09-16-2020
03:07 PM
|
0
|
0
|
894
|
|
POST
|
I have the same issue running Python 3 task on Windows server 2019. I have actually attempted to use only when user is logged on, but that really isn't an option anyway. Running the same scripts as a task using Python 2.7 works fine. I can run the scripts in python 3 manually on the same machine, but not as a task. Wondering if it could have to do with the Conda environment and the fact that the system PATH info might be pointing to arcpy for the 2.7 environment?
... View more
08-07-2020
06:50 AM
|
0
|
2
|
5306
|
|
POST
|
Thanks Joshua for all the info, you might be right about the support analyst but it was a secondary topic to my initial inquiry. I'm not interested in a specific tool at this time but for future reference thought I'd throw it out there, the Advanced, Standard, Basic reference is good enough for now! Thanks again!
... View more
07-20-2020
10:15 AM
|
0
|
1
|
2020
|
|
POST
|
Yes, I was able to figure it out and thank you for your reply Joshua! The way I managed to get it going was to run proenv.bat opening a cmd window then entering idle. Also, had to run the bat file as administrator to be able to edit scripts and save them as well as run them. Was glad to figure out the license didn't depend on Pro being installed and believe there is another script called propy.bat that you can use to run python 3 scripts as windows tasks. Saw that in the same folder you mentioned in your initial post. I'm not sure I'd call it super easy to figure out on your own. I still haven't found a way to run the idle window for python 3 without have a cmd window open first. Can you confirm that all the same libraries are available with Enterprise Server as would be with Pro installed? Wondering if I may have misunderstood the other person I talked to and there might be some libraries specific to a Pro license?
... View more
07-20-2020
06:32 AM
|
0
|
3
|
2020
|
|
POST
|
Thanks for your reply, it was helpful! I have since spoken with someone from support on another issue and I believe gotten answers to some of my other questions. I believe even though the libraries are there, I would need to have Pro installed on the server machine in order to have the license required to run arcpy 3 scripts. If that isn’t the case I would like to hear about it. I am interested in using the scripts to set up tasks on the server machine.
... View more
07-16-2020
01:18 PM
|
0
|
5
|
2020
|
|
POST
|
I've seen documentation that python 2.x and 3.x versions come with enterprise, but only see the the 2.7 folder installed on the server. Can I make it run 3.x? Do I need to run 2.x to publish with ArcGIS desktop? Will this affect publishing with Pro?
... View more
07-16-2020
09:27 AM
|
0
|
7
|
2115
|
|
POST
|
not 100% sure but believe Arcmap has used planar to calculate area without a choice? Really can't calculate for GCS like WGS84, guessing software that seems to do that, reprojects on the fly into something that can be calculated. As you noted, it would depend on the scale of the analysis you are doing as to which might be better. Also, pretty sure most plats and things never calculated geodesic values for length or area.
... View more
01-07-2020
11:00 AM
|
0
|
0
|
5751
|
|
POST
|
I'm using SAML with ArcGIS Enterprise 10.7, federated Server and portal, 2 web adapters. I had to go into ArcGIS administrator and add the portal URL to portal connections so that you are able to sign into portal from arcmap or catalog. I was then able to create an admin connection in ArcGIS desktop to the federated server using my AD credentials which were already assigned admin privileges in portal.
... View more
01-07-2020
10:51 AM
|
0
|
0
|
4219
|
|
POST
|
I haven't tried using it in a script like you but found that I can't generate a token with my enterprise AD account so that I could log into the server admin directory. I'm using Enterprise 10.7, two webadapters installed, federated Server with Portal and AD with Portal. I can login with my domain account and get into portaladmin, server manager, and of course portal, but can't get into the server admin directory using my domain account to get a token. i tried updating the identity store in portaladmin to windows for users, which tested fine, but still no luck generating a token. After calling ESRI support and talking with the rep for a couple days I was told it is simply not possible to get a token using an enterprise account. I find that hard to believe, but if true I think it qualifies as a bug, something that should be fixed. After all it states in the on the support page for setting up AD with portal that you can remove the initial builtin account after federating portal with AD. Configure Active Directory Federation Services—Portal for ArcGIS (10.7 and 10.7.1) | ArcGIS Enterprise Tip: It's recommended that you designate at least one enterprise account as an administrator of your portal and demote or delete the initial administrator account. It is also recommended that you disable the Create an account button and sign-up page (signup.html) in the portal website so people cannot create their own accounts. For full instructions, see Configuring a SAML-compliant identity provider with your portal.
... View more
11-19-2019
01:13 PM
|
0
|
0
|
2462
|
|
POST
|
Running the following gives 2 different results if run from server Standard 10.7 machine or Desktop Advanced 10.4 machine. Where CODGEO_Datasets and Offline_Datasets are lists of full path strings. Where some feature class in the dataset has attachments # Process: Copy CODGEO Datasets for i, val in enumerate(CODGEO_Datasets): arcpy.Copy_management(CODGEO_Datasets, Offline_Datasets, "Feature Dataset") Run from Desktop 10.4 I get this inside my Offline FGDB Offline_Dataset (containing all the feature classes) some_feature_class_ATTACH some_feature_class_ATTACHREL Run from Server 10.7 I get this inside my Offline FGDB Offline_Dataset (containing all the feature classes) Offline_Dataset_ATTACH Offline_Dataset_ATTACHREL So instead of the attachment table & relationship class having the name of the feature class that has attachments as when run from Desktop 10.4 machine, when the same script is run on the Server 10.7 machine, the attachment table and relationship class have the name of the Dataset. So is this expected behavior? Do we now enable attachments on datasets not the feature class inside the dataset?
... View more
11-14-2019
12:38 PM
|
0
|
0
|
674
|
|
IDEA
|
In Arcmap 10.4 I get Or this It really doesn’t tell you if it is calculating planar area or geodesic area, not that there is a big difference for the polygons in my current layer, but according to https://support.esri.com/en/technical-article/000018807 The calculate geometry tool in Arcmap uses a planar calculation while the Field Calculator and Add Geometry Attributes Tool use Geodesic. I guess that I’m just saying it would be nice to have the option to calculate as if you had actually re-projected the underlying data for comparison. If we are able to choose a projected coordinate system different than that of the data source in which to calculate the area value, why wouldn’t we want to choose properties such as planar or geodesic that might be appropriate for that chosen projection?
... View more
11-04-2019
08:10 AM
|
0
|
0
|
3867
|
|
IDEA
|
Shouldn't the choice be based on the projection you choose in the dialog for the calculation, rather then the actual coordinate system of the data? In my opinion it should be. If I'm choosing a planar projection like state plane for the area calculation. I believe that is how it works in Arcmap when you choose the data frame projection rather than the coordinate system of the data?
... View more
11-02-2019
11:34 AM
|
1
|
1
|
3867
|
|
IDEA
|
No, I didn’t try an XY I was doing area, I made another post that explains. Also, I don’t know if it does just selected records but don’t see an option in the dialog?
... View more
10-30-2019
01:53 PM
|
0
|
1
|
3867
|
|
IDEA
|
I didn't try XY, but wanted to set the property to planar for calculating area, from data is in NAD83 2011 GCS, but to calculate area as SQ FT in the corresponding State Plane projection. The only choice was Area (Geodesic), which leads me to think perhaps the choices are based on the coords of the underlying data rather than the selected coord system in the dialog.
... View more
10-30-2019
01:31 PM
|
0
|
0
|
3867
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-01-2025 12:20 PM | |
| 1 | 07-22-2024 12:05 PM | |
| 1 | 05-16-2024 11:54 AM | |
| 1 | 05-20-2024 01:16 PM | |
| 2 | 05-16-2024 09:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|