|
POST
|
I know there's a ton of other material here and @ SE regarding this subject, but conceptually i'm just stuck. In an effort to improve the modularity of my code, I'm trying to get better at importing existing functions into scripts. I'm stuck on successfully passing arguments captured within the script to the imported module. Ideally I just want to use the script and pass it a handful of client identifiers (arguments) and have those cascade down into several modules called up in the script. Like: functiontest2('identifier') some crude code: functiontest2.py from HarvestTable import HarvestTableReport
import sys
HarvestThing = sys.argv[1]
HarvestTableReport(HarvestThing)
HarvestTable.py import numpy as np
import pandas as pd
import arcpy
def HarvestTableReport(HarvestID):
table = "\\\\fileshare\SDE_CONNECTIONS\\LV_NEXUS.sde\\LV_NEXUS.DATAOWNER.NORTHEAST\\clientGDB.featureclass"
HUID = HarvestID
whereClause = """ "LV_HARVEST_UNIT_ID" = '{0}' """.format(HUID)
tableArray = arcpy.da.TableToNumPyArray(table, ['SUPER_TYPE','STRATA', 'OS_TYPE', 'STAND_NUMB', 'SILV_PRES', 'ACRES'], where_clause = whereClause)
df = round(pd.DataFrame(tableArray),1)
report = df.groupby(['SUPER_TYPE']).apply(lambda sub_df: sub_df.pivot_table(index=['STRATA', 'OS_TYPE', 'STAND_NUMB', 'SILV_PRES'], values=['ACRES'],aggfunc=np.sum, margins=True,margins_name= 'TOTAL'))
# this is creating a new row at level(1) called grand total
# set it equal to the sum of ACRES where level(1) != 'Total' so you are not counting the calculated totals in the total sum
report.loc[('', 'GRAND TOTAL','','',''), :] = report[report.index.get_level_values(1) != 'TOTAL'].sum()
print(whereClause)
return np.round(report,1)
if __name__ == '__main__':
HarvestTableReport()
... View more
05-29-2019
10:15 AM
|
0
|
10
|
9858
|
|
POST
|
However, this would entail sharing the services publicly as opposed to only within the organization. That isn't a solution.
... View more
05-23-2019
06:56 AM
|
3
|
0
|
4287
|
|
POST
|
Carrie Carsell You are welcome, and congratulations! You now get to talk to your financial management people about a $24,000 annual budget increase. Esri didn't do a good enough job explaining these implications and the costs are significant. I can only come to two possible conclusions: Esri doesn't have a good grasp about it's customers needs and how they are implementing/utilizing their products.OR Esri understands these cost implications and doesn't care. If they did there would have been much more transparency and customer outreach. So it's up to you to decide which one it is. If anyone can offer #3, I'm all ears.
... View more
05-23-2019
06:53 AM
|
4
|
2
|
4287
|
|
POST
|
We are currently have a stand-alone ArcGIS Server deployment, our users consume these (map & feature) services primarily via a simple javascript web app, but are also used by a smaller pool of desktop users. Currently our users authenticate at the GIS Server tier. We only use ArcGIS Online to configure web maps (popups etc) for use in the WebApp Builder (the application that is created we host outside AGO). We have spent some a good deal of time setting up a 'base deployment' of ArcGIS Enterprise 10.6.1 with a federated server. We have configured our authentication against our Active Directory via LDAP. Everything works great. However, we have reached a moment of reading the fine print. Now all of our users must be assigned a named user license within Portal. The documentation says that any user must have a level-2 license (or with 10.7 an 'editor' or 'field worker') in order to edit via feature services. This is not currently the case with the user store at the GIS tier, we have 30+ users that have nothing to do with AGO/Portal. In fact, I could have an unlimited number of editors. Here is the cost implication: At 10.6.1, Level 2 user $500/year * 30 = $15,000/year At 10.7: 'Field Worker' $350/year * 30 = $10,500/year 'Editor' $200/year * 30 = $6,000/year Where in the documentations or any announcement of Enterprise does it advise managers about this cost increase? Does federating your site remove this functionality? Is anyone else facing the same issue? I certainly hope I'm missing something here.
... View more
03-22-2019
04:11 PM
|
6
|
9
|
5054
|
|
POST
|
They say that because is a regular problem, Oh man...I'd like to believe that is not true...but I can't rule that out. Can you tell me a bit more about the exact DNS configuration to investigate? Even if this does work (the automatically deleting), I kind of doubt I'm going to be able to successfully delete these orphaned items.
... View more
03-21-2019
07:46 AM
|
0
|
0
|
5766
|
|
POST
|
Interesting behavior...hmm... My problem is that these items don't exist in the Portal site...they only appear on the 'back-end' when navigating through the portal content interface. In there, deleting the items simply doesn't work.
... View more
03-21-2019
06:57 AM
|
0
|
0
|
5759
|
|
POST
|
@Roberth Sanchez None of the items I am trying to delete are hosted in feature layers. I cannot remove any orphaned items Portal even with the site administrator in the portal content interface and using force delete. However, you are the first person to suggest that removing items from Server will remove them from Portal. Esri Technical Services told me that the process is to remove them from both locations in a federated environment. Further: Federation was accomplished using the Cloud Builder.
... View more
03-21-2019
06:55 AM
|
0
|
2
|
5768
|
|
POST
|
I just found your reply! Sorry I missed this. I'll try this as soon as I can (lots of irons in the fire). Thanks a bunch.
... View more
03-05-2019
07:45 AM
|
1
|
0
|
5645
|
|
POST
|
Are there ArcGIS Enterprise Service capabilities which can only be achieved by publishing the service via Pro? Specifically certain editing capabilities/functionality which cannot be used from a service published via ArcMap. (assuming 10.6.1 for Enterprise, Desktop, and 2.3 for Pro). Branch versioning is one thing that comes to mind.
... View more
03-05-2019
07:40 AM
|
0
|
1
|
553
|
|
POST
|
I've been having similar problems. What I've learned is that removing the service from (a federated) server does not remove it from portal. You must remove it from both locations. Not the easiest workflow but oh well. The exact error I get in Portal is: Unable to reach the server where the service is. Consider using calling deleteItem with options = { 'force' : true } if the server won't be available anymore. I found i was able to delete the items using the REST API as found in this thread here. So you're not really having to format the syntax, you're working with the Portal's rest interface. For example, if you navigate to: https://portalname/portal/sharing/rest/content/users/<username>/ you can see all the content and their IDs. you can then click on the ID title and then simply use the 'Delete Item' interface with the 'Force Deletion' option checked on. This works in a more interactive way IMO although not being able to delete via Portal is clunky at best. On a side note: this interface still isn't letting me delete orphaned items. I need to connect with my IT provider to get access to the location of the portal content directory to try to do this manually (this is an azure deployment so config and storage locations are not a simple file explorer procedure). Let us know if that helps.
... View more
03-05-2019
07:12 AM
|
1
|
2
|
8212
|
|
POST
|
Dan, thanks as always. So I guess this is the norm now? I haven't upgraded since the first version where cloning the default env was mandatory so I was thinking there was a bug or something. So I guess the inconvenience is the expected behavior here. Wonderful! I had previously read all your help guides regarding cloning 'fun' but this seemed like it was perhaps something different.
... View more
02-07-2019
08:15 AM
|
0
|
1
|
5645
|
|
POST
|
Has anyone else had this problem? I upgraded from 2.2.4. I do have a case open with Esri, but I started that case on 1/30/19 and they've still not come up with an answer yet so I thought I'd try the community. I can create a new environment but I cannot get Pro to use my previously cloned environment. There is a warning that there is a 'Version Mismatch'. Are you supposed to reclone your default env for every new version of Pro? And that would mean having to download packages, reconfigure Jupyter notebooks etc.
... View more
02-07-2019
06:18 AM
|
0
|
9
|
6786
|
|
POST
|
Dan, I can't thank you enough for taking the time to do this! I marked this as correct and am looking forward to using NumPy even more. Thanks so much!
... View more
02-01-2019
07:09 AM
|
0
|
1
|
5799
|
|
POST
|
I was attempting to save a project and the application crashed. I never really had this problem...not for several versions at least.
... View more
02-01-2019
05:00 AM
|
1
|
0
|
5210
|
| Title | Kudos | Posted |
|---|---|---|
| 9 | 03-24-2026 11:41 AM | |
| 1 | 11-06-2024 06:58 AM | |
| 1 | 12-16-2022 07:01 AM | |
| 1 | 08-09-2024 06:55 AM | |
| 1 | 08-13-2024 05:58 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-24-2026
12:51 PM
|