How to change the symbology of a single layer at a transition from one scale to anoth

2250
4
11-23-2012 08:02 AM
BarraLoubna
New Contributor
Hello,

I would like to assign two different symbology through a scale to another with Python programing.

I will explain, I have a buildings layer  in the Luxembourg country. the full extent of the country is a 1:500 000, I want the polygone appear without contour from scale 1:500 000 to 1:10 000. And from 1:10 000 scale to 0, I want an outline appears around polygons.

I've never done python programing, so I do not know what to do, which is why I have given details, if someone could help me, I would be grateful.
Tags (2)
0 Kudos
4 Replies
BarraLoubna
New Contributor
Do you have any idea, please?
0 Kudos
JeffBarrette
Esri Regular Contributor
An easy way would be to publish an MXD with the same data source (layer) mutliple times and depending on the scale, you would turn on/off the layer visibility.

You can get the scale from the DataFrame class:
http://resources.arcgis.com/en/help/main/10.1/#/DataFrame/00s300000003000000/

And set a layer's visibility from the Layer class:
http://resources.arcgis.com/en/help/main/10.1/#/Layer/00s300000008000000/

If you are new to Python and arcpy.mapping I suggest you try the getting started tutorial:
http://resources.arcgis.com/en/help/main/10.1/#/Getting_started_with_arcpy_mapping_tutorial/00s30000...

Jeff
0 Kudos
DaveJordan1
New Contributor III
- no python requiered - Add the layer to the TOC for each scale range that you want to display.  this is done on the General Tab of the Layer Properties dialog.  So, add the full extent layer and set the display range and values that you want - then add the same layer again to the TOC to display below 10,000 range.  I hope that makes sense:)

You will notice that ESRI does this often in their demos...
0 Kudos
BarraLoubna
New Contributor
But I do not want alot of layers with same content on different scales, I want the same layer and changing symbology from a margin of scale to another, as in the example below, I want to do the same thing with buildings layers. i have the same thematic and I developed a silverlight interface.

http://www.geoagglo-thionville.fr/plan_ca.php

Dave, I think you have a good idea, but can you explain me more how to do? if you want.

Thank you for your answers.
0 Kudos