This project has moved and is read-only. For the latest updates, please go here.

Label Layer with Remove Duplicacy

Topics: SharpMap Project, SharpMap v0.9 / v1.x
Oct 17, 2014 at 9:44 AM
Hi Team,
I have a LabelLayer which have Labels like 112,113,115 --up to -- NNN.
The exactly i want to know that is there any option through with we can remove duplicate Labels like if we have two labels for 112 it shows only one in that segment .
Oct 17, 2014 at 12:52 PM
You mean for multi part geometries?
See LabelLayer.MultipartGeometryBehaviour.
Oct 17, 2014 at 1:58 PM
Will you please provide me the definitions for all the enum values of MultiPartGeometryBehaviourEnum .
As i doesn't achieve with the same.
Oct 17, 2014 at 11:00 PM
It is all in the source:
        /// <summary>
        /// Labelling behaviour for Multipart geometry collections
        /// </summary>
        public enum MultipartGeometryBehaviourEnum
            /// <summary>
            /// Place label on all parts (default)
            /// </summary>
            /// <summary>
            /// Place label on object which the greatest length or area.
            /// </summary>
            /// <remarks>
            /// Multipoint geometries will default to <see cref="First"/>
            /// </remarks>
            /// <summary>
            /// The center of the combined geometries
            /// </summary>
            /// <summary>
            /// Center of the first geometry in the collection (fastest method)
            /// </summary>