Thursday, February 23, 2012

Labeling in ArcIMS – Avoid Duplicate Labels when there is a JOIN

I came across a scenario where I am supposed to link the GIS features with external tables in ArcIMS. This was a one-to-many relationship, which means for one GIS feature there were many external records.
We want to label this GIS features, but when we tried labeling, it was showing duplicate labels, because of the one-to-many relationship established with the external records.
To control this we used the ArcIMS AXL syntax like shown below.
<SIMPLELABELRENDERER field= "AYED.env_field_sample_loc_point.LOCID" howmanylabels ="one_label_per_shape" labelbufferratio="3.0">
<TEXTSYMBOL antialiasing="true" font="Verdana" fontsize="8" glowing="255,255,255" interval="20"/>
</SIMPLELABELRENDERER>

Note down the tag “
labelbufferratio”. This helps to remove those duplicate labels.
Happy Coding !

No comments:

Post a Comment

All Blogs so far ...