public ActionResult Visor(string Coordinates, string type)
        {
            List <Sismo> Sismo = new List <Sismo>();

            if (Coordinates != null)
            {
                //Construct the data
                var NewShape = StringHelper.ChangeStringByShape(type, Coordinates);

                if (type == "rectangle")
                {
                    //Use MakeEnvelope
                    var WKT = GeospatialHelper.CreateRectangleWKT(NewShape);
                    //Use Intersects
                    Sismo = GeospatialHelper.GetInformationByPolygonSismo(WKT);
                }
                else if (type == "polygon")
                {
                    //Transform
                }
                else if (type == "marker")
                {
                    //Get nearest point
                }
            }
            else
            {
                Sismo = GeospatialHelper.GetAllSismos();
            }



            return(View(Sismo));
        }
        public ActionResult Visor(String Coordinates, String type)
        {
            List <vw_poblacion> vw_poblacion = new List <vw_poblacion>();

            if (Coordinates != null)
            {
                //Construct the data
                var NewShape = StringHelper.ChangeStringByShape(type, Coordinates);

                if (type == "rectangle")
                {
                    //Use MakeEnvelope
                    var WKT = GeospatialHelper.CreateRectangleWKT(NewShape);
                    //Use Intersects
                    vw_poblacion = GeospatialHelper.GetInformationByPolygon(WKT);
                }
                else if (type == "polygon")
                {
                    //Transform
                }
                else if (type == "marker")
                {
                    //Get nearest point
                }
            }
            else
            {
                vw_poblacion = GeospatialHelper.GetAllPeople();
            }
            ViewBag.RenderIntro = false;
            return(View(vw_poblacion));
        }