jeudi 26 mars 2015

Arcpy reclassify label display issue


I have been looking for about 2 days and I can't seem to figure out or find a work around for the symbology labels after a reclassify when trying to automate maps. I run the following code and it is almost doing exactly what i want it to do. After I change a data source path I run the following 2 lines of code. The layer is set to have the colors i want and the numbers match what should be there. The only issue is the display of the labels for the classification.



arcpy.mapping.UpdateLayer(df, lyr, updateLayer, True)
lyr.symbology.reclassify()


The map is set to have 1 decimal place as is the layer file but after the reclass it is set to 4 significant digits.


enter image description here


Does anyone have any thoughts? This is the one thing i need to fully automate the maps i am working on. It seems crazy that after doing a change path and a reclass that i have to open the mxd reset the layer properties and then update notes that i have generated based on the new classes with the update ranges.


Thanks, Matt





Aucun commentaire:

Enregistrer un commentaire