<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: label polygons using arcpy in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/label-polygons-using-arcpy/m-p/397145#M4336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Setting False for me seems to overwrite EVERYTHING; the attributes, layer name, all of it.&lt;/P&gt;&lt;P&gt;It seems to have simple ran a Remove Layer and then an Add Layer rather than commuting the layer properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simply want my layer to be 50% transparent and have the labels displayed with 15 point Y offset and Halo around the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone experience this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Aug 2014 17:23:33 GMT</pubDate>
    <dc:creator>RobertChappe1</dc:creator>
    <dc:date>2014-08-15T17:23:33Z</dc:date>
    <item>
      <title>label polygons using arcpy</title>
      <link>https://community.esri.com/t5/mapping-questions/label-polygons-using-arcpy/m-p/397142#M4333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to write a python script to automate some mapping. One of the tasks I haven't figured out is how to access a layer's label properties. I'd like to set the layer's label field. I want to make an expression (something like round([length_field],2) &amp;amp; " m"). And I want to set the font size and font color. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to do this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone sent me "UpdateLayer" as a potential solution. I tried it but it doesn't seem to work with labelling. I made up a dummy .lyr file and it successfully changed the symbology of my layer. But none of the label properties I set in the .lyr file seem to have been applied to my new layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(edit: my subject title is actually wrong. I'm trying to label a line feature... but I don't think that's going to change the methodology of how to do this... )&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 14:41:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-polygons-using-arcpy/m-p/397142#M4333</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2012-01-13T14:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: label polygons using arcpy</title>
      <link>https://community.esri.com/t5/mapping-questions/label-polygons-using-arcpy/m-p/397143#M4334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;With UpdateLayer, are you using False for the symbology_only parameter?&amp;nbsp; It defaults to True, so the label properties will only come across if you specify it as False.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&amp;nbsp; arcpy.mapping.UpdateLayer(df, updateLayer, sourceLayer, False)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep in mind this will bring all layers properties including symbology, font, font size, label expression, etc., so everything will need to be defined in the update .lyr file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 17:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-polygons-using-arcpy/m-p/397143#M4334</guid>
      <dc:creator>DavidWatkins</dc:creator>
      <dc:date>2012-01-17T17:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: label polygons using arcpy</title>
      <link>https://community.esri.com/t5/mapping-questions/label-polygons-using-arcpy/m-p/397144#M4335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks! Yes, I've already set up everything I needed in the .lyr layerfile so setting it to "FALSE" worked. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;With UpdateLayer, are you using False for the symbology_only parameter?&amp;nbsp; It defaults to True, so the label properties will only come across if you specify it as False.&lt;BR /&gt; &lt;BR /&gt;For example:&amp;nbsp; arcpy.mapping.UpdateLayer(df, updateLayer, sourceLayer, False)&lt;BR /&gt;&lt;BR /&gt;Keep in mind this will bring all layers properties including symbology, font, font size, label expression, etc., so everything will need to be defined in the update .lyr file. &lt;BR /&gt;&lt;BR /&gt;David&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 22:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-polygons-using-arcpy/m-p/397144#M4335</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2012-01-17T22:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: label polygons using arcpy</title>
      <link>https://community.esri.com/t5/mapping-questions/label-polygons-using-arcpy/m-p/397145#M4336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Setting False for me seems to overwrite EVERYTHING; the attributes, layer name, all of it.&lt;/P&gt;&lt;P&gt;It seems to have simple ran a Remove Layer and then an Add Layer rather than commuting the layer properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simply want my layer to be 50% transparent and have the labels displayed with 15 point Y offset and Halo around the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone experience this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 17:23:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/label-polygons-using-arcpy/m-p/397145#M4336</guid>
      <dc:creator>RobertChappe1</dc:creator>
      <dc:date>2014-08-15T17:23:33Z</dc:date>
    </item>
  </channel>
</rss>

