I'm new in ArcGIS and ArcPy.
I've got f.e. a Layer called "Flurnamen_5000". How can I find out (arcpy) if there exists a "Text Renderers" in Properties --> Symbologie --> Darstellung (look at the printsceen)
?
enter image description here
If there is no Text Renderers in the Layer. I'd like to remove the Layer.
I started with:
>>> mxd = arcpy.mapping.MapDocument("CURRENT")
>>> lyr = arcpy.mapping.ListLayers(mxd, "Flurnamen_5000")
but I have no idea, how to check if a "Text Renderers" exists.
FeatureType
is simple.
1 Answer 1
Your ArcMap has a custom extension enabled for your layer. This extension was written with ArcObjects and installed for your ArcGIS Desktop environment. A standard ArcMap does not have the Text Renderers
option.
As this is a custom property/render type for a layer, you will not be able to access its properties via arcpy.
-
Thank you for your answer. I already suspected something like this. Is it possible to get a list of all key/value pairs of the property dialog (except the custom extension ones)? f.e. font=Arial or font size=7 or source=.... etc.scs– scs2016年09月17日 18:00:39 +00:00Commented Sep 17, 2016 at 18:00
-
2Please ask a separate question on this and we will be glad to help!Alex Tereshenkov– Alex Tereshenkov2016年09月18日 08:13:26 +00:00Commented Sep 18, 2016 at 8:13