public List <PoligonoCoordenadasModel> ObtenerCoordenadasByPkPoligono()
        {
            List <PoligonoCoordenadasModel> lista = new List <PoligonoCoordenadasModel>();
            PoligonoCoordenadasModel        aux;

            try {
                string sql = "SELECT * FROM POLIGONO_COORDENADAS WHERE PK_POLIGONO=@PK_POLIGONO";
                db.PreparedSQL(sql);
                db.command.Parameters.AddWithValue("@PK_POLIGONO", PK_POLIGONO);
                ResultSet res = db.getTable();
                while (res.Next())
                {
                    aux             = new PoligonoCoordenadasModel();
                    aux.PK          = res.Get("PK");
                    aux.PK_POLIGONO = res.GetLong("PK_POLIGONO");
                    aux.LATITUD     = res.Get("LATITUD");
                    aux.LONGITUD    = res.Get("LONGITUD");
                    aux.FECHA_C     = res.Get("FECHA_C");
                    lista.Add(aux);
                }
            } catch (Exception e) {
                ERROR = e.ToString();
            }

            return(lista);
        }
        public bool ObtenerPoligono()
        {
            try {
                string sql = "SELECT * FROM POLIGONO WHERE PK=@PK";
                db.PreparedSQL(sql);
                db.command.Parameters.AddWithValue("@PK", PK);
                ResultSet res = db.getTable();
                if (res.Next())
                {
                    PK               = res.GetLong("PK");
                    NOMBRE           = res.Get("NOMBRE");
                    POLIGONO_VERSION = res.GetInt("POLIGONO_VERSION");
                    FECHA_C          = res.Get("FECHA_C");
                    PoligonoCoordenadasModel aux = new PoligonoCoordenadasModel();
                    aux.PK_POLIGONO = PK;
                    COORDENADAS     = aux.ObtenerCoordenadasByPkPoligono();
                }
            } catch (Exception e) {
                ERROR = e.ToString();
            }

            return(false);
        }