예제 #1
0
        /// <summary>
        /// Retrieve the shape type name based on the MapScript type.
        /// </summary>
        /// <param name="map">The MapScript type.</param>
        /// <returns>The shape type name.</returns>
        public static string GetShapeTypeName(MS_SHAPE_TYPE type)
        {
            switch (type)
            {
            case MS_SHAPE_TYPE.MS_SHAPE_POLYGON:
                return("Polygon");

            case MS_SHAPE_TYPE.MS_SHAPE_LINE:
                return("Line");

            case MS_SHAPE_TYPE.MS_SHAPE_POINT:
                return("Point");

            case MS_SHAPE_TYPE.MS_SHAPE_NULL:
                return("Null");
            }

            return("");
        }
예제 #2
0
        /// <summary>
        /// Retrieve the shape type name based on the MapScript type.
        /// </summary>
        /// <param name="map">The MapScript type.</param>
        /// <returns>The shape type name.</returns>
        public static string GetShapeTypeName(MS_SHAPE_TYPE type)
        {
            switch (type)
            {
                case MS_SHAPE_TYPE.MS_SHAPE_POLYGON:
                    return "Polygon";
                case MS_SHAPE_TYPE.MS_SHAPE_LINE:
                    return "Line";
                case MS_SHAPE_TYPE.MS_SHAPE_POINT:
                    return "Point";
                case MS_SHAPE_TYPE.MS_SHAPE_NULL:
                    return "Null";
            }

            return "";
        }