POST
|
Thanks so much for the reply. Your initial comment has to do with Label Manager and I've used this in the past to some success but that still doesn't allow for extra spaces after text on the headers when converting to Annotation. The composite didn't solve my solution either BUT THERE IS HOPE! I figured it out....if you use Alt+0160 (non-breaking space) instead of a space (using space bar) then this solves my issue. Very strange but a fix nonetheless.
... View more
01-27-2025
08:29 AM
|
1
|
0
|
370
|
POST
|
I'm having issues with label formatting with annotations in ArcGIS Pro. The label doesn't seem to register the additional spaces at the end of the label. So for example my labeling script is as follows: <FNT style="Bold">KB-2030-SS07 </FNT><UND>ANALYTE 0-0.5' 0.5-2' 2-3' </UND>PFOS 494 ab 1030 ab 222 ab/245 ab but my issue is that I want the under line to go all the way to the end of the results (see examples), has anyone had success with this? Bad label.jpg = how the label format looks even though I have extra spaces after the 2-3' in the label script (ArcMap would register these extra spaces but ArcGIS Pro clearly isn't, unless I'm missing something) Good label.jpg = how I want the label to appear (drew in red underline to show what I want) manually drawing in underlines for each label just isn't feasible practice when there are potentially 50+ labels on the map
... View more
01-26-2025
08:24 AM
|
0
|
2
|
408
|
POST
|
We do everything in SQL server on the back end. I have a feature class that resides in an SDE database that is then published as a feature service. As the SQL server updates the related tables the feature service automatically updates as well. These feature services work GREAT in Map Viewers and Web App Builder but within XP Builder the feature service is EXTREMELY slow. More research needed there but it makes no sense as to why it creep in XP only.
... View more
11-16-2023
11:06 AM
|
0
|
0
|
1267
|
POST
|
In need help with an arcade expression that will allow a 'pass/fail' value when an end user selects a point and whatever value that enter cause a pass/fail prompt. I currently have it setup properly when they are concerned whether or not a value is above or below a certain value but now they are wanting it to work for range values meaning if the value is between 6-9 then it would cause a pass prompt and any values outside of that would be a fail. The script below works for the greater/lesser than parameters but I'm having a hard time making it work for ranges. var Zinc = $feature.Zinc; if (Zinc > 0.067) { return Zinc + ' mg/l (Fail)' } else if (Zinc < 0.067) { return Zinc + ' mg/l (Pass)' }
... View more
07-14-2023
08:45 AM
|
0
|
2
|
2765
|
POST
|
Dan, I have updated the original question with the actual Python script as an attachment
... View more
09-03-2020
09:30 AM
|
0
|
1
|
1722
|
POST
|
Hey everyone, I am trying to edit an older script where pictures are placed in a folder from a collector map with picture attachments, it's been about a year since we have had to run this script and we are running into an error that says "Invalid syntax" on our arcpy.da.searchcursor function. This parcticular script is also supposed to place watermarks on our photos but we can't get it to work. Here is the full code: #Import the needed modules import arcpy,os,sys #Directory where files will be saved #********Change to desired location and leave off the last backslash*********** saveDir = r'X:\TVA\NorthDeSoto\Deliverables\PicsWatermarked' #Specify Table & FC featureTable = r'X:\TVA\NorthDeSoto\Features\TVA_NorthDeSotoPoints20200902.gdb\Points__ATTACH' featureClass = r'X:\TVA\NorthDeSoto\Features\TVA_NorthDeSotoPoints20200902.gdb\Points' count=0 #Loop through rows with arcpy.da.SearchCursor(featureTable,["REL_GLOBALID","DATA","ATT_NAME"]) as cursor: for row in cursor: flag=0 fileCount=2 wellName="" #Replace second field with the field you want the files named (to LocID) with arcpy.da.SearchCursor(featureClass,["GlobalID","FeatureID"]) as cursor2: for row2 in cursor2: if row2[0]==row[0]: wellName = str(row2[1]) finalName = "" if wellName==None or wellName=="": ################################## ################################### ###Change to zero if you want all pictures ################################### ################################### flag=0 if wellName !=None: wellName = wellName.replace("/","_").replace(".0","") if os.path.exists(os.path.join(saveDir,wellName+'.jpg')): while os.path.exists(os.path.join(saveDir,wellName+'.jpg')): if os.path.exists(os.path.join(saveDir,wellName+'_'+str(fileCount)+'.jpg')): fileCount = fileCount+1 else: finalName = wellName+'_'+str(fileCount) break else: finalName=wellName if flag==0: #Replace first field with the word you want in front of photo name image = open(os.path.join(saveDir,"Pic_"+finalName+"_"+row[2].replace('.jpg','')+'.jpg'),'wb') print finalName image.write(row[1].tobytes()) image.close() del image count=count+1 print count del wellName,finalName #sys.exit() #SDG I have also attached a jpg of where the error occurs
... View more
09-03-2020
09:14 AM
|
0
|
3
|
1778
|
POST
|
It seems that the layer definition query is being honored, even so that when you change the name of the layer on the AGOL side to something else in an edit session it will completely disappear since the query no longer adheres to the name of the layer in the attribute table. Am I missing something somewhere that will allow me to edit the definition query within AGOL layer settings? I can't seem to find anything.
... View more
07-01-2019
08:19 AM
|
0
|
1
|
2260
|
POST
|
Was there ever a solution to this, Tim. I am having the same issues.
... View more
11-21-2016
12:33 PM
|
0
|
2
|
2230
|
Title | Kudos | Posted |
---|---|---|
1 | 01-27-2025 08:29 AM |
Online Status |
Offline
|
Date Last Visited |
02-27-2025
08:09 PM
|