using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SqlServer.Types;
using WebSamples.Utilities.Geo;
using WebSamples.Utilities.Geo.Elements;
using Microsoft.Maps.MapControl;

namespace WebSamples.Utilities.Sql
{
    public static class SQLExtensions
    {
        
        #region Private Methods        

        /// <summary>
        /// Converts a string in the form of Well known text points into a LatLongs object
        /// </summary>
        /// <param name="WKTPoints"></param>
        /// <returns></returns>
        //private static LocationCollection WKTPointsToBoundary(string WKTPoints)
        //{
        //    WKTPoints = WKTPoints.Replace(")", "").Replace("(", "");
        //    string[] points = WKTPoints.Split(Constants.WKT.WKTLatLongSplitter, StringSplitOptions.RemoveEmptyEntries);

        //    LocationCollection boundary = new LocationCollection();

        //    for (int i = 0; i < points.Length; i++)
        //    {
        //        string[] point = points[i].Split(' ');

        //        boundary.Add(new Location(double.Parse(point[0]), double.Parse(point[1])));
        //    }

        //    return boundary;
        //}

        #endregion
    }
}
