POST
|
Hi Kelson - I am just about to try this so I don't know if it will work, but in this article (https://storymaps.arcgis.com/stories/ee16e37c2c2748a38c3d7196f895a585) it suggests creating a standalone chart in a dashboard and then embedding it in a story map
... View more
06-09-2022
07:35 PM
|
0
|
0
|
2084
|
POST
|
for f in arcpy.Describe(<TheFeatureClass>).fields: if f.name == TheFieldName: FIELD_ALIAS = f.aliasName
... View more
01-20-2022
09:10 PM
|
0
|
0
|
3408
|
POST
|
Hi there - it would be useful if you could post the code you are using to make the tool as well as a screen shot of the tool
... View more
12-01-2021
03:08 PM
|
0
|
0
|
630
|
POST
|
Hi Jared - they look like they are missing from the layer file but they are still in the CIM. I created a script in a Python Toolbox to check the LayerCIM as it seems that LYRX files might be abbreviated: class ShowCIMforLayer(object):
def __init__(self):
"""Define the tool (tool name is the name of the class)."""
self.label = "ShowCIMforLayer"
self.description = ""
self.canRunInBackground = False
def getParameterInfo(self):
"""Define parameter definitions"""
# parameter 0 - this is just a text value, not the layer
param0 = arcpy.Parameter(
displayName="Layer Name",
name ="DATA_LYR_NAME",
datatype="GPString",
parameterType="Required",
direction="Input")
param0.filter.list = ['SPATIALDATA_LYR', 'HEADERSPATIAL_LYR', 'LGA_LYR','HD_LV_M_LYR']
param0.value = "SPATIALDATA_LYR" #DEFAULT
params = [param0]
#params = None
return params
def isLicensed(self):
"""Set whether tool is licensed to execute."""
return True
def updateParameters(self, parameters):
"""Modify the values and properties of parameters before internal
validation is performed. This method is called whenever a parameter
has been changed."""
return
def updateMessages(self, parameters):
"""Modify the messages created by internal validation for each tool
parameter. This method is called after internal validation."""
return
def execute(self, parameters, messages):
DATA_LYR_NAME=parameters[0].valueAsText
#FEATURE_CLASS = parameters[1].valueAsText
currentProject = arcpy.mp.ArcGISProject("CURRENT")
currentMap = currentProject.listMaps()[0] #I think this assumes there is only one map
theActiveMap = currentProject.activeMap
theFilePath = arcpy.mp.ArcGISProject("CURRENT").filePath
#This works for the active map only
TheMap = currentProject.activeMap
if TheMap.name == "Map":
# Layer ----------------------
messages.addMessage("Map: " + TheMap.name)
#This will trap errors where layers are missing
layers = TheMap.listLayers()
for layer in layers:
messages.addMessage(layer.name)
if layer.name == DATA_LYR_NAME:
lyrCIM = layer.getDefinition('V2')
#showPopups#MapTips don't seem to show up in Portal
messages.addMessage( layer.name + " showPopups: " + str(lyrCIM.showPopups))
messages.addMessage( layer.name + " showMapTips: " + str(lyrCIM.showMapTips))
#If the layer has a featureTable, this will exclude the vicmap basemaps#.fieldDescriptions
if hasattr(lyrCIM, 'featureTable') :
#https://community.esri.com/t5/python-questions/cim-lyr-featuretable-fielddescriptions-returns-an/td-p/1046116
messages.addMessage ("number of fieldDescriptions: " + str(len(lyrCIM.featureTable.fieldDescriptions))) #https://community.esri.com/t5/python-questions/cim-lyr-featuretable-fielddescriptions-returns-an/td-p/1046116
for fd in lyrCIM.featureTable.fieldDescriptions:
messages.addMessage ("-----------fieldName: "+ fd.fieldName)
messages.addMessage ("alias: "+ fd.alias)
messages.addMessage ("visible: " + str(fd.visible))
if hasattr(fd, 'numberFormat'):
messages.addMessage(fd.fieldName + "------------numberFormat:")
fdNumFmt = fd.numberFormat
if hasattr(fdNumFmt, 'roundingOption'):
messages.addMessage( " roundingOption: " + str(fdNumFmt.roundingOption))
messages.addMessage( " roundingValue: " + str(fdNumFmt.roundingValue))
if hasattr(fdNumFmt, 'useSeparator'):
messages.addMessage( " useSeparator: " + str(fdNumFmt.useSeparator))
#messages.addMessage ("--- ---lyrCIM.featureTable.fieldDescriptions: " + str(lyrCIM.featureTable.fieldDescriptions))
#Have a look at whats available
#if hasattr(lyrCIM.featureTable.fieldDescriptions, 'fields'):
#messages.addMessage ("--- ---lyrCIM.featureTable.fieldDescriptions.fields[0]: " + str(lyrCIM.featureTable.fieldDescriptions.fields[0]))
messages.addMessage("Finish")
return
... View more
11-29-2021
05:00 PM
|
1
|
0
|
698
|
POST
|
You are right Dan - just wondered if anybody knew off the top of their head as it's a bit of a pain getting a bug lodged and they might have fixed it in later versions. Same problem occurs regardless of the language and cut and paste works fine. Looks like it occurs everywhere 'import expression' is used:
... View more
11-28-2021
08:10 PM
|
0
|
0
|
597
|
POST
|
Hi - does anyone know if this little bug importing label expression files has been fixed - if so which version: (The label expression works fine if I copy and paste from notepad). Just wanting to save some time logging a bug through my org.
... View more
11-28-2021
04:39 PM
|
0
|
3
|
642
|
POST
|
Hi Georgios, For PC builds I would have a look at Reddit, there is an Australian forum (https://www.reddit.com/r/buildapcaus/) so you might find one that is more Euro focussed. We have Dell Precision 7510 latops bought a while ago but holding up well - I recently bought a second hand one for my 'Home Laptop' as well.
... View more
11-28-2021
04:15 PM
|
1
|
0
|
902
|
POST
|
Hi Tamra - sole user! That sounds exciting but omg challenging as well
... View more
11-28-2021
04:01 PM
|
0
|
0
|
474
|
POST
|
Hi, we are preparing maps in ArcGIS Pro to publish to portal as Map Image Layers (not sure which version of ArcGIS Enterprise but it looks like it has JavaScript 4 Are MapTips (text that appears when a feature is hovered over) available in Portal? Are there any plans to include them? We are using Pop-ups but MapTips are also an option we are interested in using. Note: I have seen this but the information appears a little old -> https://community.esri.com/t5/arcgis-enterprise-portal-questions/maptip-and-photos/m-p/738153#M9888
... View more
11-25-2021
08:36 PM
|
1
|
1
|
605
|
POST
|
Hi Nick, we have found that sometimes the layers are slow to draw or don’t appear, especially where there is a large amount of data, just zoom right into an area in your Web Map or Map Image Layer to the street level and the data should usually appear. This is the note that we put in our user docs as well - we are publishing data to ArcGIS Enterprise (Portal)
... View more
11-25-2021
05:14 PM
|
0
|
0
|
357
|
IDEA
|
Could this be prioritised - the functionality in ArcGIS pro is not working so some options to do this in Enterprise is needed.
... View more
11-18-2021
04:28 PM
|
0
|
0
|
522
|
POST
|
I think you are right Jared - 'UseSeparator' seems to have disappeared from my .LYRX files in 2.8.
... View more
11-10-2021
09:57 PM
|
0
|
0
|
760
|
Title | Kudos | Posted |
---|---|---|
1 | 11-25-2021 08:36 PM | |
1 | 10-18-2021 04:51 PM | |
1 | 11-28-2021 04:15 PM | |
1 | 11-29-2021 05:00 PM | |
1 | 12-09-2020 07:12 PM |
Online Status |
Offline
|
Date Last Visited |
07-25-2022
12:39 AM
|