POST
|
Bah. I flipped the user and role fields in my head (matching the order on the screen, not in the csv). In my defense, I did have to remove the UT portion of the string the help doc said it needed... Thank you for the quick reply. Tycho
... View more
yesterday
|
1
|
0
|
52
|
POST
|
We can successfully add users manually, so that part's not a problem. I grabbed the csv template from my Portal (10.9.1) which has this (in Notepad++ for reference): Email,Role,User Type,First Name,Last Name,Username Various ESRI help docs list user type and roles as: role—This is the role the organization-specific login will have in the organization. Valid role values are viewer, user, publisher, data editor, admin, or <custom_role_name> Some examples of user type id values for the standard user types include viewerUT, editorUT, fieldworkerUT, creatorUT, GISProfessionalBasicUT, GISProfessionalStdUT, and GISProfessionalAdvUT My csv file ends up with: Portal throws this: viewer/viewer works (if I drop the UT), where is a list of the correctly spelled/capitalized/etc. strings for Role and User Type? I'm tired of trying to guess.
... View more
yesterday
|
0
|
2
|
105
|
IDEA
|
Sorry about raising a long-dead thread. Did this ever get fixed? Enterprise 10.9.1 can't display Pro 3.x annotation (silly me not finding BUG-000151842 first) and our upgrade to Enterprise 11 is a ways off.
... View more
a month ago
|
0
|
0
|
81
|
POST
|
WOOT! It worked!! I've been banging my head on this for an embarrassing amount of time. I'm so used to seeing files that have extra dots in the name before the extension this would never have occurred to me. Need to revert back to the old DOS days of only a dot before the the extension, no special characters, no spaces. Not sure I can manage 8 character names though...
... View more
02-09-2024
10:28 AM
|
1
|
0
|
329
|
POST
|
Yep, it's there. I took out the copy-the-geodatabase part (which works just fine) to narrow down the issue and save time while I run this over and over (and over...)
... View more
02-09-2024
09:25 AM
|
0
|
0
|
338
|
POST
|
Unfortunately that adds a / to the path and still gives me pretty much the same error ("cannot find" vs "does not exist"): for fc in feature_classes: spatial_ref = arcpy.Describe(os.path.join(geodb2,fc)).spatialReference print (spatial_ref.name) IOError: "S:\GIS\Scratch\Conversion2\GISPWBASE.gdbsp.gdb\Locates" does not exist (I need to use geodb2 as that is the variable that is failing) Part of what I don't understand is both versions of the arcpy.env.workspace can find the feature classes with the same printed output: [u'Locates', u'Easements', u'NWGASMAPS', u'NWNaturalGas', u'namedstreams', u'lakes_rivers', u'LocatesAnno', u'addresses', u'Taxlots', u'Roads', u'TheDallesIrrigation'] but the hacked together one can't find the FCs for the next step.
... View more
02-09-2024
09:15 AM
|
0
|
2
|
343
|
POST
|
I am trying to copy a geodb to a different name, do work on the copy, then overwrite the original. My error checking fails before it can even start. My error checking is to make sure the projection is correct before continuing on that (copied) FC. What I'm running into is changing arcpy.env.workspace "on the fly" to the newly created geodb; it can't find the FC's to check the projection. I've narrowed the snippet below to just show the error generated (and only one list item), not the work I'm trying to do. I have tried all manner of things trying to put a string together for the "on the fly" part. Python 2 because that's all they have. import arcpy
### Lists
geodb_list = [r"S:\GIS\Scratch\Conversion2\GISPWBASE.gdb"]
# Note that 2nd file exists: "S:\GIS\Scratch\Conversion2\GISPWBASE.gdbsp.gdb"
for geodb in geodb_list:
env = str(geodb)
ext = "sp.gdb"
geodb2 = str(env+ext)
arcpy.env.workspace = env
feature_classes = arcpy.ListFeatureClasses()
print feature_classes
for fc in feature_classes:
spatial_ref = arcpy.Describe(fc).spatialReference
print (spatial_ref.name)
#
arcpy.env.workspace = geodb2
feature_classes = arcpy.ListFeatureClasses()
print feature_classes
for fc in feature_classes:
spatial_ref = arcpy.Describe(fc).spatialReference
print (spatial_ref.name)
#OUTPUT
[u'Locates', u'Easements', u'NWGASMAPS', u'NWNaturalGas', u'namedstreams', u'lakes_rivers', u'LocatesAnno', u'addresses', u'Taxlots', u'Roads', u'TheDallesIrrigation']
NAD_1927_StatePlane_Oregon_North_FIPS_3601
NAD_1927_StatePlane_Oregon_North_FIPS_3601
NAD_1927_StatePlane_Oregon_North_FIPS_3601
NAD_1927_StatePlane_Oregon_North_FIPS_3601
NAD_1927_StatePlane_Oregon_North_FIPS_3601
NAD_1927_StatePlane_Oregon_North_FIPS_3601
NAD_1927_StatePlane_Oregon_North_FIPS_3601
NAD_1927_StatePlane_Oregon_North_FIPS_3601
NAD_1927_StatePlane_Oregon_North_FIPS_3601
NAD_1927_StatePlane_Oregon_North_FIPS_3601
NAD_1927_StatePlane_Oregon_North_FIPS_3601
[u'Locates', u'Easements', u'NWGASMAPS', u'NWNaturalGas', u'namedstreams', u'lakes_rivers', u'LocatesAnno', u'addresses', u'Taxlots', u'Roads', u'TheDallesIrrigation']
Traceback (most recent call last):
File "<module1>", line 37, in <module>
File "C:\Program Files (x86)\ArcGIS\Desktop10.7\arcpy\arcpy\__init__.py", line 1260, in Describe
return gp.describe(value, data_type)
File "C:\Program Files (x86)\ArcGIS\Desktop10.7\arcpy\arcpy\geoprocessing\_base.py", line 376, in describe
self._gp.Describe(*gp_fixargs(args, True)))
IOError: "Locates" does not exist Thanks, Tycho
... View more
02-08-2024
02:06 PM
|
0
|
8
|
441
|
POST
|
Doh. Didn't realize the tool is tied to the active map view as opposed to just dragging from the catalog or typing in the path. Makes it a little harder to jump around in a project. Thanks, Tycho
... View more
10-16-2023
04:04 PM
|
0
|
1
|
222
|
POST
|
Hopefully it's just because it is early... The Pro help doc (https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/batch-geoprocessing.htm) is what I want to do (one AOI, several FCs of interest): The Pro geoprocessing tool in my Project does the opposite: Using the current Pro 3.1.3. I'm at a loss.
... View more
10-16-2023
11:42 AM
|
0
|
3
|
248
|
POST
|
Got the error with one FC on the map, adding a basemap, didn't help. Didn't save, restarted Pro setting up the exact same paths/features/etc, (didn't add a basemap since that was just a troubleshooting step) in the Project, shared... no errors. <bangs head on wall>
... View more
08-18-2023
02:56 PM
|
0
|
1
|
1429
|
POST
|
This is somewhat related to Pop-ups configured in ArcGIS Pro change when the feature service is added into a new Map Viewer? as well as another thread I've been fighting for months Bolded strings within Arcade if – then--else expression I have an Arcade if-then-else statement written for a popup (just a text snippet below) //Precinct 01 //01-01 if($feature.PRECINCT_T =='01'&&$feature.SPLIT_TXT=='01'){ return "01 West The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Federal Races"+TextFormatting.NewLine+TextFormatting.NewLine+"US Representative 2nd District"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Partisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Senate District 26"+TextFormatting.NewLine+TextFormatting.NewLine+"House District 52"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Nonpartisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Circuit Court District 07"+TextFormatting.NewLine+TextFormatting.NewLine+"District Attorney"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Elected Positions"+TextFormatting.NewLine+TextFormatting.NewLine+"City of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Soil & Water Conservation District"+TextFormatting.NewLine+TextFormatting.NewLine+"N W Co PUD Subdivision #3"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Community College"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge ESD Zone #4 - At Large"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Education Service District Zone 2"+TextFormatting.NewLine+TextFormatting.NewLine+"N Wasco County School District #21 Zone 4"+TextFormatting.NewLine+TextFormatting.NewLine+"Mid Columbia Fire and Rescue"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Library Service District"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Wasco County Parks & Recreation"+TextFormatting.NewLine+TextFormatting.NewLine+"Port of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Oregon Corrections"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County 4-H and Extension Service District" } //01.02 else if ($feature.PRECINCT_T =='01'&&$feature.SPLIT_TXT=='02') { return "01 West The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+ "Federal Races"+TextFormatting.NewLine+TextFormatting.NewLine+"US Representative 2nd District"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Partisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Senate District 26"+TextFormatting.NewLine+TextFormatting.NewLine+"House District 52"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Nonpartisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Circuit Court District 07"+TextFormatting.NewLine+TextFormatting.NewLine+"District Attorney"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Elected Positions"+TextFormatting.NewLine+TextFormatting.NewLine+"City of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Soil & Water Conservation District"+TextFormatting.NewLine+TextFormatting.NewLine+"Chenowith Water PUD Subdivision #4"+TextFormatting.NewLine+TextFormatting.NewLine+"N W Co PUD Subdivision #3"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Community College"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge ESD Zone #4 - At Large"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Education Service District Zone 2"+TextFormatting.NewLine+TextFormatting.NewLine+"N Wasco County School District #21 Zone 3"+TextFormatting.NewLine+TextFormatting.NewLine+"Mid Columbia Fire and Rescue"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Library Service District"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Wasco County Parks & Recreation"+TextFormatting.NewLine+TextFormatting.NewLine+"Port of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Oregon Corrections"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County 4-H and Extension Service District" } Which does this in Pro (ignore the bolding, I know that part won't work in the web map) And this when it is exported as either a web map or service (again, ignore the bolding, I know that won't work) Presumably there is a way to create popups in Pro that will look the same on a web map? Having to guess what it'll look like then repeatedly exporting to a web map and hoping it'll work seems a little clunky. Thanks, Tycho
... View more
07-26-2023
09:00 AM
|
1
|
0
|
220
|
POST
|
Sorry about the indentation. I basically just copied the image from the help doc here and thought it would work if I dumped it into Notepad. And I missed the () at the end since none of the models needs an argument - added them and it works. So yep, missed something obvious from not paying attention (as usual).
... View more
05-02-2023
11:53 AM
|
1
|
0
|
422
|
POST
|
I've got to either be missing something obvious or misunderstanding the use of notebook completely. I'm trying to string a bunch of simple models together to run in notebook. They run as expected in Model Builder, but they just return the two print statements within "try" without in the snippet below (path hidden and the <space> didn't past into the spoiler). Various models do different things (table exports, change shapefiles, pull data from different places, etc.) though they reside in the same toolbox. What'd I miss? import arcpy arcpy.env.overwriteOutput = True arcpy.ImportToolbox("secret path to toolbox...", "tbx") ####Table Exports#### #ManatronExportsToAssessorTablesPro #will not be needed once everything is converted to Pro try: print("start ManatronExportsToAssessorTablesPro") arcpy.ManatronExportsToAssessorTablesPro_tbx print("finish ManatronExportsToAssessorTablesPro") except: print("failed ManatronExportsToAssessorTablesPro") Thanks, Tycho
... View more
05-02-2023
09:23 AM
|
0
|
2
|
446
|
POST
|
We upgraded to 10.9.1 about six weeks ago, so 11 is a long ways out. And yes, the only data in the underlying FC that is used are the two fields needed for the if part of the expression. All the other strings are from an external text file that I cleaned up and dumped into Arcade.
... View more
03-30-2023
11:10 AM
|
0
|
1
|
525
|
POST
|
This was sort of answered in a different post (Bold Text within Arcade Expression) but I need the argument to be within the expression. I have a giant if-then-else statement and I only want certain strings within that expression to be bolded. So the pop-up currently looks like (sans highlighting): But I want (only) the strings that are highlighted in the screenshot to be bold. (There are others in the pop-up (with varying positions), this is just the top of it) Portion of the Arcade statement here for reference: //Precinct 01
//01-01
if($feature.PRECINCT_T =='01'&&$feature.SPLIT_TXT=='01'){
return "01 West The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Federal Races"+TextFormatting.NewLine+TextFormatting.NewLine+"US Representative 2nd District"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Partisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Senate District 26"+TextFormatting.NewLine+TextFormatting.NewLine+"House District 52"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Nonpartisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Circuit Court District 07"+TextFormatting.NewLine+TextFormatting.NewLine+"District Attorney"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Elected Positions"+TextFormatting.NewLine+TextFormatting.NewLine+"City of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Soil & Water Conservation District"+TextFormatting.NewLine+TextFormatting.NewLine+"N W Co PUD Subdivision #3"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Community College"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge ESD Zone #4 - At Large"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Education Service District Zone 2"+TextFormatting.NewLine+TextFormatting.NewLine+"N Wasco County School District #21 Zone 4"+TextFormatting.NewLine+TextFormatting.NewLine+"Mid Columbia Fire and Rescue"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Library Service District"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Wasco County Parks & Recreation"+TextFormatting.NewLine+TextFormatting.NewLine+"Port of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Oregon Corrections"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County 4-H and Extension Service District"
}
//01.02
else if ($feature.PRECINCT_T =='01'&&$feature.SPLIT_TXT=='02') {
return "01 West The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+ "Federal Races"+TextFormatting.NewLine+TextFormatting.NewLine+"US Representative 2nd District"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Partisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Senate District 26"+TextFormatting.NewLine+TextFormatting.NewLine+"House District 52"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Nonpartisan"+TextFormatting.NewLine+TextFormatting.NewLine+"... etc, etc Is this doable or did I just paint myself into a corner? Thanks, Tycho (I'm doing this in the MapViewer on Arc Online, this will end up on an app on our own 10.9.1 Portal)
... View more
03-30-2023
09:25 AM
|
0
|
3
|
551
|
Title | Kudos | Posted |
---|---|---|
1 | yesterday | |
1 | 02-09-2024 10:28 AM | |
1 | 05-02-2023 11:53 AM | |
1 | 07-26-2023 09:00 AM | |
1 | 10-28-2022 11:32 AM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|